|
||||||||||
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 Object |
getObject(ISession pSession,
String pObjectName)
Returns an object from the life-cycle object container for an ISession . |
IServer |
getServer()
Gets the associated IServer . |
abstract Object |
invoke(ISession pSession,
String pObjectName,
String pMethodName,
Object... pParams)
Invokes a method from a specific life-cycle object. |
abstract Object |
putObject(ISession pSession,
String pObjectName,
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 serverMethod Detail |
---|
public abstract Object getObject(ISession pSession, String pObjectName) throws Throwable
ISession
.
pSession
- the sessionpObjectName
- the object name (can be an EL)
null
for the life-cycle object container
Throwable
- if the life-cycle object is not availablepublic abstract Object putObject(ISession pSession, String pObjectName, Object pObject) throws 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
Throwable
- if the life-cycle object is not availablepublic abstract Object invoke(ISession pSession, String pObjectName, String pMethodName, Object... pParams) throws Throwable
pSession
- the sessionpObjectName
- the object namepMethodName
- the method to invokepParams
- the method parameters
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 |