Class InterceptorCapabilityProvider

  • All Implemented Interfaces:
    org.wso2.carbon.kernel.startupresolver.CapabilityProvider

    public class InterceptorCapabilityProvider
    extends java.lang.Object
    implements org.wso2.carbon.kernel.startupresolver.CapabilityProvider
    This class signals Startup Order Resolver module in kernel that this bundle provides two services of type Interceptor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCount()
      Returns the count of Interceptor OSGi services registered by this bundle.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InterceptorCapabilityProvider

        public InterceptorCapabilityProvider()
    • Method Detail

      • getCount

        public int getCount()
        Returns the count of Interceptor OSGi services registered by this bundle.

        This bundle registers two Interceptors 1. HTTPMonitoringInterceptor 2. MetricsInterceptor But here we return count as one, due to a bug in the startup launcher in Kernel.

        Specified by:
        getCount in interface org.wso2.carbon.kernel.startupresolver.CapabilityProvider
        Returns:
        count of Interceptor services registered by this bundle.