Package org.apache.camel.spi
Interface ResourceAware
public interface ResourceAware
An interface to represent an object which wishes to be injected with the
Resource-
Method Summary
Modifier and TypeMethodDescriptionGets theResource.voidsetResource(Resource resource) Sets theResource.static <T> TtrySetResource(T object, Resource resource) Set theResourceresource if the object is an instance ofResourceAware.
-
Method Details
-
trySetResource
Set theResourceresource if the object is an instance ofResourceAware. -
getResource
Resource getResource()Gets theResource. -
setResource
Sets theResource.
-