Interface ServiceProviderContainer<T extends Archive<T>>

    • Method Detail

      • addAsServiceProviderAndClasses

        T addAsServiceProviderAndClasses​(Class<?> serviceInterface,
                                         Class<?>... serviceImpls)
                                  throws IllegalArgumentException
        Adds a META-INF/services/ServiceInterfaceName Asset and the classes related to the service to the archive.
        Parameters:
        serviceInterface - The Service Interface class
        serviceImpls - The Service Interface Implementations
        Returns:
        This virtual archive
        Throws:
        IllegalArgumentException - if serviceInterface is null
        IllegalArgumentException - if serviceImpls is null or contain null values