Package org.jboss.as.naming
Class ValueManagedReference
java.lang.Object
org.jboss.as.naming.ValueManagedReference
- All Implemented Interfaces:
ManagedReference
A ManagedReference that simply holds a value.
- Author:
- Stuart Douglas, Richard Opalka
-
Constructor Summary
ConstructorsConstructorDescriptionValueManagedReference(Object value) Construct a new instance.ValueManagedReference(org.jboss.msc.value.Value<?> value) Deprecated. -
Method Summary
-
Constructor Details
-
ValueManagedReference
Deprecated.useValueManagedReference(Object)instead. This constructor will be removed in the future.Construct a new instance.- Parameters:
value- the value to wrap
-
ValueManagedReference
Construct a new instance.- Parameters:
value- the value to wrap
-
-
Method Details
-
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
Description copied from interface:ManagedReferenceGet the object instance.- Specified by:
getInstancein interfaceManagedReference- Returns:
- the object this reference refers to
-
ValueManagedReference(Object)instead.