Package net.bytebuddy.dynamic
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 java.lang.Object implements TypeResolutionStrategy
A type resolution strategy that applies allLoadedTypeInitializer
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 Classes Modifier and Type Class Description protected static class
TypeResolutionStrategy.Active.Resolved
A resolved version of an active type resolution strategy.-
Nested classes/interfaces inherited from interface net.bytebuddy.dynamic.TypeResolutionStrategy
TypeResolutionStrategy.Active, TypeResolutionStrategy.Disabled, TypeResolutionStrategy.Lazy, TypeResolutionStrategy.Passive
-
-
Field Summary
Fields Modifier and Type Field Description private NexusAccessor
nexusAccessor
The nexus accessor to use.
-
Constructor Summary
Constructors Constructor Description Active()
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeResolutionStrategy.Resolved
resolve()
Resolves a type resolution strategy for actual application.
-
-
-
Field Detail
-
nexusAccessor
private final NexusAccessor nexusAccessor
The nexus accessor to use.
-
-
Constructor Detail
-
Active
public Active()
Creates a new active type resolution strategy that uses a default nexus accessor.
-
Active
public Active(NexusAccessor nexusAccessor)
Creates a new active type resolution strategy that uses the supplied nexus accessor.- Parameters:
nexusAccessor
- The nexus accessor to use.
-
-
Method Detail
-
resolve
public TypeResolutionStrategy.Resolved resolve()
Resolves a type resolution strategy for actual application.- Specified by:
resolve
in interfaceTypeResolutionStrategy
- Returns:
- A resolved version of this type resolution strategy.
-
-