Class TestSystemFactory
java.lang.Object
liquibase.plugin.AbstractPluginFactory<TestSystem>
liquibase.extension.testing.testsystem.TestSystemFactory
- All Implemented Interfaces:
PluginFactory
,SingletonObject
Factory for getting
TestSystem
implementations.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<TestSystem>
Finds implementations of the given interface or class and returns instances of them.<T extends TestSystem>
List<T>getAvailable
(Class<T> testSystemType) protected Class<TestSystem>
protected int
getPriority
(TestSystem testSystem, Object... args) Returns the priority of the given object based on the passed args array.getTestSystem
(String definition) Convenience method forgetTestSystem(TestSystem.Definition)
without having to parse the definition yourself.getTestSystem
(TestSystem.Definition definition) Return theTestSystem
for the givenTestSystem.Definition
.Methods inherited from class liquibase.plugin.AbstractPluginFactory
getPlugin, getPlugins, register, removeInstance
-
Constructor Details
-
TestSystemFactory
public TestSystemFactory()
-
-
Method Details
-
getPluginClass
- Specified by:
getPluginClass
in classAbstractPluginFactory<TestSystem>
-
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<TestSystem>
-
getTestSystem
Return theTestSystem
for the givenTestSystem.Definition
. Returns singleton instances for equal definitions. -
getTestSystem
Convenience method forgetTestSystem(TestSystem.Definition)
without having to parse the definition yourself. -
getTestSystemNames
-
findAllInstances
Description copied from class:AbstractPluginFactory
Finds implementations of the given interface or class and returns instances of them. Standard implementation usesServiceLoader
to find implementations and caches results inAbstractPluginFactory.allInstances
which means the same objects are always returned. If the instances should not be treated as singletons, clone the objects before returning them fromAbstractPluginFactory.getPlugin(Object...)
.- Overrides:
findAllInstances
in classAbstractPluginFactory<TestSystem>
-
getAvailable
-