Package org.jboss.as.naming
Class ValueManagedReferenceFactory
java.lang.Object
org.jboss.as.naming.ValueManagedReferenceFactory
- All Implemented Interfaces:
ContextListAndJndiViewManagedReferenceFactory,ContextListManagedReferenceFactory,JndiViewManagedReferenceFactory,ManagedReferenceFactory
public final class ValueManagedReferenceFactory
extends Object
implements ContextListAndJndiViewManagedReferenceFactory
A JNDI injectable which simply uses a value and takes no action when the value is returned.
- Author:
- David M. Lloyd, Eduardo Martins, Richard Opalka
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.jboss.as.naming.ContextListManagedReferenceFactory
DEFAULT_INSTANCE_CLASS_NAMEFields inherited from interface org.jboss.as.naming.JndiViewManagedReferenceFactory
DEFAULT_JNDI_VIEW_INSTANCE_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance.ValueManagedReferenceFactory(org.jboss.msc.value.Value<?> value) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the reference's object instance class name.Retrieves the reference's object instance JNDI View value.Get a new managed instance reference.
-
Constructor Details
-
ValueManagedReferenceFactory
Deprecated.useValueManagedReferenceFactory(Object)instead. This constructor will be removed in the future.Construct a new instance.- Parameters:
value- the value to wrap
-
ValueManagedReferenceFactory
Construct a new instance.- Parameters:
value- the value to wrap
-
-
Method Details
-
getReference
Description copied from interface:ManagedReferenceFactoryGet a new managed instance reference.- Specified by:
getReferencein interfaceManagedReferenceFactory- Returns:
- a reference to a managed object
-
getInstanceClassName
Description copied from interface:ContextListManagedReferenceFactoryRetrieves the reference's object instance class name. If it's impossible to obtain such data, the factory should return the static attribute DEFAULT_INSTANCE_CLASS_NAME, exposed by this interface.- Specified by:
getInstanceClassNamein interfaceContextListManagedReferenceFactory- Returns:
-
getJndiViewInstanceValue
Description copied from interface:JndiViewManagedReferenceFactoryRetrieves the reference's object instance JNDI View value. If it's not possible to obtain such data, the factory should return the static attribute DEFAULT_JNDI_VIEW_INSTANCE_VALUE, exposed by this interface.- Specified by:
getJndiViewInstanceValuein interfaceJndiViewManagedReferenceFactory- Returns:
-
ValueManagedReferenceFactory(Object)instead.