Package liquibase.change
Class ChangeFactory
- All Implemented Interfaces:
PluginFactory
,SingletonObject
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
.- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new Change implementation for the given change name.getChangeMetaData
(String change) getChangeMetaData
(Change change) Returns all defined changes in the registry.static ChangeFactory
Deprecated.getParameters
(Change change) protected int
getPriority
(Change obj, Object... args) Returns the priority of the given object based on the passed args array.void
unregister
(String name) Unregister all instances of a given Change name.Methods inherited from class liquibase.plugin.AbstractPluginFactory
findAllInstances, getPlugin, getPlugins, register, removeInstance
-
Field Details
-
SUPPORTS_METHOD_REQUIRED_MESSAGE
- See Also:
-
-
Method Details
-
getPluginClass
- Specified by:
getPluginClass
in classAbstractPluginFactory<Change>
-
getPriority
Description copied from class:AbstractPluginFactory
Returns the priority of the given object based on the passed args array. The args are created as part of the custom public getPlugin method in implementations are passed throughAbstractPluginFactory.getPlugin(Object...)
- Specified by:
getPriority
in classAbstractPluginFactory<Change>
-
getChangeMetaData
-
getChangeMetaData
-
unregister
Unregister all instances of a given Change name. Normally used for testing, but can be called manually if needed. -
getDefinedChanges
Returns all defined changes in the registry. Returned set is not modifiable. -
create
Create a new Change implementation for the given change name. The class of the constructed object will be the Change implementation with the highest priority. Each call to create will return a new instance of the Change. -
getParameters
-
getInstance
Deprecated.
-
Scope.getSingleton(Class)