java.lang.Object
de.iip_ecosphere.platform.support.bytecode.Bytecode

public abstract class Bytecode extends Object
Generic access to Bytecode manipulation. Requires an implementing plugin of type Bytecode or an active BytecodeProviderDescriptor. Abstraction based on bytebuddy.
Author:
Holger Eichelberger, SSE
  • Field Details

    • instance

      private static Bytecode instance
  • Constructor Details

    • Bytecode

      public Bytecode()
  • Method Details

    • getInstance

      public static Bytecode getInstance()
      Returns the Rest instance.
      Returns:
      the instance
    • setInstance

      public static void setInstance(Bytecode rest)
      Manually sets the instance. Shall not be needed, but may be required in some tests.
      Parameters:
      rest - the Rest instance
    • createClassBuilder

      public abstract <T> Bytecode.ClassBuilder<T> createClassBuilder(String name, Class<T> cls, ClassLoader loader)
      Creates a class builder for a dynamic class.
      Type Parameters:
      T - the type the dynamic class shall interit from
      Parameters:
      name - the name of the class
      cls - type the dynamic class shall interit from
      loader - the class loader the class shall be loaded by and made available through
      Returns:
      the class builder for further setuo