Package org.glassfish.ha.store.spi
Class BackingStoreFactoryRegistry
java.lang.Object
org.glassfish.ha.store.spi.BackingStoreFactoryRegistry
A class for storing BackingStore implementation. This is a
singleton and contains a mapping between persistence-type and
BackingStoreFactory.- Author:
- Mahesh.Kannan@Sun.Com, Larry.White@Sun.Com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BackingStoreFactorygetFactoryInstance(String type) Return an instance of BackingStoreFactory for the specified type.static BackingStoreFactoryregister(String type, BackingStoreFactory factory) static voidunregister(String type) Will be called by Store's Lifecycle module to unregister the factory class name.
-
Constructor Details
-
BackingStoreFactoryRegistry
public BackingStoreFactoryRegistry()
-
-
Method Details
-
register
- Parameters:
type-factory-- Returns:
- Throws:
DuplicateFactoryRegistrationException
-
getFactoryInstance
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
Will be called by Store's Lifecycle module to unregister the factory class name. -
getRegisteredTypes
-