Package org.apache.synapse.registry
Class AbstractRegistry
- java.lang.Object
-
- org.apache.synapse.registry.AbstractRegistry
-
- All Implemented Interfaces:
Registry
- Direct Known Subclasses:
SimpleURLRegistry,UnitTestMockRegistry
public abstract class AbstractRegistry extends Object implements Registry
Implements the core Registry lookup algorithm
-
-
Field Summary
Fields Modifier and Type Field Description protected PropertiespropertiesThe list of configuration properties
-
Constructor Summary
Constructors Constructor Description AbstractRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertiesgetConfigurationProperties()Return the list of configuration properties set on this instanceorg.apache.axiom.om.OMElementgetFormat(Entry entry)StringgetProviderClass()Return the name of the implementation classObjectgetResource(Entry entry, Properties properties)Get the resource for the given key from this registryPropertiesgetResourceProperties(String entryKey)Get the resource properties of a given resourcevoidinit(Properties properties)Initializes the registry with given properties-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.synapse.registry.Registry
delete, getChildren, getDescendants, getRegistryEntry, isResourceExists, lookup, lookupFormat, newNonEmptyResource, newResource, updateRegistryEntry, updateResource
-
-
-
-
Field Detail
-
properties
protected final Properties properties
The list of configuration properties
-
-
Method Detail
-
getResource
public Object getResource(Entry entry, Properties properties)
Get the resource for the given key from this registry- Specified by:
getResourcein interfaceRegistry- Parameters:
entry- The Enrty instance that contains meta-dataproperties- bag of properties with additional information- Returns:
- the matching resultant object
- See Also:
AbstractRegistry
-
getProviderClass
public String getProviderClass()
Description copied from interface:RegistryReturn the name of the implementation class- Specified by:
getProviderClassin interfaceRegistry- Returns:
- name of the registry provider implementation class name
-
getConfigurationProperties
public Properties getConfigurationProperties()
Description copied from interface:RegistryReturn the list of configuration properties set on this instance- Specified by:
getConfigurationPropertiesin interfaceRegistry- Returns:
- a Map of configuration properties
-
init
public void init(Properties properties)
Description copied from interface:RegistryInitializes the registry with given properties
-
getResourceProperties
public Properties getResourceProperties(String entryKey)
Description copied from interface:RegistryGet the resource properties of a given resource- Specified by:
getResourcePropertiesin interfaceRegistry- Parameters:
entryKey- The registry entry
-
-