javax.rad.server
Class InjectObject

java.lang.Object
  extended by javax.rad.server.InjectObject

public class InjectObject
extends java.lang.Object

The InjectObject is a POJO which holds an object with a specific name. The InjectObject will be used to add any objects to the SessionContext.

See Also:
SessionContext

Constructor Summary
InjectObject(java.lang.String pName, java.lang.Object pObject)
          Creates a new instance of InjectObject for a inject object with a specific name.
InjectObject(java.lang.String pName, java.lang.Object pObject, boolean pExternal)
          Creates a new instance of InjectObject for a inject object with a specific name.
 
Method Summary
 java.lang.String getName()
          Gets the name of the inject object.
 java.lang.Object getObject()
          Gets the inject object.
 boolean isExternal()
          Gets whether the object should be handled lik an external object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InjectObject

public InjectObject(java.lang.String pName,
                    java.lang.Object pObject)
Creates a new instance of InjectObject for a inject object with a specific name. The new object will be an internal object.

Parameters:
pName - the injection name
pObject - the injection object

InjectObject

public InjectObject(java.lang.String pName,
                    java.lang.Object pObject,
                    boolean pExternal)
Creates a new instance of InjectObject for a inject object with a specific name.

Parameters:
pName - the injection name
pObject - the injection object
pExternal - whether the object will be handled as external object
Method Detail

getName

public java.lang.String getName()
Gets the name of the inject object.

Returns:
the object "mapping" name

getObject

public java.lang.Object getObject()
Gets the inject object.

Returns:
the object

isExternal

public boolean isExternal()
Gets whether the object should be handled lik an external object. An external object won't be closed after a session ends.

Returns:
true if object should be handled as an external object, false otherwise


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.