public class ServletHttpSessionManagedObjectSource.ServletHttpSessionManagedObject extends Object implements CoordinatingManagedObject<ServletHttpSessionManagedObjectSource.DependencyKeys>
ManagedObject
for the ServletHttpSession
.Constructor and Description |
---|
ServletHttpSessionManagedObject() |
Modifier and Type | Method and Description |
---|---|
Object |
getObject()
Obtains the object being managed.
|
void |
loadObjects(ObjectRegistry<ServletHttpSessionManagedObjectSource.DependencyKeys> registry)
Loads the Objects of the
ManagedObject instances to be referenced
by this CoordinatingManagedObject . |
public void loadObjects(ObjectRegistry<ServletHttpSessionManagedObjectSource.DependencyKeys> 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<ServletHttpSessionManagedObjectSource.DependencyKeys>
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.Copyright © 2005–2016. All rights reserved.