|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.config.YarnNamespaceUtils
public class YarnNamespaceUtils
Shared utility methods for yarn namespace parsers.
| Constructor Summary | |
|---|---|
YarnNamespaceUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
createElementDescription(org.w3c.dom.Element element)
Provides a user friendly description of an element based on its node name and, if available, its "id" attribute value. |
static org.springframework.beans.factory.parsing.BeanComponentDefinition |
parseInnerHandlerDefinition(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
Parses inner bean definition from an dom element. |
static boolean |
setCSVReferenceProperty(org.w3c.dom.Element element,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
java.lang.String attrName,
java.lang.String propertyName)
Sets the reference property as list from a comma delimited string. |
static void |
setReferenceIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName)
Configures the provided bean definition builder with a property reference to a bean. |
static void |
setReferenceIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String defaultName)
Configures the provided bean definition builder with a property reference to a bean. |
static void |
setReferenceIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String propertyName,
java.lang.String defaultName)
Configures the provided bean definition builder with a property reference to a bean. |
static void |
setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName)
Configures the provided bean definition builder with a property value corresponding to the attribute whose name is provided if that attribute is defined in the given element. |
static void |
setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
boolean emptyStringAllowed)
Configures the provided bean definition builder with a property value corresponding to the attribute whose name is provided if that attribute is defined in the given element. |
static void |
setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
boolean emptyStringAllowed,
java.lang.String defaultPropertyValue)
Configures the provided bean definition builder with a property value corresponding to the attribute whose name is provided if that attribute is defined in the given element. |
static void |
setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String propertyName)
Configures the provided bean definition builder with a property value corresponding to the attribute whose name is provided if that attribute is defined in the given element. |
static void |
setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String propertyName,
boolean emptyStringAllowed)
Configures the provided bean definition builder with a property value corresponding to the attribute whose name is provided if that attribute is defined in the given element. |
static void |
setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String propertyName,
boolean emptyStringAllowed,
java.lang.String defaultPropertyValue)
Configures the provided bean definition builder with a property value corresponding to the attribute whose name is provided if that attribute is defined in the given element. |
static void |
setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String propertyName,
java.lang.String defaultPropertyValue)
Configures the provided bean definition builder with a property value corresponding to the attribute whose name is provided if that attribute is defined in the given element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YarnNamespaceUtils()
| Method Detail |
|---|
public static void setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String propertyName)
builder - the bean definition builder to be configuredelement - the XML element where the attribute should be definedattributeName - the name of the attribute whose value will be used to populate the propertypropertyName - the name of the property to be populated
public static void setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String propertyName,
java.lang.String defaultPropertyValue)
builder - the bean definition builder to be configuredelement - the XML element where the attribute should be definedattributeName - the name of the attribute whose value will be used to populate the propertypropertyName - the name of the property to be populateddefaultPropertyValue - Property value to use as default
public static void setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName)
The property name will be the camel-case equivalent of the lower case hyphen separated attribute (e.g. the "foo-bar" attribute would match the "fooBar" property).
builder - the bean definition builder to be configuredelement - the XML element where the attribute should be definedattributeName - the name of the attribute whose value will be set on the propertyConventions.attributeNameToPropertyName(String)
public static void setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String propertyName,
boolean emptyStringAllowed)
builder - the bean definition builder to be configuredelement - the XML element where the attribute should be definedattributeName - the name of the attribute whose value will be
used to populate the propertypropertyName - the name of the property to be populatedemptyStringAllowed - if true, the value is set, even if an empty String (""); if
false, an empty String is treated as if the attribute wasn't provided.
public static void setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String propertyName,
boolean emptyStringAllowed,
java.lang.String defaultPropertyValue)
builder - the bean definition builder to be configuredelement - the XML element where the attribute should be definedattributeName - the name of the attribute whose value will be
used to populate the propertypropertyName - the name of the property to be populatedemptyStringAllowed - if true, the value is set, even if an empty String (""); if
false, an empty String is treated as if the attribute wasn't provided.defaultPropertyValue - Property value to use as default
public static void setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
boolean emptyStringAllowed)
The property name will be the camel-case equivalent of the lower case hyphen separated attribute (e.g. the "foo-bar" attribute would match the "fooBar" property).
builder - the bean definition builder to be configuredelement - the XML element where the attribute should be definedattributeName - the name of the attribute whose value will be set on the propertyemptyStringAllowed - if true, the value is set, even if an empty String (""); if
false, an empty String is treated as if the attribute wasn't provided.Conventions.attributeNameToPropertyName(String)
public static void setValueIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
boolean emptyStringAllowed,
java.lang.String defaultPropertyValue)
The property name will be the camel-case equivalent of the lower case hyphen separated attribute (e.g. the "foo-bar" attribute would match the "fooBar" property).
builder - the bean definition builder to be configuredelement - the XML element where the attribute should be definedattributeName - the name of the attribute whose value will be set on the propertyemptyStringAllowed - if true, the value is set, even if an empty String (""); if
false, an empty String is treated as if the attribute wasn't provided.defaultPropertyValue - Property value to use as defaultConventions.attributeNameToPropertyName(String)
public static void setReferenceIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String propertyName,
java.lang.String defaultName)
builder - the bean definition builder to be configuredelement - the XML element where the attribute should be definedattributeName - the name of the attribute whose value will be used as a bean
reference to populate the propertydefaultName - the default bean reference name to usepropertyName - the name of the property to be populated
public static void setReferenceIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName)
The property name will be the camel-case equivalent of the lower case hyphen separated attribute (e.g. the "foo-bar" attribute would match the "fooBar" property).
builder - the bean definition builder to be configuredelement - the XML element where the attribute should be definedattributeName - the name of the attribute whose value will be used as a bean
reference to populate the propertyConventions.attributeNameToPropertyName(String),
Conventions.attributeNameToPropertyName(String)
public static void setReferenceIfAttributeDefined(org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
org.w3c.dom.Element element,
java.lang.String attributeName,
java.lang.String defaultName)
The property name will be the camel-case equivalent of the lower case hyphen separated attribute (e.g. the "foo-bar" attribute would match the "fooBar" property).
builder - the bean definition builder to be configuredelement - the XML element where the attribute should be definedattributeName - the name of the attribute whose value will be used as a bean
reference to populate the propertydefaultName - the default bean reference name to useConventions.attributeNameToPropertyName(String),
Conventions.attributeNameToPropertyName(String)
public static org.springframework.beans.factory.parsing.BeanComponentDefinition parseInnerHandlerDefinition(org.w3c.dom.Element element,
org.springframework.beans.factory.xml.ParserContext parserContext)
element - the dom elementparserContext - the parser context
public static java.lang.String createElementDescription(org.w3c.dom.Element element)
element - the dom element
public static boolean setCSVReferenceProperty(org.w3c.dom.Element element,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
java.lang.String attrName,
java.lang.String propertyName)
element - the elementbuilder - the builderattrName - the attr namepropertyName - the property name
|
Spring for Apache Hadoop | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||