Class AgentBuilder.InjectionStrategy.UsingUnsafe.OfFactory

    • Constructor Detail

      • OfFactory

        public OfFactory​(ClassInjector.UsingUnsafe.Factory factory)
        Creates an injection strategy based on a factory.
        Parameters:
        factory - The factory to use for creating an unsafe injector.
    • Method Detail

      • resolve

        public ClassInjector resolve​(java.lang.ClassLoader classLoader,
                                     java.security.ProtectionDomain protectionDomain)
        Resolves the class injector to use for a given class loader and protection domain.
        Specified by:
        resolve in interface AgentBuilder.InjectionStrategy
        Parameters:
        classLoader - The class loader to use.
        protectionDomain - The protection domain to use.
        Returns:
        The class injector to use.