org.apache.hivemind.lib.util
Class AdapterRegistryImpl
java.lang.Object
|
+--org.apache.hivemind.lib.util.AdapterRegistryImpl
- All Implemented Interfaces:
- AdapterRegistry
- public class AdapterRegistryImpl
- extends java.lang.Object
- implements AdapterRegistry
Thread-safe implementation of AdapterRegistry
.
- Since:
- 1.1
- Author:
- Howard Lewis Ship
Method Summary |
java.lang.Object |
getAdapter(java.lang.Class subjectClass)
Gets the adapter 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 |
AdapterRegistryImpl
public AdapterRegistryImpl()
register
public void register(java.lang.Class registrationClass,
java.lang.Object adaptor)
- Description copied from interface:
AdapterRegistry
- Registers an adapter for a registration class.
- Specified by:
register
in interface AdapterRegistry
getAdapter
public java.lang.Object getAdapter(java.lang.Class subjectClass)
- Description copied from interface:
AdapterRegistry
- Gets the adapter for the specified subjectClass.
- Specified by:
getAdapter
in interface AdapterRegistry
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object