Class TypeResolutionStrategy.Active.Resolved

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Resolved​(NexusAccessor nexusAccessor, int identification)
      Creates a new resolved active type resolution strategy.
    • Constructor Detail

      • Resolved

        protected Resolved​(NexusAccessor nexusAccessor,
                           int identification)
        Creates a new resolved active type resolution strategy.
        Parameters:
        nexusAccessor - The nexus accessor to use.
        identification - The id used for identifying the loaded type initializer that was added to the Nexus.
    • Method Detail

      • injectedInto

        public TypeInitializer injectedInto​(TypeInitializer typeInitializer)
        Description copied from interface: TypeResolutionStrategy.Resolved
        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.
        Specified by:
        injectedInto in interface TypeResolutionStrategy.Resolved
        Parameters:
        typeInitializer - The type initializer to potentially expend.
        Returns:
        A type initializer to apply for performing the represented type resolution.
      • initialize

        public <S extends java.lang.ClassLoader> java.util.Map<TypeDescription,​java.lang.Class<?>> initialize​(DynamicType dynamicType,
                                                                                                                    S classLoader,
                                                                                                                    ClassLoadingStrategy<? super S> classLoadingStrategy)
        Description copied from interface: TypeResolutionStrategy.Resolved
        Loads and initializes a dynamic type.
        Specified by:
        initialize in interface TypeResolutionStrategy.Resolved
        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.