Package org.apache.webbeans.spi
Interface JNDIService
-
public interface JNDIServiceSPI for setting and retrieving objects from the JNDI. Use this interface for all objects which should be stored and retreived from the JNDI at runtime. This may be implemented via a static map for environments where no JNDI is available.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUEDefault valuestatic StringJMS_CONNECTION_FACTORY_JNDI_KEYJMS Connection Factory JNDI Name
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbind(String name, Object object)Bind the object with the given name to the JNDI environment<T> Tlookup(String name, Class<? extends T> expectedClass)Get the object bound to the given name from the JNDI context.voidunbind(String name)Unbind and free the object with the given name from the JNDI environment
-
-
-
Field Detail
-
JMS_CONNECTION_FACTORY_JNDI_KEY
static final String JMS_CONNECTION_FACTORY_JNDI_KEY
JMS Connection Factory JNDI Name- See Also:
- Constant Field Values
-
JMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUE
static final String JMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUE
Default value- See Also:
- Constant Field Values
-
-
Method Detail
-
bind
void bind(String name, Object object)
Bind the object with the given name to the JNDI environment- Parameters:
name-object-- Throws:
WebBeansException- on any internal error
-
unbind
void unbind(String name)
Unbind and free the object with the given name from the JNDI environment- Parameters:
name-- Throws:
WebBeansException- on any internal error
-
-