net.sf.snamespaces.config
Class ConfigNamespaceHandler
java.lang.Object
org.springframework.beans.factory.xml.NamespaceHandlerSupport
net.sf.snamespaces.config.ConfigNamespaceHandler
- All Implemented Interfaces:
- org.springframework.beans.factory.xml.NamespaceHandler
public class ConfigNamespaceHandler
- extends org.springframework.beans.factory.xml.NamespaceHandlerSupport
NamespaceHandler
for the 'config
' namespace.
Provides a BeanDefinitionParser
for the <config:element>
tag.
A element
tag can include nested property-placeholder
and property-editor
tags.
The property-placeholder
tag allows for creation of
a property resource configurer that resolves placeholders in bean property
values of context definitions. It pulls values from a properties file
into bean definitions using a follow syntax:
<config:property-placeholder location="classpath:jdbc.properties"/>
<config:property-editor class="example.ExoticTypeEditor" property-type="example.ExoticType">
<!-- bean configuration -->
</config:property-editor>
<config:property-editor-registrar class="example.MyPropertyEditorRegistrar">
<!-- bean configuration -->
</config:property-editor-registrar>
<config:scope name="myScope" class="example.MyScope">
<!-- bean configuration -->
</config:scope>
- Since:
- 1.0
- Version:
- 1.00, 30/07/2007
- Author:
- Jonhnny Weslley
- See Also:
PropertyPlaceholderBeanDefinitionParser
,
PropertyEditorBeanDefinitionParser
,
BeanDefinitionParserDependentFromFactoryPostProcessor
Method Summary |
void |
init()
Register the BeanDefinitionParsers for the
'property-placeholder ', 'property-editor ',
'property-editor-registrar ' and 'scope ' tags. |
Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport |
decorate, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigNamespaceHandler
public ConfigNamespaceHandler()
init
public void init()
- Register the
BeanDefinitionParsers
for the
'property-placeholder
', 'property-editor
',
'property-editor-registrar
' and 'scope
' tags.
Copyright © 2007. All Rights Reserved.