Package net.bytebuddy.build
Interface Plugin.WithPreprocessor
- All Superinterfaces:
AutoCloseable
,Closeable
,ElementMatcher<TypeDescription>
,Plugin
- Enclosing interface:
- Plugin
A plugin that applies a preprocessor, i.e. causes a plugin engine's execution to defer all plugin applications until all types were discovered.
Important: The registration of a single plugin with preprocessor causes the deferral of all plugins' application that are registered
with a particular plugin engine. This will reduce parallel application if a corresponding Plugin.Engine.Dispatcher
is used and will increase
the engine application's memory consumption. Any alternative application of a plugin outside of a Plugin.Engine
might not be capable
of preprocessing where the discovery callback is not invoked.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher
ElementMatcher.Junction<S>
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin
Plugin.Engine, Plugin.Factory, Plugin.ForElementMatcher, Plugin.NoOp, Plugin.WithPreprocessor
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onPreprocess
(TypeDescription typeDescription, ClassFileLocator classFileLocator) Invoked upon the discovery of a type that is not explicitly ignored.Methods inherited from interface net.bytebuddy.matcher.ElementMatcher
matches
-
Method Details
-
onPreprocess
Invoked upon the discovery of a type that is not explicitly ignored.- Parameters:
typeDescription
- The discovered type.classFileLocator
- A class file locator that can locate other types in the scope of the project.
-