Class GhostResource<T>

java.lang.Object
org.wso2.carbon.registry.api.GhostResource<T>
All Implemented Interfaces:
Serializable

public class GhostResource<T> extends Object implements Serializable
This class contains a reference to a resource that will be dynamically populated into the cache.
See Also:
  • Constructor Details

    • GhostResource

      public GhostResource(T resource)
      Creates a new entry to be cached.
      Parameters:
      resource - the encapsulated resource.
  • Method Details

    • getResource

      public T getResource()
      Method to obtain the encapsulated resource.
      Returns:
      the encapsulated resource.
    • setResource

      public void setResource(T resource)
      Method to change the encapsulated resource.
      Parameters:
      resource - the encapsulated resource.