public interface Component extends CamelContextAware, Service
| Modifier and Type | Method and Description |
|---|---|
Endpoint |
createEndpoint(String uri)
Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI.
|
Endpoint |
createEndpoint(String uri,
Map<String,Object> parameters)
Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI.
|
default PropertyConfigurer |
getComponentPropertyConfigurer()
Gets the component
PropertyConfigurer. |
default String |
getDefaultName()
Gets the default name of the component.
|
default PropertyConfigurer |
getEndpointPropertyConfigurer()
Gets the endpoint
PropertyConfigurer. |
default <T extends ComponentExtension> |
getExtension(Class<T> extensionType)
Gets the extension of the given type.
|
default Collection<Class<? extends ComponentExtension>> |
getSupportedExtensions()
Gets a list of supported extensions.
|
default boolean |
isAutowiredEnabled()
Whether autowiring is enabled.
|
static <T> T |
trySetComponent(T object,
Component component)
Set the
Component context if the component is an instance of ComponentAware. |
boolean |
useRawUri()
Whether to use raw or encoded uri, when creating endpoints.
|
getCamelContext, setCamelContext, trySetCamelContextEndpoint createEndpoint(String uri) throws Exception
useRawUri() for controlling whether the passed in uri should be as-is (raw), or encoded (default).uri - the URI to create; either raw or encoded (default)Endpoint or null if this component cannot create Endpoint
instances using the given uriException - is thrown if error creating the endpointuseRawUri()Endpoint createEndpoint(String uri, Map<String,Object> parameters) throws Exception
useRawUri() for controlling whether the passed in uri should be as-is (raw), or encoded (default).uri - the URI to create; either raw or encoded (default)parameters - the parameters for the endpointEndpoint or null if this component cannot create Endpoint
instances using the given uriException - is thrown if error creating the endpointuseRawUri()boolean useRawUri()
default PropertyConfigurer getComponentPropertyConfigurer()
PropertyConfigurer.default PropertyConfigurer getEndpointPropertyConfigurer()
PropertyConfigurer.default Collection<Class<? extends ComponentExtension>> getSupportedExtensions()
default <T extends ComponentExtension> Optional<T> getExtension(Class<T> extensionType)
extensionType - tye type of the extensionsstatic <T> T trySetComponent(T object,
Component component)
Component context if the component is an instance of ComponentAware.default String getDefaultName()
default boolean isAutowiredEnabled()
Apache Camel