Class Hk2LoaderPopulatorPostProcessor

java.lang.Object
org.glassfish.hk2.bootstrap.impl.Hk2LoaderPopulatorPostProcessor
All Implemented Interfaces:
org.glassfish.hk2.api.PopulatorPostProcessor

public class Hk2LoaderPopulatorPostProcessor extends Object implements org.glassfish.hk2.api.PopulatorPostProcessor
A Simple PopulatorPostProcessor that uses the given classloader to override default HK2Loader behavior
Author:
mtaube
  • Constructor Details

    • Hk2LoaderPopulatorPostProcessor

      public Hk2LoaderPopulatorPostProcessor(ClassLoader classLoader)
      Creates the post-processor to use the given classloader
      Parameters:
      classLoader - The classloader to use, may not be null
    • Hk2LoaderPopulatorPostProcessor

      public Hk2LoaderPopulatorPostProcessor()
  • Method Details

    • process

      public org.glassfish.hk2.utilities.DescriptorImpl process(org.glassfish.hk2.api.ServiceLocator serviceLocator, org.glassfish.hk2.utilities.DescriptorImpl descriptorImpl)
      Uses the given classloader to load the class from the descriptor
      Specified by:
      process in interface org.glassfish.hk2.api.PopulatorPostProcessor