public interface ProjectionTransformer
Modifier and Type | Method and Description |
---|---|
static java.util.function.Function<java.lang.String,java.util.Optional<ProjectionTransformer>> |
createServiceFactory()
Creates a
ProjectionTransformer factory function using SPI
and the current thread's context class loader. |
static java.util.function.Function<java.lang.String,java.util.Optional<ProjectionTransformer>> |
createServiceFactory(java.lang.ClassLoader classLoader)
Creates a
ProjectionTransformer factory function using SPI. |
static java.util.function.Function<java.lang.String,java.util.Optional<ProjectionTransformer>> |
createServiceFactory(java.lang.Iterable<ProjectionTransformer> transformers)
Creates a
ProjectionTransformer factory function using
the given transformers. |
default java.util.List<java.lang.String> |
getAdditionalProjections(TransformContext context)
Allows the composition of projections by returning additional
projections to run after the current one.
|
java.lang.String |
getName()
Gets the name of the transformer.
|
Model |
transform(TransformContext context)
Transforms the given model using the provided
TransformContext . |
java.lang.String getName()
Model transform(TransformContext context)
TransformContext
.context
- Transformation context.java.lang.IllegalArgumentException
- if the arguments are invalid.default java.util.List<java.lang.String> getAdditionalProjections(TransformContext context)
context
- Transformation context.java.lang.IllegalArgumentException
- if the arguments are invalid.static java.util.function.Function<java.lang.String,java.util.Optional<ProjectionTransformer>> createServiceFactory()
ProjectionTransformer
factory function using SPI
and the current thread's context class loader.Thread.getContextClassLoader()
static java.util.function.Function<java.lang.String,java.util.Optional<ProjectionTransformer>> createServiceFactory(java.lang.Iterable<ProjectionTransformer> transformers)
ProjectionTransformer
factory function using
the given transformers.transformers
- Transformers used to build a factory function.static java.util.function.Function<java.lang.String,java.util.Optional<ProjectionTransformer>> createServiceFactory(java.lang.ClassLoader classLoader)
ProjectionTransformer
factory function using SPI.classLoader
- Class loader to use to discover classes.