com.interface21.ejb.support
Class JndiEnvironmentBeanFactory

java.lang.Object
  |
  +--com.interface21.beans.factory.support.AbstractBeanFactory
        |
        +--com.interface21.beans.factory.support.ListableBeanFactoryImpl
              |
              +--com.interface21.ejb.support.JndiEnvironmentBeanFactory
All Implemented Interfaces:
BeanFactory, ListableBeanFactory

public class JndiEnvironmentBeanFactory
extends ListableBeanFactoryImpl

BeanFactory implementation populated by JNDI environment variables available to an object running in a J2EE application server. Such a bean factory might be used to parameterize EJBs.
Only environment entries with names beginning with "beans." are included.

Version:
$Id: JndiEnvironmentBeanFactory.java,v 1.1 2003/05/10 07:50:15 johnsonr Exp $
Author:
Rod Johnson

Field Summary
static java.lang.String BEANS_PREFIX
          Syntax is beans.name.class=Y
static java.lang.String DELIMITER
          Delimiter for properties
 
Fields inherited from class com.interface21.beans.factory.support.ListableBeanFactoryImpl
CLASS_KEY, DEFAULT_PREFIX, PARENT_KEY, REF_PREFIX, REF_SUFFIX, SEPARATOR, SINGLETON_KEY
 
Fields inherited from class com.interface21.beans.factory.support.AbstractBeanFactory
defaultParentBean, FACTORY_BEAN_PREFIX, logger
 
Constructor Summary
JndiEnvironmentBeanFactory(java.lang.String root)
          Creates new JNDIBeanFactory
 
Methods inherited from class com.interface21.beans.factory.support.ListableBeanFactoryImpl
getBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getDefaultParentBean, preInstantiateSingletons, registerBeanDefinition, registerBeanDefinitions, registerBeanDefinitions, setDefaultParentBean, toString
 
Methods inherited from class com.interface21.beans.factory.support.AbstractBeanFactory
getAliases, getBean, getBean, getBeanClass, getParentBeanFactory, isSingleton, registerAlias
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.interface21.beans.factory.BeanFactory
getAliases, getBean, getBean, isSingleton
 

Field Detail

BEANS_PREFIX

public static final java.lang.String BEANS_PREFIX
Syntax is beans.name.class=Y

DELIMITER

public static final java.lang.String DELIMITER
Delimiter for properties
Constructor Detail

JndiEnvironmentBeanFactory

public JndiEnvironmentBeanFactory(java.lang.String root)
                           throws BeansException
Creates new JNDIBeanFactory
Parameters:
root - likely to be "java:comp/env"


Rod Johnson and Spring contributors 2001-2003.