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
.void
setResource
(Resource resource) Sets theResource
.static <T> T
trySetResource
(T object, Resource resource) Set theResource
resource if the object is an instance ofResourceAware
.
-
Method Details
-
trySetResource
Set theResource
resource if the object is an instance ofResourceAware
. -
getResource
Resource getResource()Gets theResource
. -
setResource
Sets theResource
.
-