org.apache.camel
Interface Component

All Known Implementing Classes:
AMQPComponent, AtomComponent, BeanComponent, BrowseComponent, CacheComponent, CometdComponent, CxfBeanComponent, CxfComponent, CxfRsComponent, CxfSoapComponent, DataSetComponent, DefaultComponent, DirectComponent, EventComponent, FeedComponent, FileComponent, FlatpackComponent, FreemarkerComponent, FtpComponent, FtpsComponent, GenericFileComponent, GHttpComponent, GMailComponent, GTaskComponent, HeaderFilterStrategyComponent, HttpComponent, IBatisComponent, IrcComponent, JavaSpaceComponent, JcrComponent, JdbcComponent, JettyHttpComponent, JingComponent, JmsComponent, JpaComponent, Jt400Component, LdapComponent, LogComponent, LuceneComponent, MailComponent, MinaComponent, MockComponent, MsvComponent, PrinterComponent, QuartzComponent, QuickfixAcceptor, QuickfixInitiator, RefComponent, RelaxNGCompactSyntaxComponent, RemoteFileComponent, ResourceBasedComponent, RestletComponent, RmiComponent, RssComponent, SedaComponent, ServletComponent, SftpComponent, SmppComponent, SnmpComponent, SpringIntegrationComponent, SqlComponent, StreamComponent, StringTemplateComponent, TestComponent, TimerComponent, ValidatorComponent, VelocityComponent, VmComponent, XmppComponent, XQueryComponent, XsltComponent

public interface Component

A component is a factory of Endpoint objects.

Version:
$Revision: 2427 $

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 IONA Open Source Community. All Rights Reserved.