org.apache.camel.component
Class ResourceBasedEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<E>
      extended by org.apache.camel.impl.ScheduledPollEndpoint<E>
          extended by org.apache.camel.impl.DefaultPollingEndpoint<Exchange>
              extended by org.apache.camel.impl.ProcessorEndpoint
                  extended by org.apache.camel.component.ResourceBasedEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint<Exchange>

public abstract class ResourceBasedEndpoint
extends ProcessorEndpoint

A useful base class for endpoints which depend on a resource such as things like Velocity or XQuery based components

Version:
$Revision: 41334 $

Field Summary
protected  Log log
           
 
Constructor Summary
  ResourceBasedEndpoint(String endpointUri, Component component, String resourceUri, Processor processor)
           
protected ResourceBasedEndpoint(String endpointUri, Processor processor, String resourceUri)
           
 
Method Summary
 org.springframework.core.io.Resource getResource()
           
 org.springframework.core.io.ResourceLoader getResourceLoader()
           
 void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
           
 
Methods inherited from class org.apache.camel.impl.ProcessorEndpoint
createPollingConsumer, createProducer, getProcessor, isSingleton, onExchange
 
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
convertTo, createExchange, createExchange, createExchange, createExecutorService, equals, getCamelContext, getComponent, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, setCamelContext, setExchangePattern, setExecutorService, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected final transient Log log
Constructor Detail

ResourceBasedEndpoint

public ResourceBasedEndpoint(String endpointUri,
                             Component component,
                             String resourceUri,
                             Processor processor)

ResourceBasedEndpoint

protected ResourceBasedEndpoint(String endpointUri,
                                Processor processor,
                                String resourceUri)
Method Detail

getResource

public org.springframework.core.io.Resource getResource()

getResourceLoader

public org.springframework.core.io.ResourceLoader getResourceLoader()

setResourceLoader

public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)


Copyright © 2008 IONA Open Source Community. All Rights Reserved.