org.milyn.smooks.camel.component
Class SmooksEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.impl.ScheduledPollEndpoint
              extended by org.apache.camel.impl.DefaultPollingEndpoint
                  extended by org.apache.camel.impl.ProcessorEndpoint
                      extended by org.milyn.smooks.camel.component.SmooksEndpoint
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class SmooksEndpoint
extends org.apache.camel.impl.ProcessorEndpoint
implements org.apache.camel.Service

SmooksEndpoint is a wrapper around a SmooksProcessor instance and adds lifecycle support by implementing Service. This enables a SmooksEndpoint to be stopped and started.

Author:
Daniel Bevenius

Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
SmooksEndpoint(String endpointUri, org.apache.camel.Component component, SmooksProcessor processor)
           
 
Method Summary
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.camel.impl.ProcessorEndpoint
createPollingConsumer, createProcessor, createProducer, getProcessor, isSingleton, onExchange, setProcessor
 
Methods inherited from class org.apache.camel.impl.DefaultPollingEndpoint
createConsumer
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmooksEndpoint

public SmooksEndpoint(String endpointUri,
                      org.apache.camel.Component component,
                      SmooksProcessor processor)
Method Detail

start

public void start()
           throws Exception
Specified by:
start in interface org.apache.camel.Service
Overrides:
start in class org.apache.camel.support.ServiceSupport
Throws:
Exception

stop

public void stop()
          throws Exception
Specified by:
stop in interface org.apache.camel.Service
Overrides:
stop in class org.apache.camel.support.ServiceSupport
Throws:
Exception


Copyright © 2014. All Rights Reserved.