Package net.bytebuddy.dynamic
Interface TypeResolutionStrategy.Resolved
-
- All Known Implementing Classes:
TypeResolutionStrategy.Active.Resolved,TypeResolutionStrategy.Disabled,TypeResolutionStrategy.Lazy,TypeResolutionStrategy.Passive
- Enclosing interface:
- TypeResolutionStrategy
public static interface TypeResolutionStrategy.ResolvedA resolvedTypeResolutionStrategy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <S extends java.lang.ClassLoader>
java.util.Map<TypeDescription,java.lang.Class<?>>initialize(DynamicType dynamicType, S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)Loads and initializes a dynamic type.TypeInitializerinjectedInto(TypeInitializer typeInitializer)Injects a type initializer into the supplied type initializer, if applicable.
-
-
-
Method Detail
-
injectedInto
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.- Parameters:
typeInitializer- The type initializer to potentially expend.- Returns:
- A type initializer to apply for performing the represented type resolution.
-
initialize
<S extends java.lang.ClassLoader> java.util.Map<TypeDescription,java.lang.Class<?>> initialize(DynamicType dynamicType, @MaybeNull S classLoader, ClassLoadingStrategy<? super S> classLoadingStrategy)
Loads and initializes a dynamic type.- Type Parameters:
S- The least specific type of class loader this strategy can apply to.- Parameters:
dynamicType- The dynamic type to initialize.classLoader- The class loader to use.classLoadingStrategy- The class loading strategy to use.- Returns:
- A map of all type descriptions mapped to their representation as a loaded class.
-
-