|
Coinjema 1.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.coinjema.context.ContextFactory
public class ContextFactory
Contains static methods for initializing Coinjema with context locations. Also contains methods for destroying contexts and refreshing the cached dependencies. Warning: don't expect refresh to magically reconfigure all your objects already in-memory.
Method Summary | |
---|---|
static void |
createContext(String contextName,
ContextSource directory)
Create a new child context of the root context with the given name and ContextSource. |
static void |
createRootContext()
Creates the root context using the default working directory as the base context location. |
static void |
createRootContext(ContextSource directory)
Creates the root context using the given ContextSource object. |
static void |
destroyContext(String contextName)
Removes all the information stored for a context and prevents its further usage. |
static Registry |
getRegistry(String contextName)
|
static void |
popContext()
Remove the top context from the context stack. |
static void |
pushContext(CoinjemaContext cc)
For direct and quick control over a thread's current context, call this method to push a context onto its stack. |
static void |
refresh(CoinjemaContext context)
Clears all stored information for the given context and all its children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void pushContext(CoinjemaContext cc)
cc
- public static void popContext()
public static void createRootContext() throws Exception
Exception
public static void createRootContext(ContextSource directory) throws Exception
directory
-
Exception
public static void createContext(String contextName, ContextSource directory) throws Exception
contextName
- directory
-
Exception
public static void destroyContext(String contextName)
contextName
- public static void refresh(CoinjemaContext context)
context
- public static Registry getRegistry(String contextName)
|
Coinjema 1.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |