com.sun.enterprise.module.bootstrap
Class ContextDuplicatePostProcessor
java.lang.Object
com.sun.enterprise.module.bootstrap.ContextDuplicatePostProcessor
- All Implemented Interfaces:
- PopulatorPostProcessor
@PerLookup
public class ContextDuplicatePostProcessor
- extends Object
- implements PopulatorPostProcessor
This class will weed out and duplicate implementations of anything populated into the
locator. This service must be put into the ServiceLocator prior to populating from the
inhabitant files, and hence is not annotated with @Service
- Author:
- jwells
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextDuplicatePostProcessor
public ContextDuplicatePostProcessor()
process
public DescriptorImpl process(DescriptorImpl descriptorImpl)
- Description copied from interface:
PopulatorPostProcessor
- This method can be used to alter the descriptor read in. It can also
add descriptors, or remove the descriptor (by returning an empty list).
If this method returns null, then the passed in descriptor will be used.
Any alterations made to this descriptor in that case will remain in effect.
If this method returns a list the descriptors from the list will be added
to the service locator, and not the incoming descriptorImpl. However, the
incoming descriptorImpl may be a member of the list.
- 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.