Coinjema
1.7

org.coinjema.context
Class CoinjemaContext

java.lang.Object
  extended by org.coinjema.context.CoinjemaContext
All Implemented Interfaces:
Serializable

public final class CoinjemaContext
extends Object
implements Serializable

A CoinjemaContext object points to a separate context which may or may not hold individual config information for the system. It is normally used to create a new object in a different context, so that it receives different configuration information than the calling class. A CoinjemaContext is really no more than a String, but is used to avoid namespace problems. CoinjemaContext objects are really just pointers to the actual context - you can easily create objects that point to non-existent contexts. As such, they are cheap objects to create and leave for GC.

Context paths are made using strings of the form "parentContext/childContext/grandChildContext".

Author:
mikes
See Also:
Serialized Form

Constructor Summary
CoinjemaContext(CoinjemaContext parent, String subContext)
          Create a context that is a child of the given parent.
CoinjemaContext(String n)
          Create a context with the given name.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CoinjemaContext

public CoinjemaContext(CoinjemaContext parent,
                       String subContext)
Create a context that is a child of the given parent.

Parameters:
parent -
subContext -

CoinjemaContext

public CoinjemaContext(String n)
Create a context with the given name.

Parameters:
n -
Method Detail

equals

public final boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public final int hashCode()
Overrides:
hashCode in class Object

toString

public final String toString()
Overrides:
toString in class Object

getName

public final String getName()

Coinjema
1.7

Public Domain Software.