|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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()
Resourcemanager.findById(resource.getId(), context).getId().equals(resource.getId())
returns true.
getId in interface ResourceResource.getId()
public void put(java.lang.String name,
java.lang.Object value)
Resource
put in interface ResourceResource.put(String, Object)public java.lang.Object get(java.lang.String name)
Resource
get in interface ResourceResource.get(String)public void remove(java.lang.String name)
Resource
remove in interface ResourceResource.remove(String)public java.util.Enumeration keys()
Resource
keys in interface ResourceResource.keys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||