ix.util.context
Interface ContextHolder

All Known Implementing Classes:
BasicContextHolder, PlainContextHolder, SynchronizedContextHolder

public interface ContextHolder

An interface for objects that contain a Context that they provide to other objects. A single ContextHolder is typically shared by many objects that contain context-layered fields so that they can all be moved to a different context together.

See Also:
Context, ContextHoldingStrategy

Method Summary
 Context getContext()
          Returns the context currently stored in the holder.
 void setContext(Context c)
          Changes the context currently stored in the holder.
 

Method Detail

getContext

Context getContext()
Returns the context currently stored in the holder.


setContext

void setContext(Context c)
Changes the context currently stored in the holder.