org.apache.camel
Interface Component

All Known Implementing Classes:
BeanComponent, BrowseComponent, ClassComponent, DataSetComponent, DefaultComponent, DirectComponent, FileComponent, GenericFileComponent, HeaderFilterStrategyComponent, LogComponent, MockComponent, PropertiesComponent, RefComponent, SedaComponent, TimerComponent, VmComponent

public interface Component

A component is a factory of Endpoint objects.

Version:
$Revision: 738604 $

Method Summary
 Endpoint 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
 void setCamelContext(CamelContext context)
          The CamelContext is injected into the component when it is added to it
 

Method Detail

getCamelContext

CamelContext getCamelContext()
Returns the context

Returns:
the context of this component

setCamelContext

void setCamelContext(CamelContext context)
The CamelContext is injected into the component when it is added to it


createEndpoint

Endpoint createEndpoint(String uri)
                        throws Exception
Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI

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


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.