org.wso2.carbon.registry.api
Class GhostResource<T>

java.lang.Object
  extended by 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:
Serialized Form

Constructor Summary
GhostResource(T resource)
          Creates a new entry to be cached.
 
Method Summary
 T getResource()
          Method to obtain the encapsulated resource.
 void setResource(T resource)
          Method to change the encapsulated resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


Copyright © 2014 WSO2 Inc. All rights reserved.