public class DefaultJndiService extends Object implements JNDIService
JMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUE, JMS_CONNECTION_FACTORY_JNDI_KEY| Constructor and Description |
|---|
DefaultJndiService() |
| 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 JNDIServiceWebBeansException - on any internal errorpublic <T> T getObject(String name, Class<? extends T> expectedClass) throws WebBeansException
WebBeansExceptionpublic void unbind(String name) throws WebBeansException
unbind in interface JNDIServiceWebBeansException - on any internal errorpublic <T> T lookup(String name, Class<? extends T> expectedClass)
JNDIServicelookup in interface JNDIServicenull if nothing bound.Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.