public abstract class ParserUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
REFERENCE_LISTENER_REF_ATTR |
| Constructor and Description |
|---|
ParserUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Set<?> |
convertClassesToStrings(Set<?> parsedClasses)
Utility method used for maintaining backwards compatibility by converting Class objects to String (using their
class names).
|
static AttributeCallback[] |
mergeCallbacks(AttributeCallback[] callbacksA,
AttributeCallback[] callbacksB) |
static void |
parseAttributes(Element element,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
AttributeCallback[] callbacks)
Generic attribute callback.
|
static void |
parseCustomAttributes(Element element,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
AttributeCallback callback)
Derivative for
#parseCustomAttributes(Element, BeanDefinitionBuilder, org.eclipse.gemini.blueprint.internal.config.ParserUtils.AttributeCallback[])
accepting only one AttributeCallback. |
static void |
parseCustomAttributes(Element element,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
AttributeCallback[] callbacks)
Dedicated parsing method that uses the following stack:
user given
AttributeCallbacks StandardAttributeCallback
PropertyRefAttributeCallback ConventionCallback |
public static final String REFERENCE_LISTENER_REF_ATTR
public static void parseAttributes(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder builder, AttributeCallback[] callbacks)
element - XML elementbuilder - current bean definition buildercallbacks - array of callbacks (can be null/empty)public static void parseCustomAttributes(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder builder, AttributeCallback[] callbacks)
AttributeCallbacksStandardAttributeCallbackPropertyRefAttributeCallbackConventionCallbackelement - XML elementbuilder - current bean definition buildercallbacks - array of callbacks (can be null/empty)public static void parseCustomAttributes(Element element, org.springframework.beans.factory.support.BeanDefinitionBuilder builder, AttributeCallback callback)
#parseCustomAttributes(Element, BeanDefinitionBuilder, org.eclipse.gemini.blueprint.internal.config.ParserUtils.AttributeCallback[])
accepting only one AttributeCallback.element - XML elementbuilder - current bean definition buildercallback - attribute callback, can be nullpublic static AttributeCallback[] mergeCallbacks(AttributeCallback[] callbacksA, AttributeCallback[] callbacksB)
public static Set<?> convertClassesToStrings(Set<?> parsedClasses)
parsedClasses - collection of parsed classesCopyright © 2006–2015. All rights reserved.