Top Fields Constructors Methods
liquibase.lockservice

public Class LockServiceFactory

extends Object
Class Inheritance
Imports
liquibase.Scope, liquibase.database.Database, liquibase.exception.UnexpectedLiquibaseException, java.util.*, java.util.concurrent.ConcurrentHashMap

Author
John Sanda

Field Summary

Modifier and TypeField and Description
private static LockServiceFactory
private final Map<Database, LockService>
private final List<LockService>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static synchronized LockServiceFactory
public LockService
public void
register(LockService lockService)

public static synchronized void
public void
public static synchronized void
setInstance(LockServiceFactory lockServiceFactory)

Set the instance used by this singleton.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instanceback to summary
private static LockServiceFactory instance
openLockServicesback to summary
private final Map<Database, LockService> openLockServices
registryback to summary
private final List<LockService> registry

Constructor Detail

LockServiceFactoryback to summary
private LockServiceFactory()

Method Detail

getInstanceback to summary
public static synchronized LockServiceFactory getInstance()
getLockServiceback to summary
public LockService getLockService(Database database)
registerback to summary
public void register(LockService lockService)
resetback to summary
public static synchronized void reset()
resetAllback to summary
public void resetAll()
setInstanceback to summary
public static synchronized void setInstance(LockServiceFactory lockServiceFactory)

Set the instance used by this singleton. Used primarily for testing.