public abstract class ParserUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static AttributeCallback |
BLUEPRINT_ATTRS_CALLBACK |
private static AttributeCallback |
PROPERTY_CONV_ATTRS_CALLBACK |
private static AttributeCallback |
PROPERTY_REF_ATTRS_CALLBACK |
static java.lang.String |
REFERENCE_LISTENER_REF_ATTR |
private static AttributeCallback |
STANDARD_ATTRS_CALLBACK |
| Constructor and Description |
|---|
ParserUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<?> |
convertClassesToStrings(java.util.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(org.w3c.dom.Element element,
org.springframework.beans.factory.support.BeanDefinitionBuilder builder,
AttributeCallback[] callbacks)
Generic attribute callback.
|
static void |
parseCustomAttributes(org.w3c.dom.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(org.w3c.dom.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 |
private static final AttributeCallback STANDARD_ATTRS_CALLBACK
private static final AttributeCallback BLUEPRINT_ATTRS_CALLBACK
private static final AttributeCallback PROPERTY_REF_ATTRS_CALLBACK
private static final AttributeCallback PROPERTY_CONV_ATTRS_CALLBACK
public static final java.lang.String REFERENCE_LISTENER_REF_ATTR
public static void parseAttributes(org.w3c.dom.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(org.w3c.dom.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(org.w3c.dom.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 java.util.Set<?> convertClassesToStrings(java.util.Set<?> parsedClasses)
parsedClasses - collection of parsed classes