Class 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:
    Serialized Form
    • Constructor Detail

      • GhostResource

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

      • 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.