Package net.bytebuddy.build
Interface Plugin.WithInitialization
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
,ElementMatcher<TypeDescription>
,Plugin
- Enclosing interface:
- Plugin
public static interface Plugin.WithInitialization extends Plugin
Allows for the generation of types before a plugin is applied.
-
-
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.WithInitialization, Plugin.WithPreprocessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<TypeDescription,byte[]>
initialize(ClassFileLocator classFileLocator)
Returns a mapping of classes that should be created before discovering any types.-
Methods inherited from interface net.bytebuddy.matcher.ElementMatcher
matches
-
-
-
-
Method Detail
-
initialize
java.util.Map<TypeDescription,byte[]> initialize(ClassFileLocator classFileLocator)
Returns a mapping of classes that should be created before discovering any types.- Parameters:
classFileLocator
- A class file locator that can locate other types in the scope of the project.- Returns:
- A mapping of types to their binary representation.
-
-