public static interface Plugin.WithPreprocessor extends 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.
Plugin.Engine, Plugin.Factory, Plugin.ForElementMatcher, Plugin.NoOp, Plugin.WithPreprocessor
ElementMatcher.Junction<S>
Modifier and Type | Method and Description |
---|---|
void |
onPreprocess(TypeDescription typeDescription,
ClassFileLocator classFileLocator)
Invoked upon the discovery of a type that is not explicitly ignored.
|
matches
void onPreprocess(TypeDescription typeDescription, ClassFileLocator classFileLocator)
typeDescription
- The discovered type.classFileLocator
- A class file locator that can locate other types in the scope of the project.Copyright © 2014–2022. All rights reserved.