|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CoreRegistry
CoreRegistry is the central get/put API for the Registry. This is typically what you want if you're a Java programmer wanting to simply store and manage Resources. Since it's an interface, you don't care if the results come from (say) an embedded file-based Registry or a remote one - that decision (and the resulting cache dynamics, exception throwing, etc) can be made by a factory or dependency injection. If you want programatic access to features like tags/comments/ratings/versions, please have a look at the full Registry interface which extends this one.
Method Summary | |
---|---|
void |
delete(java.lang.String path)
Deletes the resource at the given path. |
Resource |
get(java.lang.String path)
Returns the resource at the given path. |
java.lang.String |
put(java.lang.String suggestedPath,
Resource resource)
Adds or updates resources in the registry. |
boolean |
resourceExists(java.lang.String path)
Check whether a resource exists at the given path |
Method Detail |
---|
Resource get(java.lang.String path) throws RegistryException
path
- Path of the resource. e.g. /project1/server/deployment.xml
RegistryException
- is thrown if the resource is not in the registryboolean resourceExists(java.lang.String path) throws RegistryException
path
- Path of the resource to be checked
RegistryException
- if an error occursjava.lang.String put(java.lang.String suggestedPath, Resource resource) throws RegistryException
suggestedPath
- the path which we'd like to use for the new resource.resource
- Resource instance for the new resource
RegistryException
void delete(java.lang.String path) throws RegistryException
path
- Path of the resource to be deleted.
RegistryException
- is thrown depending on the implementation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |