org.jvnet.hk2.osgiadapter
Class OsgiPopulatorPostProcessor
java.lang.Object
org.jvnet.hk2.osgiadapter.OsgiPopulatorPostProcessor
- All Implemented Interfaces:
- PopulatorPostProcessor
public class OsgiPopulatorPostProcessor
- extends Object
- implements PopulatorPostProcessor
A PopulatorPostProcessor that sets the HK2Loader prior to binding a descriptor
- Author:
- mason.taube@oracle.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.