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 Properties
properties
The list of configuration properties
-
Constructor Summary
Constructors Constructor Description AbstractRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Properties
getConfigurationProperties()
Return the list of configuration properties set on this instanceorg.apache.axiom.om.OMElement
getFormat(Entry entry)
String
getProviderClass()
Return the name of the implementation classObject
getResource(Entry entry, Properties properties)
Get the resource for the given key from this registryProperties
getResourceProperties(String entryKey)
Get the resource properties of a given resourcevoid
init(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:
getResource
in 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:Registry
Return the name of the implementation class- Specified by:
getProviderClass
in interfaceRegistry
- Returns:
- name of the registry provider implementation class name
-
getConfigurationProperties
public Properties getConfigurationProperties()
Description copied from interface:Registry
Return the list of configuration properties set on this instance- Specified by:
getConfigurationProperties
in interfaceRegistry
- Returns:
- a Map of configuration properties
-
init
public void init(Properties properties)
Description copied from interface:Registry
Initializes the registry with given properties
-
getResourceProperties
public Properties getResourceProperties(String entryKey)
Description copied from interface:Registry
Get the resource properties of a given resource- Specified by:
getResourceProperties
in interfaceRegistry
- Parameters:
entryKey
- The registry entry
-
-