Package org.jboss.as.naming.deployment
Class NamingLookupValue<T>
- java.lang.Object
-
- org.jboss.as.naming.deployment.NamingLookupValue<T>
-
-
Constructor Summary
Constructors Constructor Description NamingLookupValue(String contextName)Create a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Injector<Context>getContextInjector()Get the naming context injector.TgetValue()Lookup the value from the naming context.
-
-
-
Constructor Detail
-
NamingLookupValue
public NamingLookupValue(String contextName)
Create a new instance.- Parameters:
contextName- The context name to lookup if the value is not injected
-
-
Method Detail
-
getValue
public T getValue() throws IllegalStateException
Lookup the value from the naming context.- Specified by:
getValuein interfaceValue<T>- Returns:
- the injected value if present, the value retrieved from the context if not.
- Throws:
IllegalStateException- The name is not found in the context when called
-
-