LoadedTypeInitializers.
| Modifier and Type | Class and Description |
|---|---|
| public static class | TypeResolutionStrategy.Active
A type resolution strategy that applies all |
| public static enum | TypeResolutionStrategy.Disabled
A type resolution strategy that does not allow for explicit loading of a class and that does not inject any code into the type initializer. |
| public static enum | TypeResolutionStrategy.Lazy
A type resolution strategy that does not apply any |
| public static enum | TypeResolutionStrategy.Passive
A type resolution strategy that applies all |
| public static interface |
| Modifier and Type | Method and Description |
|---|---|
| public TypeResolutionStrategy. | Returns: A resolved version of this type resolution strategy.Resolves a type resolution strategy for actual application. |
| resolve | back to summary |
|---|---|
| public TypeResolutionStrategy. Resolves a type resolution strategy for actual application.
| |
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.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | TypeResolutionStrategy.Active.Resolved
A resolved version of an active type resolution strategy. |
| Modifier and Type | Field and Description |
|---|---|
| private final NexusAccessor | nexusAccessor
The nexus accessor to use. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Active(NexusAccessor
The nexus accessor to use. nexusAccessor)Creates a new active type resolution strategy that uses the supplied nexus accessor. |
| Modifier and Type | Method and Description |
|---|---|
| public TypeResolutionStrategy. | resolve()
Implements net. |
| nexusAccessor | back to summary |
|---|---|
| private final NexusAccessor nexusAccessor The nexus accessor to use. | |
| Active | back to summary |
|---|---|
| public Active() Creates a new active type resolution strategy that uses a default nexus accessor. | |
| Active | back to summary |
|---|---|
| public Active(NexusAccessor nexusAccessor) Creates a new active type resolution strategy that uses the supplied nexus accessor.
| |
| resolve | back to summary |
|---|---|
| public TypeResolutionStrategy. Implements net. Doc from net. Resolves a type resolution strategy for actual application.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final int | identification
The id used for identifying the loaded type initializer that was added to the |
| private final NexusAccessor | nexusAccessor
The nexus accessor to use. |
| Access | Constructor and Description |
|---|---|
| protected | Resolved(NexusAccessor
The nexus accessor to use. nexusAccessor, int The id used for identifying the loaded type initializer that was added to the identification)Nexus.Creates a new resolved active type resolution strategy. |
| Modifier and Type | Method and Description |
|---|---|
| public <S extends ClassLoader> Map | initialize(DynamicType
The dynamic type to initialize. dynamicType, S The class loader to use. classLoader, ClassLoadingStrategy<? super S> The class loading strategy to use. classLoadingStrategy)Implements net. |
| public TypeInitializer | injectedInto(TypeInitializer
The type initializer to potentially expend. typeInitializer)Implements net. |
| identification | back to summary |
|---|---|
| private final int identification The id used for identifying the loaded type initializer that was added to the | |
| nexusAccessor | back to summary |
|---|---|
| private final NexusAccessor nexusAccessor The nexus accessor to use. | |
| Resolved | back to summary |
|---|---|
| protected Resolved(NexusAccessor nexusAccessor, int identification) Creates a new resolved active type resolution strategy.
| |
| initialize | back to summary |
|---|---|
| public <S extends ClassLoader> Map Implements net. Doc from net. Loads and initializes a dynamic type.
| |
| injectedInto | back to summary |
|---|---|
| public TypeInitializer injectedInto(TypeInitializer typeInitializer) Implements net. Doc from net. Injects a type initializer into the supplied type initializer, if applicable. This way, a type resolution strategy is capable of injecting code into the generated class's initializer to inline the initialization.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeResolutionStrategy. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <S extends ClassLoader> Map | initialize(DynamicType
The dynamic type to initialize. dynamicType, S The class loader to use. classLoader, ClassLoadingStrategy<? super S> The class loading strategy to use. classLoadingStrategy)Implements net. |
| public TypeInitializer | injectedInto(TypeInitializer
The type initializer to potentially expend. typeInitializer)Implements net. |
| public TypeResolutionStrategy. | resolve()
Implements net. |
| public static TypeResolutionStrategy. | |
| public static TypeResolutionStrategy. |
| INSTANCE | back to summary |
|---|---|
| public static final TypeResolutionStrategy. The singleton instance. | |
| Disabled | back to summary |
|---|---|
| private Disabled() | |
| initialize | back to summary |
|---|---|
| public <S extends ClassLoader> Map Implements net. Doc from net. Loads and initializes a dynamic type.
| |
| injectedInto | back to summary |
|---|---|
| public TypeInitializer injectedInto(TypeInitializer typeInitializer) Implements net. Doc from net. Injects a type initializer into the supplied type initializer, if applicable. This way, a type resolution strategy is capable of injecting code into the generated class's initializer to inline the initialization.
| |
| resolve | back to summary |
|---|---|
| public TypeResolutionStrategy. Implements net. Doc from net. Resolves a type resolution strategy for actual application.
| |
| valueOf | back to summary |
|---|---|
| public static TypeResolutionStrategy. | |
| values | back to summary |
|---|---|
| public static TypeResolutionStrategy. | |
LoadedTypeInitializers but only loads all types.
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeResolutionStrategy. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <S extends ClassLoader> Map | initialize(DynamicType
The dynamic type to initialize. dynamicType, S The class loader to use. classLoader, ClassLoadingStrategy<? super S> The class loading strategy to use. classLoadingStrategy)Implements net. |
| public TypeInitializer | injectedInto(TypeInitializer
The type initializer to potentially expend. typeInitializer)Implements net. |
| public TypeResolutionStrategy. | resolve()
Implements net. |
| public static TypeResolutionStrategy. | |
| public static TypeResolutionStrategy. |
| INSTANCE | back to summary |
|---|---|
| public static final TypeResolutionStrategy. The singleton instance. | |
| Lazy | back to summary |
|---|---|
| private Lazy() | |
| initialize | back to summary |
|---|---|
| public <S extends ClassLoader> Map Implements net. Doc from net. Loads and initializes a dynamic type.
| |
| injectedInto | back to summary |
|---|---|
| public TypeInitializer injectedInto(TypeInitializer typeInitializer) Implements net. Doc from net. Injects a type initializer into the supplied type initializer, if applicable. This way, a type resolution strategy is capable of injecting code into the generated class's initializer to inline the initialization.
| |
| resolve | back to summary |
|---|---|
| public TypeResolutionStrategy. Implements net. Doc from net. Resolves a type resolution strategy for actual application.
| |
| valueOf | back to summary |
|---|---|
| public static TypeResolutionStrategy. | |
| values | back to summary |
|---|---|
| public static TypeResolutionStrategy. | |
LoadedTypeInitializer after class loading using reflection. This implies that the initializers
are executed after a type initializer is executed.
| Modifier and Type | Field and Description |
|---|---|
| public static final TypeResolutionStrategy. | INSTANCE
The singleton instance. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public <S extends ClassLoader> Map | initialize(DynamicType
The dynamic type to initialize. dynamicType, S The class loader to use. classLoader, ClassLoadingStrategy<? super S> The class loading strategy to use. classLoadingStrategy)Implements net. |
| public TypeInitializer | injectedInto(TypeInitializer
The type initializer to potentially expend. typeInitializer)Implements net. |
| public TypeResolutionStrategy. | resolve()
Implements net. |
| public static TypeResolutionStrategy. | |
| public static TypeResolutionStrategy. |
| INSTANCE | back to summary |
|---|---|
| public static final TypeResolutionStrategy. The singleton instance. | |
| Passive | back to summary |
|---|---|
| private Passive() | |
| initialize | back to summary |
|---|---|
| public <S extends ClassLoader> Map Implements net. Doc from net. Loads and initializes a dynamic type.
| |
| injectedInto | back to summary |
|---|---|
| public TypeInitializer injectedInto(TypeInitializer typeInitializer) Implements net. Doc from net. Injects a type initializer into the supplied type initializer, if applicable. This way, a type resolution strategy is capable of injecting code into the generated class's initializer to inline the initialization.
| |
| resolve | back to summary |
|---|---|
| public TypeResolutionStrategy. Implements net. Doc from net. Resolves a type resolution strategy for actual application.
| |
| valueOf | back to summary |
|---|---|
| public static TypeResolutionStrategy. | |
| values | back to summary |
|---|---|
| public static TypeResolutionStrategy. | |
TypeResolutionStrategy.
| Modifier and Type | Method and Description |
|---|---|
| public < The least specific type of class loader this strategy can apply to. S extends ClassLoader> Map | Returns: A map of all type descriptions mapped to their representation as a loaded class.The dynamic type to initialize. dynamicType, S The class loader to use. classLoader, ClassLoadingStrategy<? super S> The class loading strategy to use. classLoadingStrategy)Loads and initializes a dynamic type. |
| public TypeInitializer | Returns: A type initializer to apply for performing the represented type resolution.The type initializer to potentially expend. typeInitializer)Injects a type initializer into the supplied type initializer, if applicable. |
| initialize | back to summary |
|---|---|
| public <S extends ClassLoader> Map Loads and initializes a dynamic type.
| |
| injectedInto | back to summary |
|---|---|
| public TypeInitializer injectedInto(TypeInitializer typeInitializer) Injects a type initializer into the supplied type initializer, if applicable. This way, a type resolution strategy is capable of injecting code into the generated class's initializer to inline the initialization.
| |