org.mule.config.processors
Class DecoratingAnnotatedServiceProcessor

java.lang.Object
  extended by org.mule.config.processors.DecoratingAnnotatedServiceProcessor
All Implemented Interfaces:
MuleContextAware, ObjectProcessor, PreInitProcessor

public class DecoratingAnnotatedServiceProcessor
extends Object
implements PreInitProcessor, MuleContextAware

This object processor allows users to register annotated services directly to the registry and have them configured correctly. It will look for a non-system Model registered with the Registry. If one is not found a default SEDA Model will be created Finally, the processor will register the service with the Registry and return null.


Field Summary
protected  MuleContext context
           
protected  AnnotatedEndpointHelper helper
           
protected  Log logger
          logger used by this class
protected  AnnotationsParserFactory parserFactory
           
protected  RegistryMap regProps
           
 
Constructor Summary
DecoratingAnnotatedServiceProcessor()
           
DecoratingAnnotatedServiceProcessor(MuleContext context)
           
 
Method Summary
protected  String getValue(String key)
           
 Object process(Object object)
           
protected  void processInbound(Class componentFactoryClass, Service service)
           
protected  void processInboundRouters(Class componentFactoryClass, Service service)
           
protected  void processOutbound(Class componentFactoryClass, Service service)
           
protected  OutboundRouter processOutboundRouter(Class componentFactoryClass)
           
protected  void processReply(Class componentFactoryClass, Service service)
           
protected  void processReplyRouters(Class componentFactoryClass, Service service)
           
 void setMuleContext(MuleContext context)
           
protected  InboundEndpoint tryInboundEndpointAnnotation(AnnotationMetaData metaData, ChannelType channelType)
           
protected  OutboundEndpoint tryOutboundEndpointAnnotation(AnnotationMetaData metaData, ChannelType channelType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final transient Log logger
logger used by this class


context

protected MuleContext context

regProps

protected RegistryMap regProps

helper

protected AnnotatedEndpointHelper helper

parserFactory

protected AnnotationsParserFactory parserFactory
Constructor Detail

DecoratingAnnotatedServiceProcessor

public DecoratingAnnotatedServiceProcessor()

DecoratingAnnotatedServiceProcessor

public DecoratingAnnotatedServiceProcessor(MuleContext context)
Method Detail

setMuleContext

public void setMuleContext(MuleContext context)
Specified by:
setMuleContext in interface MuleContextAware

process

public Object process(Object object)
Specified by:
process in interface ObjectProcessor

processInbound

protected void processInbound(Class componentFactoryClass,
                              Service service)
                       throws MuleException
Throws:
MuleException

processInboundRouters

protected void processInboundRouters(Class componentFactoryClass,
                                     Service service)
                              throws MuleException
Throws:
MuleException

processReplyRouters

protected void processReplyRouters(Class componentFactoryClass,
                                   Service service)
                            throws MuleException
Throws:
MuleException

processOutboundRouter

protected OutboundRouter processOutboundRouter(Class componentFactoryClass)
                                        throws MuleException
Throws:
MuleException

processOutbound

protected void processOutbound(Class componentFactoryClass,
                               Service service)
                        throws MuleException
Throws:
MuleException

tryInboundEndpointAnnotation

protected InboundEndpoint tryInboundEndpointAnnotation(AnnotationMetaData metaData,
                                                       ChannelType channelType)
                                                throws MuleException
Throws:
MuleException

tryOutboundEndpointAnnotation

protected OutboundEndpoint tryOutboundEndpointAnnotation(AnnotationMetaData metaData,
                                                         ChannelType channelType)
                                                  throws MuleException
Throws:
MuleException

processReply

protected void processReply(Class componentFactoryClass,
                            Service service)
                     throws MuleException
Throws:
MuleException

getValue

protected String getValue(String key)


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.