org.glassfish.ha.store.spi
Class BackingStoreFactoryRegistry
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 and
BackingStoreFactory.
- Author:
- Mahesh.Kannan@Sun.Com, Larry.White@Sun.Com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BackingStoreFactoryRegistry
public BackingStoreFactoryRegistry()
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.
getRegisteredTypes
public static Set<String> getRegisteredTypes()
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.