@HashCodeAndEqualsPlugin.Enhance protected static class TypeResolutionStrategy.Active.Resolved extends java.lang.Object implements TypeResolutionStrategy.Resolved
Modifier and Type | Field and Description |
---|---|
private int |
identification
The id used for identifying the loaded type initializer that was added to the
Nexus . |
private NexusAccessor |
nexusAccessor
The nexus accessor to use.
|
Modifier | Constructor and Description |
---|---|
protected |
Resolved(NexusAccessor nexusAccessor,
int identification)
Creates a new resolved active type resolution strategy.
|
Modifier and Type | Method and Description |
---|---|
<S extends java.lang.ClassLoader> |
initialize(DynamicType dynamicType,
S classLoader,
ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.
|
TypeInitializer |
injectedInto(TypeInitializer typeInitializer)
Injects a type initializer into the supplied type initializer, if applicable.
|
private final NexusAccessor nexusAccessor
private final int identification
Nexus
.protected Resolved(NexusAccessor nexusAccessor, int identification)
nexusAccessor
- The nexus accessor to use.identification
- The id used for identifying the loaded type initializer that was added to the Nexus
.public TypeInitializer injectedInto(TypeInitializer typeInitializer)
injectedInto
in interface TypeResolutionStrategy.Resolved
typeInitializer
- The type initializer to potentially expend.public <S extends java.lang.ClassLoader> java.util.Map<TypeDescription,java.lang.Class<?>> initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
initialize
in interface TypeResolutionStrategy.Resolved
S
- The least specific type of class loader this strategy can apply to.dynamicType
- The dynamic type to initialize.classLoader
- The class loader to use.classLoadingStrategy
- The class loading strategy to use.