org.spicefactory.cinnamon.config.spring
Class CinnamonNamespaceHandler
java.lang.Object
org.springframework.beans.factory.xml.NamespaceHandlerSupport
org.spicefactory.cinnamon.config.spring.CinnamonNamespaceHandler
- All Implemented Interfaces:
- NamespaceHandler
public class CinnamonNamespaceHandler
- extends NamespaceHandlerSupport
Implementation of Springs NamespaceHandler interface. It extends the Spring XML configuration
with tags for configuring Cinnamon services and class mappings. The tags it supports are
<export-service>, <service>,
<bean-class-mapping> and <externalizable-class-mapping>.
The first one (<service>) can also be used as a decorator for existing bean
configurations. In the most simple case (using sensible defaults) only an empty tag is needed
to export an existing Spring bean as a Cinnamon service:
<bean id=someBean" class="org.example.SomeBean">
<property name="aProperty" value="5"/>
<cinnamon:service/>
</bean>
- Author:
- Jens Halm
|
Method Summary |
void |
init()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CinnamonNamespaceHandler
public CinnamonNamespaceHandler()
init
public void init()