org.apache.camel.component.direct
Class DirectComponent<E extends Exchange>

java.lang.Object
  extended by org.apache.camel.component.direct.DirectComponent<E>
All Implemented Interfaces:
Component<E>

public class DirectComponent<E extends Exchange>
extends Object
implements Component<E>

Represents the component that manages DirectEndpoint. It holds the list of named direct endpoints.

Version:
$Revision: 519973 $

Constructor Summary
DirectComponent()
           
 
Method Summary
 Endpoint<E> createEndpoint(String uri)
          Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI
 CamelContext getCamelContext()
          Returns the context
 ScheduledExecutorService getExecutorService()
           
 void setCamelContext(CamelContext context)
          The CamelContext is injected into the component when it is added to it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectComponent

public DirectComponent()
Method Detail

getCamelContext

public CamelContext getCamelContext()
Description copied from interface: Component
Returns the context

Specified by:
getCamelContext in interface Component<E extends Exchange>
Returns:
the context of this component

getExecutorService

public ScheduledExecutorService getExecutorService()

createEndpoint

public Endpoint<E> createEndpoint(String uri)
                                            throws Exception
Description copied from interface: Component
Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI

Specified by:
createEndpoint in interface Component<E extends Exchange>
Parameters:
uri - the URI to create
Returns:
a newly created endpoint or null if this component cannot create instances of the given uri
Throws:
Exception

setCamelContext

public void setCamelContext(CamelContext context)
Description copied from interface: Component
The CamelContext is injected into the component when it is added to it

Specified by:
setCamelContext in interface Component<E extends Exchange>


Copyright © 2007 Apache Software Foundation. All Rights Reserved.