net.sf.snamespaces
Class BeanDefinitionParserBinder

java.lang.Object
  extended by net.sf.snamespaces.BeanDefinitionParserBinder

public abstract class BeanDefinitionParserBinder
extends java.lang.Object

Provides methods to support various bindings used throughout the framework.

Since:
1.0
Version:
1.00, 09/09/2007
Author:
Jonhnny Weslley

Constructor Summary
BeanDefinitionParserBinder()
           
 
Method Summary
static void bindProperty(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, org.w3c.dom.Element element, java.lang.String attributeName, java.lang.String propertyName)
          Bind to BeanDefinitionBuilder a value represented by the xml attribute name in element to the specified property.
static void bindProperty(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, org.w3c.dom.Element element, java.lang.String attributeName, java.lang.String propertyName, boolean allowEmpty)
          Bind to BeanDefinitionBuilder a value represented by the xml attribute name in element to the specified property.
static void bindReference(org.springframework.beans.factory.support.BeanDefinitionBuilder builder, org.w3c.dom.Element element, java.lang.String attributeName, java.lang.String propertyName)
          Bind to BeanDefinitionBuilder a reference to the specified bean name represented by the xml attribute name in element under the property specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanDefinitionParserBinder

public BeanDefinitionParserBinder()
Method Detail

bindProperty

public static void bindProperty(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
                                org.w3c.dom.Element element,
                                java.lang.String attributeName,
                                java.lang.String propertyName)
Bind to BeanDefinitionBuilder a value represented by the xml attribute name in element to the specified property.

Parameters:
builder - the BeanDefinitionBuilder
element - the xml element
attributeName - the xml attribute that contains the property value.
propertyName - the name of the property
See Also:
bindProperty(BeanDefinitionBuilder, Element, String, String, boolean)

bindProperty

public static void bindProperty(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
                                org.w3c.dom.Element element,
                                java.lang.String attributeName,
                                java.lang.String propertyName,
                                boolean allowEmpty)
Bind to BeanDefinitionBuilder a value represented by the xml attribute name in element to the specified property.

Parameters:
builder - the BeanDefinitionBuilder
element - the xml element
attributeName - the xml attribute that contains the property value.
propertyName - the name of the property
allowEmpty - the flag to allow or not an empty value to xml attribute value under given xml attribute name
Throws:
java.lang.IllegalArgumentException - if the xml attribute contains a empty value and allowEmpty param is false

bindReference

public static void bindReference(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
                                 org.w3c.dom.Element element,
                                 java.lang.String attributeName,
                                 java.lang.String propertyName)
Bind to BeanDefinitionBuilder a reference to the specified bean name represented by the xml attribute name in element under the property specified.

Parameters:
builder - the BeanDefinitionBuilder
element - the xml element
attributeName - the xml attribute name that contains the name of the bean being referenced
propertyName - the name of the property to add the reference to
Throws:
java.lang.IllegalArgumentException - if the xml attribute under given name contains a empty value


Copyright © 2007. All Rights Reserved.