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 an MSCValueto fetch the injected value, and takes no action when the value is returned.- Author:
- David M. Lloyd, Eduardo Martins
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classValueManagedReferenceFactory.ValueManagedReference
-
Field Summary
-
Fields inherited from interface org.jboss.as.naming.ContextListManagedReferenceFactory
DEFAULT_INSTANCE_CLASS_NAME
-
Fields inherited from interface org.jboss.as.naming.JndiViewManagedReferenceFactory
DEFAULT_JNDI_VIEW_INSTANCE_VALUE
-
-
Constructor Summary
Constructors Constructor Description ValueManagedReferenceFactory(org.jboss.msc.value.Value<?> value)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetInstanceClassName()Retrieves the reference's object instance class name.StringgetJndiViewInstanceValue()Retrieves the reference's object instance JNDI View value.ManagedReferencegetReference()Get a new managed instance reference.
-
-
-
Method Detail
-
getReference
public ManagedReference getReference()
Description copied from interface:ManagedReferenceFactoryGet a new managed instance reference.- Specified by:
getReferencein interfaceManagedReferenceFactory- Returns:
- a reference to a managed object
-
getInstanceClassName
public String 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
public String 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:
-
-