|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectliquibase.change.ChangeFactory
public class ChangeFactory
Factory class for constructing the correct liquibase.change.Change implementation based on a command name.
For XML-based changelogs, the tag name is the command name.
Change implementations are looked up via the ServiceLocator
.
Change
Method Summary | |
---|---|
void |
clear()
Clear the registry of all Changes found. |
Change |
create(String name)
Create a new Change implementation for the given change name. |
ChangeMetaData |
getChangeMetaData(Change change)
|
Set<String> |
getDefinedChanges()
Returns all defined changes in the registry. |
static ChangeFactory |
getInstance()
Return the singleton ChangeFactory instance. |
Map<String,SortedSet<Class<? extends Change>>> |
getRegistry()
Return the registry of all Changes found. |
void |
register(Class<? extends Change> changeClass)
Register a new Change class. |
static void |
reset()
Reset the ChangeFactory so it reloads the registry on the next call to @{link #getInstance()}. |
void |
unregister(String name)
Unregister all instances of a given Change name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ChangeFactory getInstance()
public static void reset()
public void register(Class<? extends Change> changeClass)
public ChangeMetaData getChangeMetaData(Change change)
public void unregister(String name)
public Map<String,SortedSet<Class<? extends Change>>> getRegistry()
public Set<String> getDefinedChanges()
public void clear()
public Change create(String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |