org.springframework.osgi.config
Interface ParserUtils.AttributeCallback

All Known Implementing Classes:
ParserUtils.ConventionCallback, ParserUtils.PropertyRefAttributeCallback, ParserUtils.StandardAttributeCallback
Enclosing class:
ParserUtils

public static interface ParserUtils.AttributeCallback

Wrapper callback used for parsing attributes (one at a time) that have are non standard (ID, LAZY-INIT, DEPENDS-ON).

Author:
Costin Leau

Method Summary
 boolean process(Element parent, Attr attribute, BeanDefinitionBuilder builder)
          Process the given attribute using the contextual element and bean builder.
 

Method Detail

process

boolean process(Element parent,
                Attr attribute,
                BeanDefinitionBuilder builder)
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.

Parameters:
parent - parent element
attribute - current intercepted attribute
builder - 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.