Interface ClassInjector

    • Field Detail

      • SUPPRESS_ACCESS_CHECKS

        static final Permission SUPPRESS_ACCESS_CHECKS
        A permission for the suppressAccessChecks permission.
      • ALLOW_EXISTING_TYPES

        static final boolean ALLOW_EXISTING_TYPES
        Determines the default behavior for type injections when a type is already loaded.
        See Also:
        Constant Field Values
    • Method Detail

      • isAlive

        boolean isAlive()
        Indicates if this class injector is available on the current VM.
        Returns:
        true if this injector is available on the current VM.
      • inject

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

        Map<String,​Class<?>> injectRaw​(Map<? extends String,​byte[]> types)
        Injects the given types into the represented class loader using a mapping from name to binary representation.
        Parameters:
        types - The types to load via injection.
        Returns:
        The loaded types that were passed as arguments.