Package org.jboss.as.naming.deployment
Class NamingLookupValue<T>
java.lang.Object
org.jboss.as.naming.deployment.NamingLookupValue<T>
- All Implemented Interfaces:
org.jboss.msc.value.Value<T>
Value that is looked up from a naming context.
- Author:
- John E. Bailey
-
Constructor Details
-
NamingLookupValue
Create a new instance.- Parameters:
contextName- The context name to lookup if the value is not injected
-
-
Method Details
-
getValue
Lookup the value from the naming context.- Specified by:
getValuein interfaceorg.jboss.msc.value.Value<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
-
getContextInjector
Get the naming context injector.- Returns:
- The context injector
-