Enum ModuleLayerFromSingleClassLoaderDecorator.Factory

java.lang.Object
java.lang.Enum<ModuleLayerFromSingleClassLoaderDecorator.Factory>
net.bytebuddy.dynamic.loading.ModuleLayerFromSingleClassLoaderDecorator.Factory
All Implemented Interfaces:
Serializable, Comparable<ModuleLayerFromSingleClassLoaderDecorator.Factory>, java.lang.constant.Constable, ClassLoaderDecorator.Factory
Enclosing class:
ModuleLayerFromSingleClassLoaderDecorator

public static enum ModuleLayerFromSingleClassLoaderDecorator.Factory extends Enum<ModuleLayerFromSingleClassLoaderDecorator.Factory> implements ClassLoaderDecorator.Factory
A factory for creating a single module from a module-info class file, if available.
  • Enum Constant Details

  • Constructor Details

    • Factory

      private Factory()
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • make

      public ClassLoaderDecorator make(@MaybeNull ClassLoader classLoader, Map<String,byte[]> typeDefinitions)
      Creates a class loader decorator for the given class loader and type definitions.
      Specified by:
      make in interface ClassLoaderDecorator.Factory
      Parameters:
      classLoader - The class loader to decorate or null if the bootstrap class loader is used.
      typeDefinitions - A map of type names to their binary representations for types being loaded.
      Returns:
      A class loader decorator instance.