org.apache.camel
Interface Component

All Superinterfaces:
CamelContextAware
All Known Implementing Classes:
BeanComponent, BrowseComponent, ClassComponent, DataSetComponent, DefaultComponent, DirectComponent, DirectVmComponent, FileComponent, GenericFileComponent, HeaderFilterStrategyComponent, LanguageComponent, LogComponent, MockComponent, PropertiesComponent, RefComponent, SedaComponent, StubComponent, TestComponent, TimerComponent, ValidatorComponent, VmComponent, XsltComponent

public interface Component
extends CamelContextAware

A component is a factory of Endpoint objects.

Version:

Method Summary
 EndpointConfiguration createConfiguration(String uri)
          Attempt to create a configuration object from the given uri
 Endpoint createEndpoint(String uri)
          Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI
 
Methods inherited from interface org.apache.camel.CamelContextAware
getCamelContext, setCamelContext
 

Method Detail

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 Endpoint instances using the given uri
Throws:
Exception - is thrown if error creating the endpoint

createConfiguration

EndpointConfiguration createConfiguration(String uri)
                                          throws Exception
Attempt to create a configuration object from the given uri

Parameters:
uri - the configuration URI
Returns:
a newly created EndpointConfiguration
Throws:
Exception - is thrown if the configuration URI is invalid


Apache CAMEL