org.glassfish.hk2.bootstrap
Interface PopulatorPostProcessor

All Known Implementing Classes:
ContextDuplicatePostProcessor, Hk2LoaderPopulatorPostProcessor, OsgiPopulatorPostProcessor

@Contract
public interface PopulatorPostProcessor

Author:
jwells, mason.taube@oracle.com

Method Summary
 DescriptorImpl process(DescriptorImpl descriptorImpl)
          This method can be used to alter the descriptor read in.
 void setServiceLocator(ServiceLocator serviceLocator)
           
 

Method Detail

process

DescriptorImpl process(DescriptorImpl descriptorImpl)
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.

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

void setServiceLocator(ServiceLocator serviceLocator)


Copyright © 2013 Oracle Corporation. All Rights Reserved.