@PerLookup public class DuplicatePostProcessor extends Object implements PopulatorPostProcessor
It is often the case when using a classpath that the same jar file can appear on the path more than once. For example this is often done when patching. However, if this jar contains HK2 descriptor files in it, that can mean duplicate services that are not intended to be duplicated. This service removes all duplicate descriptors from the set to be added to HK2
| Constructor and Description |
|---|
DuplicatePostProcessor() |
| Modifier and Type | Method and Description |
|---|---|
DescriptorImpl |
process(ServiceLocator serviceLocator,
DescriptorImpl descriptorImpl)
This method can be used to alter the descriptor read in.
|
public DescriptorImpl process(ServiceLocator serviceLocator, DescriptorImpl descriptorImpl)
PopulatorPostProcessorprocess in interface PopulatorPostProcessorserviceLocator - the ServiceLocator being populated. Will not be nulldescriptorImpl - The descriptorImpl read from some external source. This
processor can modify this descriptor fullyCopyright © 2009-2014 Oracle Corporation. All Rights Reserved.