- java.lang.Object
-
- org.glassfish.ha.store.spi.BackingStoreFactoryRegistry
-
public final class BackingStoreFactoryRegistry extends Object
A class for storing BackingStore implementation. This is a singleton and contains a mapping between persistence-type andBackingStoreFactory.- Author:
- Mahesh.Kannan@Sun.Com, Larry.White@Sun.Com
-
-
Constructor Summary
Constructors Constructor Description BackingStoreFactoryRegistry()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BackingStoreFactorygetFactoryInstance(String type)Return an instance of BackingStoreFactory for the specified type.static Set<String>getRegisteredTypes()static BackingStoreFactoryregister(String type, BackingStoreFactory factory)static voidunregister(String type)Will be called by Store's Lifecycle module to unregister the factory class name.
-
-
-
Method Detail
-
register
public static BackingStoreFactory register(String type, BackingStoreFactory factory)
- Parameters:
type-factory-- Returns:
- Throws:
DuplicateFactoryRegistrationException
-
getFactoryInstance
public static BackingStoreFactory getFactoryInstance(String type) throws BackingStoreException
Return an instance of BackingStoreFactory for the specified type. If a factory instance for this persistence type has not yet been instantiated then an instance is created using the public no-arg constructor.- Throws:
BackingStoreException
-
unregister
public static void unregister(String type)
Will be called by Store's Lifecycle module to unregister the factory class name.
-
-