|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.spring.configurator.impl.AbstractElementParser
This is a base class for all bean definition parsers used in Cocoon. It provides some utility methods.
| Field Summary | |
protected Log |
logger
Logger (we use the same logging mechanism as Spring!) |
| Constructor Summary | |
AbstractElementParser()
|
|
| Method Summary | |
protected void |
addComponent(Class componentClass,
String beanName,
String initMethod,
boolean requiresSettings,
BeanDefinitionRegistry registry)
Add a new bean definition to the registry. |
protected void |
addComponent(String componentClass,
String beanName,
String initMethod,
boolean requiresSettings,
BeanDefinitionRegistry registry)
Add a new bean definition to the registry. |
protected RootBeanDefinition |
createBeanDefinition(Class componentClass,
String initMethod,
boolean requiresSettings)
Helper method to create a new bean definition. |
protected RootBeanDefinition |
createBeanDefinition(String componentClass,
String initMethod,
boolean requiresSettings)
Helper method to create a new bean definition. |
protected String |
getAttributeValue(Element element,
String attributeName,
String defaultValue)
Get the value of an attribute or if the attribute is not present return the default value. |
protected Element[] |
getChildElements(Element element,
String localName)
Returns all Element children of an Element that have the given local name. |
protected void |
register(BeanDefinition beanDef,
Element element,
BeanDefinitionRegistry registry)
Register a global bean definition. |
protected void |
register(BeanDefinition beanDef,
String beanName,
BeanDefinitionRegistry registry)
Register a bean definition. |
protected void |
register(BeanDefinition beanDef,
String beanName,
String alias,
BeanDefinitionRegistry registry)
Register a bean definition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.beans.factory.xml.BeanDefinitionParser |
parse |
| Field Detail |
protected final Log logger
| Constructor Detail |
public AbstractElementParser()
| Method Detail |
protected String getAttributeValue(Element element,
String attributeName,
String defaultValue)
protected Element[] getChildElements(Element element,
String localName)
protected void register(BeanDefinition beanDef,
String beanName,
BeanDefinitionRegistry registry)
beanDef - The bean definition.beanName - The name of the bean.registry - The registry.
protected void register(BeanDefinition beanDef,
String beanName,
String alias,
BeanDefinitionRegistry registry)
beanDef - The bean definition.beanName - The name of the bean.alias - Optional alias.registry - The registry.
protected void register(BeanDefinition beanDef,
Element element,
BeanDefinitionRegistry registry)
beanDef - The bean definition.element - The xml element defining the bean.registry - The registry.
protected RootBeanDefinition createBeanDefinition(Class componentClass,
String initMethod,
boolean requiresSettings)
componentClass - The class of the implementation.initMethod - Optional initialization method.requiresSettings - If set to true, this bean has a property "settings" for the
settings object.
protected RootBeanDefinition createBeanDefinition(String componentClass,
String initMethod,
boolean requiresSettings)
componentClass - The class of the implementation.initMethod - Optional initialization method.requiresSettings - If set to true, this bean has a property "settings" for the
settings object.
protected void addComponent(Class componentClass,
String beanName,
String initMethod,
boolean requiresSettings,
BeanDefinitionRegistry registry)
componentClass - The class of the implementation.beanName - The name of the bean.initMethod - Optional initialization method.requiresSettings - If set to true, this bean has a property "settings" for the
settings object.registry - The bean registry.
protected void addComponent(String componentClass,
String beanName,
String initMethod,
boolean requiresSettings,
BeanDefinitionRegistry registry)
componentClass - The class of the implementation.beanName - The name of the bean.initMethod - Optional initialization method.requiresSettings - If set to true, this bean has a property "settings" for the
settings object.registry - The bean registry.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||