public interface Registry
Modifier and Type | Method and Description |
---|---|
void |
delete(java.lang.String path)
Deletes a resource in the given path
|
RegistryEntry[] |
getChildren(RegistryEntry entry)
Returns the child elements of a given registry entry
|
java.util.Properties |
getConfigurationProperties()
Return the list of configuration properties set on this instance
|
RegistryEntry[] |
getDescendants(RegistryEntry entry)
Returns all descendant entries of the given registry entry
|
org.apache.axiom.om.OMElement |
getFormat(Entry entry) |
java.lang.String |
getProviderClass()
Return the name of the implementation class
|
RegistryEntry |
getRegistryEntry(java.lang.String key)
Get the registry entry for the given key
|
java.lang.Object |
getResource(Entry entry,
java.util.Properties properties)
This is the publicly used interface to the registry.
|
java.util.Properties |
getResourceProperties(java.lang.String entryKey)
Get the resource properties of a given resource
|
void |
init(java.util.Properties properties)
Initializes the registry with given properties
|
boolean |
isResourceExists(java.lang.String path)
Check if a resource exists
|
org.apache.axiom.om.OMNode |
lookup(java.lang.String key)
Perform an actual lookup for for an XML resource as an OMNode for the given key
|
org.apache.axiom.om.OMNode |
lookupFormat(java.lang.String key) |
void |
newNonEmptyResource(java.lang.String path,
boolean isDirectory,
java.lang.String contentType,
java.lang.String content,
java.lang.String propertyName) |
void |
newResource(java.lang.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(java.lang.String path,
java.lang.Object value)
Updates the value of a resource
|
void init(java.util.Properties properties)
properties
- The configuration propertiesorg.apache.axiom.om.OMNode lookup(java.lang.String key)
key
- the key for the registry lookupjava.lang.Object getResource(Entry entry, java.util.Properties properties)
entry
- the registry Entryproperties
- AbstractRegistry
RegistryEntry getRegistryEntry(java.lang.String key)
key
- the registry keyorg.apache.axiom.om.OMElement getFormat(Entry entry)
org.apache.axiom.om.OMNode lookupFormat(java.lang.String key)
RegistryEntry[] getChildren(RegistryEntry entry)
entry
- - parent registry entryRegistryEntry[] getDescendants(RegistryEntry entry)
entry
- - parent registry entryjava.lang.String getProviderClass()
java.util.Properties getConfigurationProperties()
void delete(java.lang.String path)
path
- The path the of resourcevoid newResource(java.lang.String path, boolean isDirectory)
path
- The new resource pathisDirectory
- Whether resource is a collection or notvoid newNonEmptyResource(java.lang.String path, boolean isDirectory, java.lang.String contentType, java.lang.String content, java.lang.String propertyName)
path
- new Resource pathisDirectory
- whether the resource is a collection or notcontentType
- content type of the resourcecontent
- resource contentvoid updateResource(java.lang.String path, java.lang.Object value)
path
- The resource to be updatedvalue
- The value to be setvoid updateRegistryEntry(RegistryEntry entry)
entry
- The registry entryjava.util.Properties getResourceProperties(java.lang.String entryKey)
entryKey
- The registry entryboolean isResourceExists(java.lang.String path)
path
- The path of the resourceCopyright © 2005-2020 Apache Software Foundation. All Rights Reserved.