Class StoreFacadeTypeRegistry
java.lang.Object
org.apache.openjpa.util.StoreFacadeTypeRegistry
Repository of store-specific facade classes. This is used by facade
implementations to wrap store-specific components without knowing
about all possible back-ends.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetImplementation(Class facadeType, Class storeType) Return the implementation for the given facade and store.getImplementation(Class facadeType, Class storeType, Class defaultType) Return the implementation for the given facade and store.voidregisterImplementation(Class facadeType, Class storeType, Class implType) Register a facade implementation.
-
Constructor Details
-
StoreFacadeTypeRegistry
public StoreFacadeTypeRegistry()
-
-
Method Details
-
registerImplementation
Register a facade implementation.- Parameters:
facadeType- the facade interfacestoreType- the store'sStoreManagertype, or null for genericimplType- the class implementing the facade
-
getImplementation
Return the implementation for the given facade and store.- Parameters:
facadeType- the facade interfacestoreType- the store'sStoreManagertype, or null for generic
-
getImplementation
Return the implementation for the given facade and store. If no registered implementation is found then returns the given default type provided it the facade type is assignable from the deafult type.- Parameters:
facadeType- the facade interfacestoreType- the store'sStoreManagertype, or null for genericdefaultType- class if no registered implementation is available.
-