org.glassfish.hk2.bootstrap.impl
Class Hk2LoaderPopulatorPostProcessor
java.lang.Object
org.glassfish.hk2.bootstrap.impl.Hk2LoaderPopulatorPostProcessor
- All Implemented Interfaces:
- PopulatorPostProcessor
public class Hk2LoaderPopulatorPostProcessor
- extends Object
- implements PopulatorPostProcessor
A Simple PopulatorPostProcessor that uses the given classloader to override default
HK2Loader behavior
- Author:
- mtaube
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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()
process
public DescriptorImpl process(DescriptorImpl descriptorImpl)
- Uses the given classloader to load the class from the descriptor
- Specified by:
process
in interface PopulatorPostProcessor
- Parameters:
descriptorImpl
- The descriptorImpl read from some external source. This
processor can modify this descriptor fully.
- Returns:
- A descriptors to be added to the system. If this returns non-null
the descriptor will be added to the system
If this returns null then no descriptor will be added to the system.
setServiceLocator
public void setServiceLocator(ServiceLocator serviceLocator)
- Specified by:
setServiceLocator
in interface PopulatorPostProcessor
Copyright © 2013 Oracle Corporation. All Rights Reserved.