org.mule.impl.annotations
Class AnnotatedServiceBuilder

java.lang.Object
  extended by org.mule.impl.annotations.AnnotatedServiceBuilder

public class AnnotatedServiceBuilder
extends Object

This builder will process annotations on an object and create a Mule service using Router, endpoint and service annotation to construct the service.

Since:
3.0.0

Field Summary
protected  MuleContext context
           
protected  AnnotatedEndpointHelper helper
           
protected  AnnotationsParserFactory parserFactory
           
protected  RegistryMap regProps
           
 
Constructor Summary
AnnotatedServiceBuilder(MuleContext context)
           
 
Method Summary
protected  Service create(ObjectFactory componentFactory)
           
protected  ObjectFactory createObjectFactory(Object object)
           
 Service createService(Object object)
           
 Model getModel()
           
protected  String getValue(String key)
           
protected  void processEndpointBindings(Class componentFactoryClass, Service service)
           
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 setModel(Model model)
           
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

context

protected MuleContext context

regProps

protected RegistryMap regProps

helper

protected AnnotatedEndpointHelper helper

parserFactory

protected AnnotationsParserFactory parserFactory
Constructor Detail

AnnotatedServiceBuilder

public AnnotatedServiceBuilder(MuleContext context)
                        throws MuleException
Throws:
MuleException
Method Detail

getModel

public Model getModel()

setModel

public void setModel(Model model)

createObjectFactory

protected ObjectFactory createObjectFactory(Object object)

createService

public Service createService(Object object)
                      throws MuleException
Throws:
MuleException

create

protected Service create(ObjectFactory componentFactory)
                  throws InitialisationException
Throws:
InitialisationException

getValue

protected String getValue(String key)

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

processEndpointBindings

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


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