public class ServletDependencyManagedObjectSource.ServletDependencyManagedObject extends Object implements CoordinatingManagedObject<ServletDependencyManagedObjectSource.DependencyKeys>
ManagedObject
for the Servlet
dependency.Constructor and Description |
---|
ServletDependencyManagedObject() |
Modifier and Type | Method and Description |
---|---|
Object |
getObject()
Obtains the object being managed.
|
void |
loadObjects(ObjectRegistry<ServletDependencyManagedObjectSource.DependencyKeys> registry)
Loads the Objects of the
ManagedObject instances to be referenced
by this CoordinatingManagedObject . |
public void loadObjects(ObjectRegistry<ServletDependencyManagedObjectSource.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<ServletDependencyManagedObjectSource.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.