ix.util.context
Class BasicContextHolder

java.lang.Object
  extended by ix.util.context.BasicContextHolder
All Implemented Interfaces:
ContextHolder
Direct Known Subclasses:
PlainContextHolder

public class BasicContextHolder
extends java.lang.Object
implements ContextHolder

A simple object that contains a Context.


Field Summary
protected  Context context
           
 
Constructor Summary
BasicContextHolder()
           
BasicContextHolder(Context c)
           
 
Method Summary
 Context getContext()
          Returns the context currently stored in the holder.
 void setContext(Context c)
          Changes the context currently stored in the holder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected Context context
Constructor Detail

BasicContextHolder

public BasicContextHolder()

BasicContextHolder

public BasicContextHolder(Context c)
Method Detail

getContext

public Context getContext()
Description copied from interface: ContextHolder
Returns the context currently stored in the holder.

Specified by:
getContext in interface ContextHolder

setContext

public void setContext(Context c)
Description copied from interface: ContextHolder
Changes the context currently stored in the holder.

Specified by:
setContext in interface ContextHolder