org.milyn.smooks.camel.component
Class SmooksEndpoint

java.lang.Object
  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.spi.HasId

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

Constructor Summary
SmooksEndpoint(java.lang.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
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
createEndpointUri, createExchange, createExchange, createExchange, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmooksEndpoint

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

start

public void start()
           throws java.lang.Exception
Specified by:
start in interface org.apache.camel.Service
Overrides:
start in class org.apache.camel.impl.DefaultEndpoint
Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
Specified by:
stop in interface org.apache.camel.Service
Overrides:
stop in class org.apache.camel.impl.DefaultEndpoint
Throws:
java.lang.Exception


Copyright © 2011. All Rights Reserved.