liquibase.change
Class ChangeFactory

java.lang.Object
  extended by liquibase.change.ChangeFactory

public class ChangeFactory
extends Object

Factory class for constructing the correct liquibase.change.Change implementation based on the tag name. It is currently implemented by a static array of Change implementations, although that may change in later revisions. The best way to get an instance of ChangeFactory is off the Liquibase.getChangeFactory() method.

See Also:
Change

Method Summary
 Change create(String name)
           
static ChangeFactory getInstance()
          Return singleton SqlGeneratorFactory
 Map<String,SortedSet<Class<? extends Change>>> getRegistry()
           
 void register(Class<? extends Change> changeClass)
           
static void reset()
           
 void unregister(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ChangeFactory getInstance()
Return singleton SqlGeneratorFactory


reset

public static void reset()

register

public void register(Class<? extends Change> changeClass)

unregister

public void unregister(String name)

getRegistry

public Map<String,SortedSet<Class<? extends Change>>> getRegistry()

create

public Change create(String name)


Copyright © 2012 Liquibase.org. All Rights Reserved.