php.java.script
Class InteractivePhpScriptContextFactory

java.lang.Object
  extended by php.java.bridge.http.SimpleContextFactory
      extended by php.java.script.PhpScriptContextFactory
          extended by php.java.script.InteractivePhpScriptContextFactory
All Implemented Interfaces:
IContextFactory, IContextFactoryVisitor, IJavaBridgeFactory

public class InteractivePhpScriptContextFactory
extends PhpScriptContextFactory

A custom context factory, creates a ContextFactory for JSR223 contexts. sessions do not expire.

Author:
jostb

Constructor Summary
InteractivePhpScriptContextFactory()
           
 
Method Summary
static IContextFactory addNew(IContext context)
          Add the PhpScriptContext
 ISession getSession(boolean clientIsNew, int timeout)
          
 
Methods inherited from class php.java.bridge.http.SimpleContextFactory
destroy, getBridge, getClassLoader, getContext, getId, getJavaBridgeClassLoader, getSession, initialize, invalidate, isNew, recycle, recycle, release, releaseManaged, setClassLoader, setContext, toString, visit, waitFor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InteractivePhpScriptContextFactory

public InteractivePhpScriptContextFactory()
Method Detail

addNew

public static IContextFactory addNew(IContext context)
Add the PhpScriptContext

Parameters:
context -
Returns:
The ContextFactory.

getSession

public ISession getSession(boolean clientIsNew,
                           int timeout)

Specified by:
getSession in interface IJavaBridgeFactory
Overrides:
getSession in class SimpleContextFactory
Parameters:
clientIsNew - true if the client wants a new session
timeout - timeout in seconds. If 0 the session does not expire.
Returns:
The session