|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.osgi.config.ParserUtils
public abstract class ParserUtils
Parsing utility class.
Nested Class Summary | |
---|---|
static interface |
ParserUtils.AttributeCallback
Wrapper callback used for parsing attributes (one at a time) that have are non standard (ID, LAZY-INIT, DEPENDS-ON). |
static class |
ParserUtils.ConventionCallback
Callback relying on 'Spring' conventions. |
static class |
ParserUtils.PropertyRefAttributeCallback
Convention callback that transforms "<property-name>-ref" attributes into a bean definition that sets the give <property-name> to a bean reference pointing to the attribute value. |
static class |
ParserUtils.StandardAttributeCallback
Standard attribute callback. |
Constructor Summary | |
---|---|
ParserUtils()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParserUtils()
Method Detail |
---|
public static void parseAttributes(Element element, BeanDefinitionBuilder builder, ParserUtils.AttributeCallback[] callbacks)
element
- XML elementbuilder
- current bean definition buildercallbacks
- array of callbacks (can be null/empty)public static void parseCustomAttributes(Element element, BeanDefinitionBuilder builder, ParserUtils.AttributeCallback[] callbacks)
ParserUtils.StandardAttributeCallback
sParserUtils.StandardAttributeCallback
ParserUtils.PropertyRefAttributeCallback
ParserUtils.ConventionCallback
element
- XML elementbuilder
- current bean definition buildercallbacks
- array of callbacks (can be null/empty)public static void parseCustomAttributes(Element element, BeanDefinitionBuilder builder, ParserUtils.AttributeCallback callback)
#parseCustomAttributes(Element, BeanDefinitionBuilder, org.springframework.osgi.internal.config.ParserUtils.AttributeCallback[])
accepting only one ParserUtils.StandardAttributeCallback
.
element
- XML elementbuilder
- current bean definition buildercallback
- attribute callback, can be nullpublic static OsgiDefaultsDefinition initOsgiDefaults(Document document)
document
- XML document
OsgiDefaultsDefinition
instancepublic static OsgiDefaultsDefinition initOsgiDefaults(Element root)
root
- root document element
OsgiDefaultsDefinition
instancepublic static ParserUtils.AttributeCallback[] mergeCallbacks(ParserUtils.AttributeCallback[] callbacksA, ParserUtils.AttributeCallback[] callbacksB)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |