org.apache.webbeans.ee.common.services
Class JNDIServiceEnterpriseImpl

java.lang.Object
  extended by org.apache.webbeans.ee.common.services.JNDIServiceEnterpriseImpl
All Implemented Interfaces:
JNDIService

public final class JNDIServiceEnterpriseImpl
extends Object
implements JNDIService

SPI Implementation of the JNDIService. This version performs JNDI handling in J2EE environments where the java:comp and java:app context can be written

See Also:
DefaultJndiService

Field Summary
 
Fields inherited from interface org.apache.webbeans.spi.JNDIService
JMS_CONNECTION_FACTORY_JNDI_DEFAULT_VALUE, JMS_CONNECTION_FACTORY_JNDI_KEY
 
Constructor Summary
JNDIServiceEnterpriseImpl()
           
 
Method Summary
 void bind(String name, Object object)
          
<T> T
getObject(String name, Class<? extends T> expectedClass)
          
<T> T
lookup(String name, Class<? extends T> expectedClass)
           
 void unbind(String name)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JNDIServiceEnterpriseImpl

public JNDIServiceEnterpriseImpl()
Method Detail

bind

public void bind(String name,
                 Object object)
          throws WebBeansException

Specified by:
bind in interface JNDIService
Throws:
WebBeansException

unbind

public void unbind(String name)
            throws WebBeansException

Specified by:
unbind in interface JNDIService
Throws:
WebBeansException

getObject

public <T> T getObject(String name,
                       Class<? extends T> expectedClass)
            throws WebBeansException

Throws:
WebBeansException

lookup

public <T> T lookup(String name,
                    Class<? extends T> expectedClass)
Specified by:
lookup in interface JNDIService


Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.