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
Constructors -
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 intgetPriority(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 theTestSystemfor the givenTestSystem.Definition.Methods inherited from class liquibase.plugin.AbstractPluginFactory
getPlugin, getPlugins, register, removeInstance
-
Constructor Details
-
TestSystemFactory
public TestSystemFactory()
-
-
Method Details
-
getPluginClass
- Specified by:
getPluginClassin classAbstractPluginFactory<TestSystem>
-
getPriority
Description copied from class:AbstractPluginFactoryReturns 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:
getPriorityin classAbstractPluginFactory<TestSystem>
-
getTestSystem
Return theTestSystemfor 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:AbstractPluginFactoryFinds implementations of the given interface or class and returns instances of them. Standard implementation usesServiceLoaderto find implementations and caches results inAbstractPluginFactory.allInstanceswhich 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:
findAllInstancesin classAbstractPluginFactory<TestSystem>
-
getAvailable
-