public interface ComponentAware
Component
.Modifier and Type | Method and Description |
---|---|
Component |
getComponent()
Get the
Component |
default <T extends Component> |
getComponent(Class<T> type)
Get the
Component as the specified type. |
void |
setComponent(Component component)
Injects the
Component |
void setComponent(Component component)
Component
component
- the componentdefault <T extends Component> T getComponent(Class<T> type)
Component
as the specified type.type
- the proprietary class or interface of the underlying concrete Component.IllegalArgumentException
- if the component class can't be cast to required type,Apache Camel