Class ClassInjector.AbstractBase

java.lang.Object
net.bytebuddy.dynamic.loading.ClassInjector.AbstractBase
All Implemented Interfaces:
ClassInjector
Direct Known Subclasses:
ClassInjector.UsingInstrumentation, ClassInjector.UsingJna, ClassInjector.UsingLookup, ClassInjector.UsingReflection, ClassInjector.UsingUnsafe
Enclosing interface:
ClassInjector

public abstract static class ClassInjector.AbstractBase extends Object implements ClassInjector
An abstract base implementation of a class injector.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • inject

      public Map<TypeDescription,Class<?>> inject(Set<? extends TypeDescription> types, ClassFileLocator classFileLocator)
      Injects the given types into the represented class loader.
      Specified by:
      inject in interface ClassInjector
      Parameters:
      types - The types to load via injection.
      classFileLocator - The class file locator to use for resolving binary representations.
      Returns:
      The loaded types that were passed as arguments.
    • inject

      public Map<TypeDescription,Class<?>> inject(Map<? extends TypeDescription,byte[]> types)
      Injects the given types into the represented class loader.
      Specified by:
      inject in interface ClassInjector
      Parameters:
      types - The types to load via injection.
      Returns:
      The loaded types that were passed as arguments.
    • injectRaw

      public Map<String,Class<?>> injectRaw(Map<String,byte[]> types)
      Injects the given types into the represented class loader.
      Specified by:
      injectRaw in interface ClassInjector
      Parameters:
      types - The names of the type to load via injection.
      Returns:
      The loaded types that were passed as arguments.