org.mule.construct
Class SimpleService

java.lang.Object
  extended by org.mule.construct.AbstractFlowConstruct
      extended by org.mule.construct.SimpleService
All Implemented Interfaces:
FlowConstruct, Disposable, Initialisable, Lifecycle, LifecycleStateEnabled, Startable, Stoppable, MessageProcessor

public class SimpleService
extends AbstractFlowConstruct

In-out SOA-style simple service, with no outbound router. Always fully synchronous.


Nested Class Summary
static class SimpleService.Type
           
 
Field Summary
 
Fields inherited from class org.mule.construct.AbstractFlowConstruct
exceptionListener, lifecycleManager, logger, messageInfoMapping, messageProcessorChain, messageSource, muleContext, name, statistics
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Startable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Stoppable
PHASE_NAME
 
Fields inherited from interface org.mule.api.lifecycle.Disposable
PHASE_NAME
 
Constructor Summary
SimpleService(java.lang.String name, MuleContext muleContext, MessageSource messageSource, Component component, SimpleService.Type type)
           
 
Method Summary
protected  void configureMessageProcessors(InterceptingChainMessageProcessorBuilder builder)
          Used to configure the processing chain for this FlowConstuctMessageProcessors to the chain using the builder provided.
 Component getComponent()
           
protected  void validateConstruct()
          Validates configured flow construct
 
Methods inherited from class org.mule.construct.AbstractFlowConstruct
createMessageProcessor, dispose, doDispose, doInitialise, doStart, doStop, getExceptionListener, getLifecycleState, getMessageInfoMapping, getMessageSource, getMuleContext, getName, getStatistics, initialise, isStarted, isStopped, isStopping, process, setExceptionListener, setMessageInfoMapping, setMessageSource, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleService

public SimpleService(java.lang.String name,
                     MuleContext muleContext,
                     MessageSource messageSource,
                     Component component,
                     SimpleService.Type type)
              throws MuleException
Throws:
MuleException
Method Detail

getComponent

public Component getComponent()

configureMessageProcessors

protected void configureMessageProcessors(InterceptingChainMessageProcessorBuilder builder)
Description copied from class: AbstractFlowConstruct
Used to configure the processing chain for this FlowConstuctMessageProcessors to the chain using the builder provided.

To use a different builder of to construct a composite MessageProcessor manually override AbstractFlowConstruct.createMessageProcessor() instead.

Specified by:
configureMessageProcessors in class AbstractFlowConstruct
Parameters:
builder - instance of InterceptingChainMessageProcessorBuilder

validateConstruct

protected void validateConstruct()
                          throws FlowConstructInvalidException
Description copied from class: AbstractFlowConstruct
Validates configured flow construct

Overrides:
validateConstruct in class AbstractFlowConstruct
Throws:
FlowConstructInvalidException - if the flow construct does not pass validation


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