Class TypeResolutionStrategy.Active
java.lang.Object
net.bytebuddy.dynamic.TypeResolutionStrategy.Active
- All Implemented Interfaces:
TypeResolutionStrategy
- Enclosing interface:
TypeResolutionStrategy
@Enhance
public static class TypeResolutionStrategy.Active
extends Object
implements TypeResolutionStrategy
A type resolution strategy that applies all
LoadedTypeInitializer as a part of class loading using reflection. This implies that the initializers
are executed before (as a first action of) a type initializer is executed.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classA resolved version of an active type resolution strategy.Nested classes/interfaces inherited from interface TypeResolutionStrategy
TypeResolutionStrategy.Active, TypeResolutionStrategy.Disabled, TypeResolutionStrategy.Lazy, TypeResolutionStrategy.Passive -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionActive()Creates a new active type resolution strategy that uses a default nexus accessor.Active(NexusAccessor nexusAccessor) Creates a new active type resolution strategy that uses the supplied nexus accessor. -
Method Summary
Modifier and TypeMethodDescriptionresolve()Resolves a type resolution strategy for actual application.
-
Field Details
-
nexusAccessor
The nexus accessor to use.
-
-
Constructor Details
-
Active
public Active()Creates a new active type resolution strategy that uses a default nexus accessor. -
Active
Creates a new active type resolution strategy that uses the supplied nexus accessor.- Parameters:
nexusAccessor- The nexus accessor to use.
-
-
Method Details
-
resolve
Resolves a type resolution strategy for actual application.- Specified by:
resolvein interfaceTypeResolutionStrategy- Returns:
- A resolved version of this type resolution strategy.
-