|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultComponent<E>
public abstract class DefaultComponent<E extends Exchange>
Constructor Summary | |
---|---|
DefaultComponent()
|
|
DefaultComponent(CamelContext context)
|
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 |
protected abstract Endpoint<E> |
createEndpoint(String uri,
String remaining,
Map parameters)
A factory method allowing derived components to create a new endpoint from the given URI, remaining path and optional parameters |
protected ScheduledExecutorService |
createExecutorService()
A factory method to create a default thread pool and executor |
protected void |
doStart()
|
protected void |
doStop()
|
CamelContext |
getCamelContext()
Returns the context |
ScheduledExecutorService |
getExecutorService()
|
void |
setCamelContext(CamelContext context)
The CamelContext is injected into the component when it is added
to it |
void |
setExecutorService(ScheduledExecutorService executorService)
|
Methods inherited from class org.apache.camel.impl.ServiceSupport |
---|
addChildService, getThreadName, isStarted, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultComponent()
public DefaultComponent(CamelContext context)
Method Detail |
---|
public Endpoint<E> createEndpoint(String uri) throws Exception
Component
createEndpoint
in interface Component<E extends Exchange>
uri
- the URI to create
Exception
public CamelContext getCamelContext()
Component
getCamelContext
in interface Component<E extends Exchange>
public void setCamelContext(CamelContext context)
Component
CamelContext
is injected into the component when it is added
to it
setCamelContext
in interface Component<E extends Exchange>
public ScheduledExecutorService getExecutorService()
public void setExecutorService(ScheduledExecutorService executorService)
protected ScheduledExecutorService createExecutorService()
protected void doStart() throws Exception
doStart
in class ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class ServiceSupport
Exception
protected abstract Endpoint<E> createEndpoint(String uri, String remaining, Map parameters) throws Exception
uri
- the full URI of the endpointremaining
- the remaining part of the URI without the query
parameters or component prefixparameters
- the optional parameters passed in
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |