|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.server.AbstractObjectProvider
public abstract class AbstractObjectProvider
An AbstractObjectProvider handles the access to the life-cycle
objects for all sessions. A life-cycle object holds references to
the server-side objects which are available for the client within a
specific session.
| Constructor Summary | |
|---|---|
protected |
AbstractObjectProvider(IServer pServer)
Creates a new instance of AbstractObjectProvider for a specific
IServer. |
| Method Summary | |
|---|---|
abstract java.lang.Object |
getObject(ISession pSession,
java.lang.String pObjectName)
Returns an object from the life-cycle object container for an ISession. |
IServer |
getServer()
Gets the associated IServer. |
abstract java.lang.Object |
invoke(ISession pSession,
java.lang.String pObjectName,
java.lang.String pMethodName,
java.lang.Object... pParams)
Invokes a method from a specific life-cycle object. |
abstract java.lang.Object |
putObject(ISession pSession,
java.lang.String pObjectName,
java.lang.Object pObject)
Puts an object to the life-cycle object container for an ISession. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractObjectProvider(IServer pServer)
AbstractObjectProvider for a specific
IServer.
pServer - the server| Method Detail |
|---|
public abstract java.lang.Object getObject(ISession pSession,
java.lang.String pObjectName)
throws java.lang.Throwable
ISession.
pSession - the sessionpObjectName - the object name (can be an EL)
null for the life-cycle object container
java.lang.Throwable - if the life-cycle object is not available
public abstract java.lang.Object putObject(ISession pSession,
java.lang.String pObjectName,
java.lang.Object pObject)
throws java.lang.Throwable
ISession.
pSession - the sessionpObjectName - the object namepObject - the object or null to remove the object
null if there was no object under the specified name, otherwise the previous object
for the specified name
java.lang.Throwable - if the life-cycle object is not available
public abstract java.lang.Object invoke(ISession pSession,
java.lang.String pObjectName,
java.lang.String pMethodName,
java.lang.Object... pParams)
throws java.lang.Throwable
pSession - the sessionpObjectName - the object namepMethodName - the method to invokepParams - the method parameters
java.lang.Throwable - if the life-cycle object is not available or the method was not foundpublic IServer getServer()
IServer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||