|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.websphere.personalization.resources.ResourceImpl
public class ResourceImpl
This class provides a basic implementation of the Resource interface with dynamic property functionality.
This class may be extended or directly instantiated for custom resource collections which need to support dynamic properties.
Field Summary | |
---|---|
protected java.util.Hashtable |
properties
|
Constructor Summary | |
---|---|
ResourceImpl()
|
|
ResourceImpl(java.lang.String id)
Creates a resource with the specified id. |
Method Summary | |
---|---|
java.lang.Object |
get(java.lang.String name)
Returns a dynamic property stored with the given name accessible from the resource. |
java.lang.String |
getId()
Returns id of the this Resource. |
java.util.Enumeration |
keys()
Get all keys associated for dynamic properties accessible from this resource. |
void |
put(java.lang.String name,
java.lang.Object value)
Store a dynamic property of the given value under the given name. |
void |
remove(java.lang.String name)
Remove object of specified key as a dynamic property of this resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Hashtable properties
Constructor Detail |
---|
public ResourceImpl()
public ResourceImpl(java.lang.String id)
ResourceDomain3.findById(String, RequestContext)
Method Detail |
---|
public java.lang.String getId()
Resource
manager.findById(resource.getId(), context).getId().equals(resource.getId())
returns true.
getId
in interface Resource
Resource.getId()
public void put(java.lang.String name, java.lang.Object value)
Resource
put
in interface Resource
Resource.put(String, Object)
public java.lang.Object get(java.lang.String name)
Resource
get
in interface Resource
Resource.get(String)
public void remove(java.lang.String name)
Resource
remove
in interface Resource
Resource.remove(String)
public java.util.Enumeration keys()
Resource
keys
in interface Resource
Resource.keys()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |