|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.cams.agent.CamsAgentContextFactory
The CamsAgentContextFactory class is a factory object that is responsible for creating CamsAgentContext objects.
Furthermore, it is responsible for caching previously created instances of the CamsAgentContext objects for reuse by other agents. By using the same context objects various webagents share the same AccessControlCheckCache, CamsClient, and RemoteSessionManager.
CamsAgentContext| Method Summary | |
CamsAgentContext |
createCtx(String className,
String path)
Create a CamsAgentContext object. |
void |
destroyCtx(CamsAgentContext ctx)
Destroy a CamsAgentContext object. |
static CamsAgentContextFactory |
getInstance()
Get the single instance of the CamsAgentContextFactory. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final CamsAgentContextFactory getInstance()
public CamsAgentContext createCtx(String className,
String path)
throws CamsAgentException
This method will attempt first attempt to return a cached instance of the context object. If one can be found it is returned. Otherwise, a new instance will be created and returned.
className - the name of the CamsAgentContext instance to create.path - the filepath of the configuration file.
CamsAgentException - if any error occurs creating a
CamsAgentContext.
public void destroyCtx(CamsAgentContext ctx)
throws CamsAgentException
This method will destroy a context object only if it is the last instance of the context being used. In otherwords, if two agents share a copy of the context, the last agent to be destroyed will ultimately destroy the context object.
ctx - the CamsAgentContext object to destroy.
CamsAgentException - if any error occurs destroying a
CamsAgentContext.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||