Class ServiceDescriptorsInspector<D extends ServiceDescriptor,S>


  • public class ServiceDescriptorsInspector<D extends ServiceDescriptor,S>
    extends ServicesInspector<S>
    Inspects classpath for service descriptors. Service descriptors describe a particular service. Loading the service descriptor does not load the service itself (lazy loading).
    Author:
    Klaus Jaensch
    • Constructor Detail

      • ServiceDescriptorsInspector

        public ServiceDescriptorsInspector​(java.lang.Class<S> serviceClass)
        Create service inspector for interface class.
        Parameters:
        serviceClass - service class (same as parameter type S)
      • ServiceDescriptorsInspector

        public ServiceDescriptorsInspector()
    • Method Detail

      • getTypedServiceDescriptors

        public java.util.List<D> getTypedServiceDescriptors​(java.lang.Class<S> providerClass,
                                                            java.lang.Class<? extends ServiceDescriptor> serviceDescriptorClass,
                                                            java.lang.ClassLoader cl,
                                                            boolean loadImplementationClass)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getTypedServiceDescriptors

        public java.util.List<D> getTypedServiceDescriptors​(java.lang.Class<? extends ServiceDescriptor> serviceDescriptorClass)
                                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getTypedServiceDescriptors

        public java.util.List<D> getTypedServiceDescriptors()
                                                     throws java.io.IOException
        Throws:
        java.io.IOException