public interface Plugin extends ElementMatcher<TypeDescription>
Modifier and Type | Interface and Description |
---|---|
static class |
Plugin.Compound
A compound plugin that applies several plugins in a row.
|
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–2018. All rights reserved.