public interface ClassLoaderDecorator
ClassLoadingStrategy.
This way, it is possible to define custom class loaders that wrap Byte Buddy's built-in class loaders.| Modifier and Type | Interface and Description |
|---|---|
static interface |
ClassLoaderDecorator.Factory
A factory for creating class loader decorators.
|
static class |
ClassLoaderDecorator.NoOp
A no-operation implementation of a class loader decorator that always returns the same class loader
without applying any decoration.
|
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
apply(TypeDescription typeDescription)
Applies this decorator to resolve a class loader for the given type.
|
boolean |
isSkipped(TypeDescription typeDescription)
Determines if a type should be skipped from class loader decoration.
|
boolean isSkipped(TypeDescription typeDescription)
typeDescription - The type description to check.true if the type should be skipped from decoration.@MaybeNull ClassLoader apply(TypeDescription typeDescription)
typeDescription - The type description for which to resolve a class loader.null for the bootstrap class loader.Copyright © 2014–2025. All rights reserved.