Enum ClassLoaderDecorator.Factory.NoOp
java.lang.Object
java.lang.Enum<ClassLoaderDecorator.Factory.NoOp>
net.bytebuddy.dynamic.loading.ClassLoaderDecorator.Factory.NoOp
- All Implemented Interfaces:
Serializable, Comparable<ClassLoaderDecorator.Factory.NoOp>, java.lang.constant.Constable, ClassLoaderDecorator.Factory
- Enclosing interface:
ClassLoaderDecorator.Factory
public static enum ClassLoaderDecorator.Factory.NoOp
extends Enum<ClassLoaderDecorator.Factory.NoOp>
implements ClassLoaderDecorator.Factory
A no-operation factory that creates no-operation class loader decorators.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface ClassLoaderDecorator.Factory
ClassLoaderDecorator.Factory.NoOp -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake(ClassLoader classLoader, Map<String, byte[]> typeDefinitions) Creates a class loader decorator for the given class loader and type definitions.Returns the enum constant of this type with the specified name.static ClassLoaderDecorator.Factory.NoOp[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance of this no-operation factory.
-
-
Constructor Details
-
NoOp
private NoOp()
-
-
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 nameNullPointerException- 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:
makein interfaceClassLoaderDecorator.Factory- Parameters:
classLoader- The class loader to decorate ornullif 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.
-