org.springframework.ejb.config
Class AbstractJndiLocatingBeanDefinitionParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
          extended by org.springframework.beans.factory.xml.AbstractSimpleBeanDefinitionParser
              extended by org.springframework.ejb.config.AbstractJndiLocatingBeanDefinitionParser
All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
JndiLookupBeanDefinitionParser, LocalStatelessSessionBeanDefinitionParser, RemoteStatelessSessionBeanDefinitionParser

abstract class AbstractJndiLocatingBeanDefinitionParser
extends AbstractSimpleBeanDefinitionParser

Abstract base class for BeanDefinitionParsers which build JNDI-locating beans, supporting an optional "jndiEnvironment" bean property, populated from an "environment" XML sub-element.

Since:
2.0
Author:
Rob Harrop, Juergen Hoeller, Oliver Gierke

Field Summary
static java.lang.String ENVIRONMENT
           
static java.lang.String ENVIRONMENT_REF
           
static java.lang.String JNDI_ENVIRONMENT
           
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
 
Constructor Summary
AbstractJndiLocatingBeanDefinitionParser()
           
 
Method Summary
protected  boolean isEligibleAttribute(java.lang.String attributeName)
          Determine whether the given attribute is eligible for being turned into a corresponding bean property value.
protected  void postProcess(BeanDefinitionBuilder definitionBuilder, org.w3c.dom.Element element)
          Hook method that derived classes can implement to inspect/change a bean definition after parsing is complete.
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractSimpleBeanDefinitionParser
doParse, extractPropertyName, isEligibleAttribute, isEligibleAttribute
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClass, getBeanClassName, getParentName, parseInternal
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, registerBeanDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENVIRONMENT

public static final java.lang.String ENVIRONMENT
See Also:
Constant Field Values

ENVIRONMENT_REF

public static final java.lang.String ENVIRONMENT_REF
See Also:
Constant Field Values

JNDI_ENVIRONMENT

public static final java.lang.String JNDI_ENVIRONMENT
See Also:
Constant Field Values
Constructor Detail

AbstractJndiLocatingBeanDefinitionParser

AbstractJndiLocatingBeanDefinitionParser()
Method Detail

isEligibleAttribute

protected boolean isEligibleAttribute(java.lang.String attributeName)
Description copied from class: AbstractSimpleBeanDefinitionParser
Determine whether the given attribute is eligible for being turned into a corresponding bean property value.

The default implementation considers any attribute as eligible, except for the "id" attribute.

Overrides:
isEligibleAttribute in class AbstractSimpleBeanDefinitionParser
Parameters:
attributeName - the attribute name taken straight from the XML element being parsed (never null)

postProcess

protected void postProcess(BeanDefinitionBuilder definitionBuilder,
                           org.w3c.dom.Element element)
Description copied from class: AbstractSimpleBeanDefinitionParser
Hook method that derived classes can implement to inspect/change a bean definition after parsing is complete.

The default implementation does nothing.

Overrides:
postProcess in class AbstractSimpleBeanDefinitionParser
Parameters:
definitionBuilder - the parsed (and probably totally defined) bean definition being built
element - the XML element that was the source of the bean definition's metadata