org.apache.synapse.registry
Class AbstractRegistry

java.lang.Object
  extended by org.apache.synapse.registry.AbstractRegistry
All Implemented Interfaces:
Registry
Direct Known Subclasses:
SimpleURLRegistry

public abstract class AbstractRegistry
extends Object
implements Registry

Implements the core Registry lookup algorithm


Field Summary
protected  Properties properties
          The list of configuration properties
 
Constructor Summary
AbstractRegistry()
           
 
Method Summary
 Properties getConfigurationProperties()
          Return the list of configuration properties set on this instance
 String getProviderClass()
          Return the name of the implementation class
 Object getResource(Entry entry, Properties properties)
          Get the resource for the given key from this registry
 Properties getResourceProperties(String entryKey)
          Get the resource properties of a given resource
 void 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, lookup, newResource, updateRegistryEntry, updateResource
 

Field Detail

properties

protected final Properties properties
The list of configuration properties

Constructor Detail

AbstractRegistry

public AbstractRegistry()
Method Detail

getResource

public Object getResource(Entry entry,
                          Properties properties)
Get the resource for the given key from this registry

Specified by:
getResource in interface Registry
Parameters:
entry - The Enrty instance that contains meta-data
properties - 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 interface Registry
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 interface Registry
Returns:
a Map of configuration properties

init

public void init(Properties properties)
Description copied from interface: Registry
Initializes the registry with given properties

Specified by:
init in interface Registry
Parameters:
properties - The configuration properties

getResourceProperties

public Properties getResourceProperties(String entryKey)
Description copied from interface: Registry
Get the resource properties of a given resource

Specified by:
getResourceProperties in interface Registry
Parameters:
entryKey - The registry entry


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.