Enum Class PackageDefinitionStrategy.Trivial

java.lang.Object
java.lang.Enum<PackageDefinitionStrategy.Trivial>
net.bytebuddy.dynamic.loading.PackageDefinitionStrategy.Trivial
All Implemented Interfaces:
Serializable, Comparable<PackageDefinitionStrategy.Trivial>, Constable, PackageDefinitionStrategy
Enclosing interface:
PackageDefinitionStrategy

public static enum PackageDefinitionStrategy.Trivial extends Enum<PackageDefinitionStrategy.Trivial> implements PackageDefinitionStrategy
A package definer that only defines packages without any meta data.
  • Enum Constant Details

  • Constructor Details

    • Trivial

      private Trivial()
  • Method Details

    • values

      public static PackageDefinitionStrategy.Trivial[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PackageDefinitionStrategy.Trivial valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • define

      public PackageDefinitionStrategy.Definition define(ClassLoader classLoader, String packageName, String typeName)
      Returns a package definition for a given package.
      Specified by:
      define in interface PackageDefinitionStrategy
      Parameters:
      classLoader - The class loader for which this package is being defined.
      packageName - The name of the package.
      typeName - The name of the type being loaded that triggered the package definition.
      Returns:
      A definition of the package.