Home » apache-openwebbeans-1.0.0-incubating-M3-sources » org.apache.webbeans.spi » [javadoc | source]
public interface: JNDIService [javadoc | source]

All Known Implementing Classes:
    JNDIServiceStaticImpl, JNDIServiceEnterpriseImpl

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
public static final  String JMS_CONNECTION_FACTORY_JNDI_KEY    JMS Connection Factory JNDI Name 
public static final  String JMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUE    Default value 
Method from org.apache.webbeans.spi.JNDIService Summary:
bind,   getObject,   unbind
Method from org.apache.webbeans.spi.JNDIService Detail:
 abstract public  void bind(String name,
    Object object) throws WebBeansException
    Bind the object with the given name to the JNDI environment
 abstract public T getObject(String name,
    Class<? extends T> expectedClass) throws WebBeansException
    Get the object bound to the given name from the JNDI context.
 abstract public  void unbind(String name) throws WebBeansException
    Unbind and free the object with the given name from the JNDI environment