public static class ServletHttpApplicationStateManagedObjectSource.ServletHttpApplicationStateManagedObject extends Object implements CoordinatingManagedObject<ServletHttpApplicationStateManagedObjectSource.Dependencies>, HttpApplicationState
ManagedObject
for the ServletBridge
.Constructor and Description |
---|
ServletHttpApplicationStateManagedObject() |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String name)
Obtains the
Object that is bound to the name. |
Iterator<String> |
getAttributeNames()
|
Object |
getObject()
Obtains the object being managed.
|
void |
loadObjects(ObjectRegistry<ServletHttpApplicationStateManagedObjectSource.Dependencies> registry)
Loads the Objects of the
ManagedObject instances to be referenced
by this CoordinatingManagedObject . |
void |
removeAttribute(String name)
Removes the bound
Object by the name. |
void |
setAttribute(String name,
Object object)
Binds the
Object to the name. |
public ServletHttpApplicationStateManagedObject()
public void loadObjects(ObjectRegistry<ServletHttpApplicationStateManagedObjectSource.Dependencies> registry) throws Throwable
CoordinatingManagedObject
Loads the Objects of the ManagedObject
instances to be referenced
by this CoordinatingManagedObject
.
References to the loaded Objects must be released on recycling the
ManagedObject
.
loadObjects
in interface CoordinatingManagedObject<ServletHttpApplicationStateManagedObjectSource.Dependencies>
registry
- Registry of the Objects for the ManagedObject
instances.Throwable
- Should this CoordinatingManagedObject
fail to load
the ManagedObject
.public Object getObject() throws Throwable
ManagedObject
getObject
in interface ManagedObject
Throwable
- Indicating failed to obtain the object for use.public Object getAttribute(String name)
HttpApplicationState
Object
that is bound to the name.getAttribute
in interface HttpApplicationState
name
- Name.Object
bound to the name or null
if no
Object
bound by the name.public Iterator<String> getAttributeNames()
HttpApplicationState
getAttributeNames
in interface HttpApplicationState
Iterator
to the names of the bound Object
instances.public void setAttribute(String name, Object object)
HttpApplicationState
Object
to the name.setAttribute
in interface HttpApplicationState
name
- Name.object
- Object
.public void removeAttribute(String name)
HttpApplicationState
Object
by the name.removeAttribute
in interface HttpApplicationState
name
- Name of bound Object
to remove.Copyright © 2005–2016. All rights reserved.