public interface ChangeTemplateFactory
ChangeTemplate instances.
This interface enables a federated approach to template discovery, allowing modules
to provide multiple templates through a single service provider. Implementations of
this interface are discovered via Java's ServiceLoader mechanism during both:
To register a factory implementation, create a file at:
META-INF/services/io.flamingock.internal.common.core.template.ChangeTemplateFactory
containing the fully qualified class name of your implementation.
Factory implementations should be stateless and thread-safe, as they may be instantiated multiple times and accessed concurrently.
ChangeTemplateManager,
ServiceLoader| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<io.flamingock.api.template.ChangeTemplate<?,?,?>> |
getTemplates()
Returns a collection of
ChangeTemplate instances provided by this factory. |
java.util.Collection<io.flamingock.api.template.ChangeTemplate<?,?,?>> getTemplates()
ChangeTemplate instances provided by this factory.
This method is called by ChangeTemplateManager.getTemplates() to discover templates
in a federated manner. It is invoked in two contexts:
Implementations should: