Top Description Methods
org.glassfish.hk2.api

public Interface PopulatorPostProcessor

Known Direct Implementers
org.glassfish.hk2.utilities.ClassLoaderPostProcessor, org.glassfish.hk2.utilities.DuplicatePostProcessor
Imports
org.glassfish.hk2.utilities.DescriptorImpl

This interface allows the customization of services read in from an external source. For example, specific classloaders can be added, or duplicate descriptors can be removed.
Author
jwells

Method Summary

Modifier and TypeMethod and Description
public DescriptorImpl

Returns:

The descriptor to be added to the system. If this returns null then the descriptorImpl passed in will NOT be added to the system. Implementations may return the descriptor passed in, but do not have to. The descriptor added to the system will be the one returned from this method
process
(ServiceLocator
the ServiceLocator being populated. Will not be null
serviceLocator
,
DescriptorImpl
The descriptorImpl read from some external source. This processor can modify this descriptor fully
descriptorImpl
)

This method can be used to alter the descriptor read in. It can also add descriptors, or remove the descriptor (by returning null).

Method Detail

processback to summary
public DescriptorImpl process(ServiceLocator serviceLocator, DescriptorImpl descriptorImpl)

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.

Parameters
serviceLocator:ServiceLocator

the ServiceLocator being populated. Will not be null

descriptorImpl:DescriptorImpl

The descriptorImpl read from some external source. This processor can modify this descriptor fully

Returns:DescriptorImpl

The descriptor to be added to the system. If this returns null then the descriptorImpl passed in will NOT be added to the system. Implementations may return the descriptor passed in, but do not have to. The descriptor added to the system will be the one returned from this method