public class NamingLookupValue<T> extends Object implements org.jboss.msc.value.Value<T>
Constructor and Description |
---|
NamingLookupValue(String contextName)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
org.jboss.msc.inject.Injector<Context> |
getContextInjector()
Get the naming context injector.
|
T |
getValue()
Lookup the value from the naming context.
|
public NamingLookupValue(String contextName)
contextName
- The context name to lookup if the value is not injectedpublic T getValue() throws IllegalStateException
getValue
in interface org.jboss.msc.value.Value<T>
IllegalStateException
- The name is not found in the context when calledpublic org.jboss.msc.inject.Injector<Context> getContextInjector()
Copyright © 2017 JBoss by Red Hat. All rights reserved.