Package org.jboss.as.naming
Class ValueManagedReference
- java.lang.Object
-
- org.jboss.as.naming.ValueManagedReference
-
- All Implemented Interfaces:
ManagedReference
public class ValueManagedReference extends Object implements ManagedReference
A ManagedReference that simply holds a value'- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description ValueManagedReference(org.jboss.msc.value.Value<Object> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetInstance()Get the object instance.voidrelease()Release the reference.
-
-
-
Constructor Detail
-
ValueManagedReference
public ValueManagedReference(org.jboss.msc.value.Value<Object> value)
-
-
Method Detail
-
release
public void release()
Description copied from interface:ManagedReferenceRelease 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.- Specified by:
releasein interfaceManagedReference
-
getInstance
public Object getInstance()
Description copied from interface:ManagedReferenceGet the object instance.- Specified by:
getInstancein interfaceManagedReference- Returns:
- the object this reference refers to
-
-