Package org.wso2.carbon.registry.api
Class GhostResource<T>
java.lang.Object
org.wso2.carbon.registry.api.GhostResource<T>
- All Implemented Interfaces:
Serializable
This class contains a reference to a resource that will be dynamically populated into the cache.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethod to obtain the encapsulated resource.voidsetResource(T resource) Method to change the encapsulated resource.
-
Constructor Details
-
GhostResource
Creates a new entry to be cached.- Parameters:
resource- the encapsulated resource.
-
-
Method Details
-
getResource
Method to obtain the encapsulated resource.- Returns:
- the encapsulated resource.
-
setResource
Method to change the encapsulated resource.- Parameters:
resource- the encapsulated resource.
-