ix.util.context
Interface ContextHolder
- All Known Implementing Classes:
- BasicContextHolder
- 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
getContext
public Context getContext()
- Returns the context currently stored in the holder.
setContext
public void setContext(Context c)
- Changes the context currently stored in the holder.