org.jboss.ejb3.kernel
Class JNDIKernelRegistryPlugin

java.lang.Object
  extended by 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

Field Summary
static String JNDI_DEPENDENCY_PREFIX
           
 
Constructor Summary
JNDIKernelRegistryPlugin()
           
JNDIKernelRegistryPlugin(Hashtable environment)
           
 
Method Summary
 void create()
           
 void destroy()
           
 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.
 void setEnvironment(Hashtable<?,?> env)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_DEPENDENCY_PREFIX

public static final String JNDI_DEPENDENCY_PREFIX
See Also:
Constant Field Values
Constructor Detail

JNDIKernelRegistryPlugin

public JNDIKernelRegistryPlugin()

JNDIKernelRegistryPlugin

public JNDIKernelRegistryPlugin(Hashtable environment)
Method Detail

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:
  1. the name starts with JNDI_DEPENDENCY_PREFIX
  2. 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 © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.