public final class JNDIServiceEnterpriseImpl extends Object implements JNDIService
DefaultJndiService
JMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUE, JMS_CONNECTION_FACTORY_JNDI_KEY
Constructor and Description |
---|
JNDIServiceEnterpriseImpl() |
Modifier and Type | Method and Description |
---|---|
void |
bind(String name,
Object object)
Bind the object with the given name to the JNDI environment
|
<T> T |
getObject(String name,
Class<? extends T> expectedClass) |
<T> T |
lookup(String name,
Class<? extends T> expectedClass)
Get the object bound to the given name from the JNDI context.
|
void |
unbind(String name)
Unbind and free the object with the given name from the JNDI environment
|
public void bind(String name, Object object) throws WebBeansException
bind
in interface JNDIService
WebBeansException
- on any internal errorpublic void unbind(String name) throws WebBeansException
unbind
in interface JNDIService
WebBeansException
- on any internal errorpublic <T> T getObject(String name, Class<? extends T> expectedClass) throws WebBeansException
WebBeansException
public <T> T lookup(String name, Class<? extends T> expectedClass)
JNDIService
lookup
in interface JNDIService
null
if nothing bound.Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.