Package org.apache.camel
Interface Component
- All Superinterfaces:
AutoCloseable
,CamelContextAware
,HasCamelContext
,Service
-
Method Summary
Modifier and TypeMethodDescriptioncreateEndpoint
(String uri) Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI.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
Gets the componentPropertyConfigurer
.default String
Gets the default name of the component.default PropertyConfigurer
Gets the endpointPropertyConfigurer
.default <T extends ComponentExtension>
Optional<T> getExtension
(Class<T> extensionType) Gets the extension of the given type.default Collection
<Class<? extends ComponentExtension>> Gets a list of supported extensions.default boolean
Whether autowiring is enabled.static <T> T
trySetComponent
(T object, Component component) Set theComponent
context if the component is an instance ofComponentAware
.boolean
Whether to use raw or encoded uri, when creating endpoints.Methods inherited from interface org.apache.camel.CamelContextAware
setCamelContext
Methods inherited from interface org.apache.camel.spi.HasCamelContext
getCamelContext
-
Method Details
-
createEndpoint
Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI. SeeuseRawUri()
for controlling whether the passed in uri should be as-is (raw), or encoded (default). -
createEndpoint
Attempt to resolve an endpoint for the given URI if the component is capable of handling the URI. SeeuseRawUri()
for controlling whether the passed in uri should be as-is (raw), or encoded (default). -
useRawUri
boolean useRawUri()Whether to use raw or encoded uri, when creating endpoints. Notice: When using raw uris, then the parameter values is raw as well.- Returns:
- true to use raw uris, false to use encoded uris (default).
-
getComponentPropertyConfigurer
Gets the componentPropertyConfigurer
.- Returns:
- the configurer, or null if the component does not support using property configurer.
-
getEndpointPropertyConfigurer
Gets the endpointPropertyConfigurer
.- Returns:
- the configurer, or null if the endpoint does not support using property configurer.
-
getSupportedExtensions
Gets a list of supported extensions.- Returns:
- the list of extensions.
-
getExtension
Gets the extension of the given type.- Parameters:
extensionType
- tye type of the extensions- Returns:
- an optional extension
-
trySetComponent
Set theComponent
context if the component is an instance ofComponentAware
. -
getDefaultName
Gets the default name of the component. -
isAutowiredEnabled
default boolean isAutowiredEnabled()Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc.
-