org.jboss.ejb3.kernel
Class JNDIKernelRegistryPlugin
java.lang.Object
org.jboss.ejb3.kernel.JNDIKernelRegistryPlugin
- All Implemented Interfaces:
- org.jboss.kernel.spi.registry.KernelRegistryPlugin
public class JNDIKernelRegistryPlugin
- extends Object
- implements org.jboss.kernel.spi.registry.KernelRegistryPlugin
A kernel registry plugin which checks for JNDI names.
- Version:
- $Revision: 86964 $
- Author:
- Carlo de Wolf, Ales Justin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDI_DEPENDENCY_PREFIX
public static final String JNDI_DEPENDENCY_PREFIX
- See Also:
- Constant Field Values
JNDIKernelRegistryPlugin
public JNDIKernelRegistryPlugin()
JNDIKernelRegistryPlugin
public JNDIKernelRegistryPlugin(Hashtable environment)
create
public void create()
throws NamingException
- Throws:
NamingException
destroy
public void destroy()
throws NamingException
- Throws:
NamingException
getEntry
public org.jboss.kernel.spi.registry.KernelRegistryEntry getEntry(Object name)
- Returns a lazy entry
LazyJNDIKernelRegistryEntry
corresponding
to the passed name, if:
- the name starts with
JNDI_DEPENDENCY_PREFIX
- AND the name is bound in JNDI
Note that to check whether the name is bound in JNDI, "lookup"
is NOT done.
If the name is not bound then returns null (MC "implies" this contract)
- Specified by:
getEntry
in interface org.jboss.kernel.spi.registry.KernelRegistryPlugin
- See Also:
KernelRegistryPlugin.getEntry(Object)
setEnvironment
public void setEnvironment(Hashtable<?,?> env)
Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.