Module org.glassfish.hk2.core
Package org.glassfish.hk2.bootstrap.impl
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 Summary
ConstructorsConstructorDescriptionHk2LoaderPopulatorPostProcessor(ClassLoader classLoader) Creates the post-processor to use the given classloader -
Method Summary
Modifier and TypeMethodDescriptionorg.glassfish.hk2.utilities.DescriptorImplprocess(org.glassfish.hk2.api.ServiceLocator serviceLocator, org.glassfish.hk2.utilities.DescriptorImpl descriptorImpl) Uses the given classloader to load the class from the descriptor
-
Constructor Details
-
Hk2LoaderPopulatorPostProcessor
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:
processin interfaceorg.glassfish.hk2.api.PopulatorPostProcessor
-