public class SimpleURLRegistry extends AbstractRegistry implements Registry
properties
Constructor and Description |
---|
SimpleURLRegistry() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String path)
Deletes a resource in the given path
|
RegistryEntry[] |
getChildren(RegistryEntry entry)
Returns the child elements of a given registry entry
|
RegistryEntry[] |
getDescendants(RegistryEntry entry)
Returns all descendant entries of the given registry entry
|
RegistryEntry |
getRegistryEntry(String key)
Get the registry entry for the given key
|
void |
init(Properties properties)
Initializes the registry with given properties
|
org.apache.axiom.om.OMNode |
lookup(String key)
Perform an actual lookup for for an XML resource as an OMNode for the given key
|
void |
newResource(String path,
boolean isDirectory)
Creates a new resource in the given path
|
void |
updateRegistryEntry(RegistryEntry entry)
Updates the registry enrty (metadata about a resource)
|
void |
updateResource(String path,
Object value)
Updates the value of a resource
|
getConfigurationProperties, getProviderClass, getResource, getResourceProperties
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationProperties, getProviderClass, getResource, getResourceProperties
public org.apache.axiom.om.OMNode lookup(String key)
Registry
public RegistryEntry getRegistryEntry(String key)
Registry
getRegistryEntry
in interface Registry
key
- the registry keypublic void init(Properties properties)
Registry
init
in interface Registry
init
in class AbstractRegistry
properties
- The configuration propertiespublic void delete(String path)
Registry
public void newResource(String path, boolean isDirectory)
Registry
newResource
in interface Registry
path
- The new resource pathisDirectory
- Whether resource is a collection or notpublic void updateResource(String path, Object value)
Registry
updateResource
in interface Registry
path
- The resource to be updatedvalue
- The value to be setpublic void updateRegistryEntry(RegistryEntry entry)
Registry
updateRegistryEntry
in interface Registry
entry
- The registry entrypublic RegistryEntry[] getChildren(RegistryEntry entry)
Registry
getChildren
in interface Registry
entry
- - parent registry entrypublic RegistryEntry[] getDescendants(RegistryEntry entry)
Registry
getDescendants
in interface Registry
entry
- - parent registry entryCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.