public interface Plugin extends ElementMatcher<TypeDescription>, Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
Plugin.Compound
A compound plugin that applies several plugins in a row.
|
static interface |
Plugin.Engine
A plugin engine allows the application of one or more plugins on class files found at a
Plugin.Engine.Source which are
then transferred and consumed by a Target . |
static interface |
Plugin.Factory
A factory for providing a build plugin.
|
static class |
Plugin.ForElementMatcher
An abstract base for a
Plugin that matches types by a given ElementMatcher . |
static class |
Plugin.NoOp
A non-operational plugin that does not instrument any type.
|
ElementMatcher.Junction<S>
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<?> |
apply(DynamicType.Builder<?> builder,
TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Applies this plugin.
|
matches
DynamicType.Builder<?> apply(DynamicType.Builder<?> builder, TypeDescription typeDescription, ClassFileLocator classFileLocator)
builder
- The builder to use as a basis for the applied transformation.typeDescription
- The type being transformed.classFileLocator
- A class file locator that can locate other types in the scope of the project.Copyright © 2014–2019. All rights reserved.