org.springframework.osgi.config
Class ParserUtils.ConventionCallback
java.lang.Object
org.springframework.osgi.config.ParserUtils.ConventionCallback
- All Implemented Interfaces:
- ParserUtils.AttributeCallback
- Enclosing class:
- ParserUtils
public static class ParserUtils.ConventionCallback
- extends Object
- implements ParserUtils.AttributeCallback
Callback relying on 'Spring' conventions. Normally this is the last
callback in the stack trying to convert the property name and then
setting it on the builder.
- Author:
- Costin Leau
- See Also:
Conventions.attributeNameToPropertyName(String)
,
BeanDefinitionBuilder.addPropertyValue(String, Object)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParserUtils.ConventionCallback
public ParserUtils.ConventionCallback()
process
public boolean process(Element parent,
Attr attribute,
BeanDefinitionBuilder builder)
- Description copied from interface:
ParserUtils.AttributeCallback
- Process the given attribute using the contextual element and bean
builder. Normally, the callback will interact with the bean
definition and set some properties. If the callback has
intercepted an attribute, it can stop the invocation of the rest of
the callbacks on the stack by returning false.
- Specified by:
process
in interface ParserUtils.AttributeCallback
- Parameters:
parent
- parent elementattribute
- current intercepted attributebuilder
- builder holding the current bean definition
- Returns:
- true if the rest of the callbacks should be called or false
otherwise.
Copyright © 2006-2007 Spring Framework. All Rights Reserved.