Home » apache-camel-1.5.0-src » org.apache » camel » impl » [javadoc | source]
org.apache.camel.impl
abstract public class: DefaultComponent [javadoc | source]
java.lang.Object
   org.apache.camel.impl.ServiceSupport
      org.apache.camel.impl.DefaultComponent

All Implemented Interfaces:
    Component, Service

Default component to use for base for components implementations.
Constructor:
 public DefaultComponent() 
 public DefaultComponent(CamelContext context) 
Method from org.apache.camel.impl.DefaultComponent Summary:
convertTo,   createEndpoint,   createEndpoint,   createExecutorService,   doStart,   doStop,   getAndRemoveParameter,   getAndRemoveParameter,   getCamelContext,   getExecutorService,   lookup,   lookup,   mandatoryConvertTo,   mandatoryLookup,   mandatoryLookup,   newInstance,   setCamelContext,   setExecutorService,   setProperties,   useIntrospectionOnEndpoint,   validateURI
Methods from org.apache.camel.impl.ServiceSupport:
addChildService,   doStart,   doStop,   getThreadName,   isRunAllowed,   isStarted,   isStarting,   isStopped,   isStopping,   nextThreadCounter,   removeChildService,   start,   stop
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.camel.impl.DefaultComponent Detail:
 public T convertTo(Class<T> type,
    Object value) 
    Converts the given value to the requested type
 public Endpoint<E> createEndpoint(String uri) throws Exception 
 abstract protected Endpoint<E> createEndpoint(String uri,
    String remaining,
    Map parameters) throws Exception
    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() throws Exception 
 protected  void doStop() throws Exception 
 public T getAndRemoveParameter(Map parameters,
    String key,
    Class<T> type) 
    Gets the parameter and remove it from the parameter map.
 public T getAndRemoveParameter(Map parameters,
    String key,
    Class<T> type,
    T defaultValue) 
    Gets the parameter and remove it from the parameter map.
 public CamelContext getCamelContext() 
 public ScheduledExecutorService getExecutorService() 
 public Object lookup(String name) 
 public T lookup(String name,
    Class<T> beanType) 
 public T mandatoryConvertTo(Class<T> type,
    Object value) 
    Converts the given value to the specified type throwing an IllegalArgumentException if the value could not be converted to a non null value
 public Object mandatoryLookup(String name) 
 public T mandatoryLookup(String name,
    Class<T> beanType) 
 public T newInstance(Class<T> beanType) 
 public  void setCamelContext(CamelContext context) 
 public  void setExecutorService(ScheduledExecutorService executorService) 
 protected  void setProperties(Object bean,
    Map parameters) throws Exception 
    Sets the bean properties on the given bean
 protected boolean useIntrospectionOnEndpoint() 
    Derived classes may wish to overload this to prevent the default introspection of URI parameters on the created Endpoint instance
 protected  void validateURI(String uri,
    String path,
    Map parameters) throws ResolveEndpointFailedException 
    Strategy for validation of the uri when creating the endpoint.