public static interface Plugin.Engine
Plugin.Engine.Source
which are
then transferred and consumed by a Target
.Modifier and Type | Interface and Description |
---|---|
static class |
Plugin.Engine.AbstractBase
An abstract base implementation of a plugin engine.
|
static class |
Plugin.Engine.Default
A default implementation of a plugin engine.
|
static interface |
Plugin.Engine.Dispatcher
A dispatcher to execute a plugin engine transformation.
|
static interface |
Plugin.Engine.ErrorHandler
An error handler that is used during a plugin engine application.
|
static interface |
Plugin.Engine.Listener
A listener that is invoked upon any event during a plugin engine application.
|
static interface |
Plugin.Engine.PoolStrategy
A pool strategy determines the creation of a
TypePool for a plugin engine application. |
static interface |
Plugin.Engine.Source
A source for a plugin engine provides binary elements to consider for transformation.
|
static class |
Plugin.Engine.Summary
A summary of the application of a
Plugin.Engine to a source and target. |
static interface |
Plugin.Engine.Target
A target for a plugin engine represents a sink container for all elements that are supplied by a
Plugin.Engine.Source . |
static interface |
Plugin.Engine.TypeStrategy
A type strategy determines the transformation that is applied to a type description.
|
Modifier and Type | Field and Description |
---|---|
static String |
MODULE_INFO
The module info class file.
|
static String |
PACKAGE_INFO
The package info class file.
|
static String |
PLUGIN_FILE
The name of the file that contains declares Byte Buddy plugins for discovery.
|
Modifier and Type | Method and Description |
---|---|
Plugin.Engine.Summary |
apply(File source,
File target,
List<? extends Plugin.Factory> factories)
Applies this plugin engine onto a given source and target.
|
Plugin.Engine.Summary |
apply(File source,
File target,
Plugin.Factory... factory)
Applies this plugin engine onto a given source and target.
|
Plugin.Engine.Summary |
apply(Plugin.Engine.Source source,
Plugin.Engine.Target target,
List<? extends Plugin.Factory> factories)
Applies this plugin engine onto a given source and target.
|
Plugin.Engine.Summary |
apply(Plugin.Engine.Source source,
Plugin.Engine.Target target,
Plugin.Factory... factory)
Applies this plugin engine onto a given source and target.
|
Plugin.Engine |
ignore(ElementMatcher<? super TypeDescription> matcher)
Ignores all types that are matched by this matcher or any previously registered ignore matcher.
|
Plugin.Engine |
with(ByteBuddy byteBuddy)
Defines a new Byte Buddy instance for usage for type creation.
|
Plugin.Engine |
with(ClassFileLocator classFileLocator)
Appends the supplied class file locator to be queried for class files additionally to any previously registered
class file locators.
|
Plugin.Engine |
with(ClassFileVersion classFileVersion)
Uses the supplied
ClassFileVersion as a base for resolving multi-release jars, or null
if multi-release jars should not be resolved but be treated as regular jar files. |
Plugin.Engine |
with(Plugin.Engine.Dispatcher.Factory dispatcherFactory)
Replaces the dispatcher factory of this plugin engine with the supplied dispatcher factory.
|
Plugin.Engine |
with(Plugin.Engine.Listener listener)
Appends the supplied listener to this engine.
|
Plugin.Engine |
with(Plugin.Engine.PoolStrategy poolStrategy)
Defines a new pool strategy that determines how types are being described.
|
Plugin.Engine |
with(Plugin.Engine.TypeStrategy typeStrategy)
Defines a new type strategy which determines the transformation mode for any instrumented type.
|
Plugin.Engine |
withErrorHandlers(List<? extends Plugin.Engine.ErrorHandler> errorHandlers)
Replaces the error handlers of this plugin engine with the supplied error handlers.
|
Plugin.Engine |
withErrorHandlers(Plugin.Engine.ErrorHandler... errorHandler)
Replaces the error handlers of this plugin engine with the supplied error handlers.
|
Plugin.Engine |
withoutErrorHandlers()
Replaces the error handlers of this plugin engine without applying any error handlers.
|
Plugin.Engine |
withParallelTransformation(int threads)
Replaces the dispatcher factory of this plugin engine with a parallel dispatcher factory that uses the given amount of threads.
|
static final String MODULE_INFO
static final String PACKAGE_INFO
static final String PLUGIN_FILE
Plugin.Engine with(ByteBuddy byteBuddy)
byteBuddy
- The Byte Buddy instance to use.Plugin.Engine with(Plugin.Engine.TypeStrategy typeStrategy)
typeStrategy
- The type stategy to use.Plugin.Engine with(Plugin.Engine.PoolStrategy poolStrategy)
poolStrategy
- The pool strategy to use.Plugin.Engine with(ClassFileLocator classFileLocator)
classFileLocator
- The class file locator to append.Plugin.Engine with(@MaybeNull ClassFileVersion classFileVersion)
ClassFileVersion
as a base for resolving multi-release jars, or null
if multi-release jars should not be resolved but be treated as regular jar files. This property might
not be applied if the underlying location mechanism does not supply manual resource resolution. Note that
classes that are of newer class file versions than the specified version are not resolved and simply copied.classFileVersion
- The class file version to use or null
if multi-release jars should be ignored.Plugin.Engine with(Plugin.Engine.Listener listener)
listener
- The listener to append.Plugin.Engine withoutErrorHandlers()
Plugin.Engine withErrorHandlers(Plugin.Engine.ErrorHandler... errorHandler)
errorHandler
- The error handlers to apply.Plugin.Engine withErrorHandlers(List<? extends Plugin.Engine.ErrorHandler> errorHandlers)
errorHandlers
- The error handlers to apply.Plugin.Engine withParallelTransformation(int threads)
threads
- The amount of threads to use.Plugin.Engine with(Plugin.Engine.Dispatcher.Factory dispatcherFactory)
dispatcherFactory
- The dispatcher factory to use.Plugin.Engine ignore(ElementMatcher<? super TypeDescription> matcher)
matcher
- The ignore matcher to append.Plugin.Engine.Summary apply(File source, File target, Plugin.Factory... factory) throws IOException
source
- The source which is treated as a folder or a jar file, if a folder does not exist.target
- The target which is treated as a folder or a jar file, if a folder does not exist.factory
- A list of plugin factories to a apply.IOException
- If an I/O error occurs.Plugin.Engine.Summary apply(File source, File target, List<? extends Plugin.Factory> factories) throws IOException
source
- The source which is treated as a folder or a jar file, if a folder does not exist.target
- The target which is treated as a folder or a jar file, if a folder does not exist.factories
- A list of plugin factories to a apply.IOException
- If an I/O error occurs.Plugin.Engine.Summary apply(Plugin.Engine.Source source, Plugin.Engine.Target target, Plugin.Factory... factory) throws IOException
source
- The source to use.target
- The target to use.factory
- A list of plugin factories to a apply.IOException
- If an I/O error occurs.Plugin.Engine.Summary apply(Plugin.Engine.Source source, Plugin.Engine.Target target, List<? extends Plugin.Factory> factories) throws IOException
source
- The source to use.target
- The target to use.factories
- A list of plugin factories to a apply.IOException
- If an I/O error occurs.Copyright © 2014–2024. All rights reserved.