org.spicefactory.cinnamon.config.spring
Class CinnamonNamespaceHandler

java.lang.Object
  extended by org.springframework.beans.factory.xml.NamespaceHandlerSupport
      extended by 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

Constructor Summary
CinnamonNamespaceHandler()
           
 
Method Summary
 void init()
           
 
Methods inherited from class org.springframework.beans.factory.xml.NamespaceHandlerSupport
decorate, findDecoratorForNode, findParserForElement, parse, registerBeanDefinitionDecorator, registerBeanDefinitionDecoratorForAttribute, registerBeanDefinitionParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CinnamonNamespaceHandler

public CinnamonNamespaceHandler()
Method Detail

init

public void init()