org.apache.hivemind.lib.util
Class StrategyRegistryImpl

java.lang.Object
  extended by org.apache.hivemind.lib.util.StrategyRegistryImpl
All Implemented Interfaces:
StrategyRegistry

public class StrategyRegistryImpl
extends java.lang.Object
implements StrategyRegistry

Thread-safe implementation of StrategyRegistry.

Since:
1.1
Author:
Howard Lewis Ship

Constructor Summary
StrategyRegistryImpl()
           
 
Method Summary
 java.lang.Object getStrategy(java.lang.Class subjectClass)
          Gets the stategy object for the specified subjectClass.
 void register(java.lang.Class registrationClass, java.lang.Object adaptor)
          Registers an adapter for a registration class.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StrategyRegistryImpl

public StrategyRegistryImpl()
Method Detail

register

public void register(java.lang.Class registrationClass,
                     java.lang.Object adaptor)
Description copied from interface: StrategyRegistry
Registers an adapter for a registration class.

Specified by:
register in interface StrategyRegistry

getStrategy

public java.lang.Object getStrategy(java.lang.Class subjectClass)
Description copied from interface: StrategyRegistry
Gets the stategy object for the specified subjectClass.

Specified by:
getStrategy in interface StrategyRegistry

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object