PopulatorPostProcessor that adds an HK2Loader
based on a ClassLoader. This is useful for those writing ClassLoader
based plugins that need to ensure their descriptors are loaded with
the given ClassLoader
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final HK2Loader |
| Access | Constructor and Description |
|---|---|
| public | ClassLoaderPostProcessor(ClassLoader
The classloader to use when classloading the added services classloader, boolean If true then this will overwrite any value in the descriptor. If false then if
the descriptor will only be changed if the HK2Loader field of the descriptor is not
already set force)Creates a |
| public | ClassLoaderPostProcessor(final ClassLoader
The classloader to use when classloading the added services classloader)Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public DescriptorImpl | process(ServiceLocator serviceLocator, DescriptorImpl descriptorImpl)
Implements org. This method can be used to alter the descriptor read in. It can also add descriptors, or remove the descriptor (by returning null). |
| force | back to summary |
|---|---|
| private final boolean force | |
| loader | back to summary |
|---|---|
| private final HK2Loader loader | |
| ClassLoaderPostProcessor | back to summary |
|---|---|
| public ClassLoaderPostProcessor(ClassLoader classloader, boolean force) Creates a
| |
| ClassLoaderPostProcessor | back to summary |
|---|---|
| public ClassLoaderPostProcessor(final ClassLoader classloader) Creates a
| |
| process | back to summary |
|---|---|
| public DescriptorImpl process(ServiceLocator serviceLocator, DescriptorImpl descriptorImpl) Implements org. Doc from org. This method can be used to alter the descriptor read in. It can also add descriptors, or remove the descriptor (by returning null). Any alterations made to the descriptor passed in will remain in effect.
| |