Package org.apache.webbeans.corespi.se
Class DefaultJndiService
- java.lang.Object
-
- org.apache.webbeans.corespi.se.DefaultJndiService
-
- All Implemented Interfaces:
org.apache.webbeans.spi.JNDIService
public class DefaultJndiService extends Object implements org.apache.webbeans.spi.JNDIService
SPI Implementation of the JNDIService. This version doesn't operate on a real JNDI context! Instead it will store the values to bind in a singleton Map. This is intended for all environments where the java:comp and java:app context canot be written to, e.g. because they are only readonly (tomcat, resin, jetty, ...) or don't exist at all (JDK standalone applications)
-
-
Constructor Summary
Constructors Constructor Description DefaultJndiService()
-
-
-
Method Detail
-
bind
public void bind(String name, Object object) throws WebBeansException
- Specified by:
bindin interfaceorg.apache.webbeans.spi.JNDIService- Throws:
WebBeansException
-
getObject
public <T> T getObject(String name, Class<? extends T> expectedClass) throws WebBeansException
- Throws:
WebBeansException
-
unbind
public void unbind(String name) throws WebBeansException
- Specified by:
unbindin interfaceorg.apache.webbeans.spi.JNDIService- Throws:
WebBeansException
-
-