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.
    • 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.