Class ClassInjector.AbstractBase

    • Constructor Detail

      • AbstractBase

        public AbstractBase()
    • Method Detail

      • inject

        public java.util.Map<TypeDescription,​java.lang.Class<?>> inject​(java.util.Set<? extends TypeDescription> types,
                                                                              ClassFileLocator classFileLocator)
        Injects the given types into the represented class loader.
        Specified by:
        inject in interface ClassInjector
        Parameters:
        types - The types to load via injection.
        classFileLocator - The class file locator to use for resolving binary representations.
        Returns:
        The loaded types that were passed as arguments.
      • inject

        public java.util.Map<TypeDescription,​java.lang.Class<?>> inject​(java.util.Map<? extends TypeDescription,​byte[]> types)
        Injects the given types into the represented class loader.
        Specified by:
        inject in interface ClassInjector
        Parameters:
        types - The types to load via injection.
        Returns:
        The loaded types that were passed as arguments.
      • injectRaw

        public java.util.Map<java.lang.String,​java.lang.Class<?>> injectRaw​(java.util.Map<java.lang.String,​byte[]> types)
        Injects the given types into the represented class loader.
        Specified by:
        injectRaw in interface ClassInjector
        Parameters:
        types - The names of the type to load via injection.
        Returns:
        The loaded types that were passed as arguments.