|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceProvider
Describes a provider of named Resource objects for the web framework. A provider of resources should be able to do things like produce a Resource object for a given resource id. Some model objects, for example, can be thought of as containers of properties. They are also containers of "resources". Resource definitions are stored directly into the model object. These resource containers have a resource provider interface on top of them.
Method Summary | |
---|---|
Resource |
addResource(String name,
String resourceId)
Adds/Creates a resource with the given name and resource id |
Resource |
addResource(String name,
String protocolId,
String endpointId,
String objectId)
Adds/Creates a resource with the given name, object id and endpoint id |
Resource |
getResource(String name)
Looks up a resource with the given name |
Resource[] |
getResources()
Returns the set of all resources |
Map<String,Resource> |
getResourcesMap()
Returns the map of resources |
void |
removeResource(String name)
Removes a resource with the given name |
void |
updateResource(String name,
Resource resource)
Updates a resource for the given name |
Method Detail |
---|
Resource getResource(String name)
id
-
Resource[] getResources()
Map<String,Resource> getResourcesMap()
Resource addResource(String name, String resourceId)
name
- resourceId
-
Resource addResource(String name, String protocolId, String endpointId, String objectId)
name
- protocolId
- endpointId
- objectId
-
void updateResource(String name, Resource resource)
name
- resource
- void removeResource(String name)
name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |