Package org.jboss.as.naming
Class StaticManagedObject
- java.lang.Object
-
- org.jboss.as.naming.StaticManagedObject
-
- All Implemented Interfaces:
ContextListManagedReferenceFactory,JndiViewManagedReferenceFactory,ManagedReferenceFactory
public final class StaticManagedObject extends Object implements ContextListManagedReferenceFactory, JndiViewManagedReferenceFactory
A JNDI injectable which returns a static object and takes no action when the value is returned.- Author:
- David M. Lloyd, Eduardo Martins
-
-
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 StaticManagedObject(Object 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.
-
-
-
Constructor Detail
-
StaticManagedObject
public StaticManagedObject(Object value)
Construct a new instance.- Parameters:
value- the value to wrap
-
-
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:
-
-