Package org.jboss.as.naming
Interface ManagedReference
-
- All Known Implementing Classes:
ImmediateManagedReference,ValueManagedReference,ValueManagedReferenceFactory.ValueManagedReference
public interface ManagedReferenceA reference to a container managed object- Author:
- Stuart Douglas
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectgetInstance()Get the object instance.voidrelease()Release the reference.
-
-
-
Method Detail
-
release
void release()
Release the reference. Depending on the implementation this may destroy the underlying object. Implementers should take care to make this method idempotent, as it may be called multiple times.
-
getInstance
Object getInstance()
Get the object instance.- Returns:
- the object this reference refers to
-
-