|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IContextFactory
Interface that the ContextFactories must implement.
| Method Summary | |
|---|---|
IContext |
getContext()
Return a JSR223 context |
java.lang.String |
getId()
Return the serializable ID of the context factory |
ISession |
getSession(java.lang.String name,
short clientIsNew,
int timeout)
Return a session for the JavaBridge |
ISession |
getSimpleSession(java.lang.String name,
short clientIsNew,
int timeout)
|
void |
initialize()
Called when the context runner starts |
void |
recycle(java.lang.String id)
Update the context factory with the new JavaBridge obtained from the servlet |
void |
release()
Releases the context factory. |
void |
releaseManaged()
Wait until this context is finished and release/destroy it. |
void |
setContext(IContext context)
Set the Context into this factory. |
void |
waitFor(long timeout)
Wait until this context is finished. |
| Methods inherited from interface php.java.bridge.IJavaBridgeFactory |
|---|
destroy, flushBuffer, getBridge, invalidate, isNew, parseHeader, recycle |
| Method Detail |
|---|
void recycle(java.lang.String id)
Update the context factory with the new JavaBridge obtained from the servlet
id - The fresh idContextFactory.recycle(),
Request.setBridge(php.java.bridge.JavaBridge),
Request.recycle()void release()
void releaseManaged()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionContextRunner
void waitFor(long timeout)
throws java.lang.InterruptedException
timeout - The timeout
java.lang.InterruptedExceptionContextRunnerjava.lang.String getId()
IContext getContext()
getContext in interface IJavaBridgeFactorySimpleContextFactory.getContext(),
Contextvoid setContext(IContext context)
context - ContextFactory.addNew()
ISession getSession(java.lang.String name,
short clientIsNew,
int timeout)
IJavaBridgeFactory
getSession in interface IJavaBridgeFactoryname - The session name. If name is null, the name PHPSESSION will be used.clientIsNew - true if the client wants a new sessiontimeout - timeout in seconds. If 0 the session does not expire.
ISession
ISession getSimpleSession(java.lang.String name,
short clientIsNew,
int timeout)
name - The session name. If name is null, the name PHPSESSION will be used.clientIsNew - true if the client wants a new sessiontimeout - timeout in seconds. If 0 the session does not expire.
ISessionvoid initialize()
releaseManaged(),
IJavaBridgeFactory.destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||