org.apache.openjpa.util
Class StoreFacadeTypeRegistry
java.lang.Object
org.apache.openjpa.util.StoreFacadeTypeRegistry
public class StoreFacadeTypeRegistry
- extends java.lang.Object
Repository of store-specific facade classes. This is used by facade
implementations to wrap store-specific components without knowing
about all possible back-ends.
Method Summary |
java.lang.Class |
getImplementation(java.lang.Class facadeType,
java.lang.Class storeType)
Return the implementation for the given facade and store. |
void |
registerImplementation(java.lang.Class facadeType,
java.lang.Class storeType,
java.lang.Class implType)
Register a facade implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StoreFacadeTypeRegistry
public StoreFacadeTypeRegistry()
registerImplementation
public void registerImplementation(java.lang.Class facadeType,
java.lang.Class storeType,
java.lang.Class implType)
- Register a facade implementation.
- Parameters:
facadeType
- the facade interfacestoreType
- the store's
StoreManager
type, or null for genericimplType
- the class implementing the facade
getImplementation
public java.lang.Class getImplementation(java.lang.Class facadeType,
java.lang.Class storeType)
- Return the implementation for the given facade and store.
- Parameters:
facadeType
- the facade interfacestoreType
- the store's
StoreManager
type, or null for genericimplType
- the registered implementor
Copyright © 2006 Apache Software Foundation. All Rights Reserved.