public class PartitionServerServiceInterceptorArranger
Invoked by HK2 to order interceptors.
This implementation deals with interceptors associated with server services so that the
interceptors appear in order of creation (corresponding to
their start-up order). Managing the order in the list controls the order in which HK2
will invoke the interceptors.
We want the server services-related interceptors for the PartitionManagerService invoked
in an order that respects the related services' run levels and inter-service injection. This
ordering service performs a one-time analysis of all server services and arranges them in this way.
The modifyMethodInterceptors method, invoked by HK2 once per intercepted method, finds the
interceptors that are related to server services and reorders them among themselves
according to the ordering of corresponding server services.