Interface ServiceProviderContainer<T extends Archive<T>>

    • Method Detail

      • addAsServiceProviderAndClasses

        T addAsServiceProviderAndClasses​(java.lang.Class<?> serviceInterface,
                                         java.lang.Class<?>... serviceImpls)
                                  throws java.lang.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:
        java.lang.IllegalArgumentException - if serviceInterface is null
        java.lang.IllegalArgumentException - if serviceImpls is null or contain null values