|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JNDIService
SPI 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 | |
|---|---|
static String |
JMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUE
Default value |
static String |
JMS_CONNECTION_FACTORY_JNDI_KEY
JMS Connection Factory JNDI Name |
| Method Summary | ||
|---|---|---|
void |
bind(String name,
Object object)
Bind the object with the given name to the JNDI environment |
|
|
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 |
|
| Field Detail |
|---|
static final String JMS_CONNECTION_FACTORY_JNDI_KEY
static final String JMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUE
| Method Detail |
|---|
void bind(String name,
Object object)
name - object -
WebBeansException - on any internal errorvoid unbind(String name)
name -
WebBeansException - on any internal error
<T> T lookup(String name,
Class<? extends T> expectedClass)
name - expectedClass -
null if nothing bound.
WebBeansException - on any internal error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||