Interface ServiceProviderBuilder<T>


  • public interface ServiceProviderBuilder<T>
    • Method Detail

      • build

        ServiceProvider<T> build()
        Allocate a new service provider based on the current builder settings
        Returns:
        provider
      • serviceName

        ServiceProviderBuilder<T> serviceName​(java.lang.String serviceName)
        required - set the name of the service to be provided
        Parameters:
        serviceName - the name of the service
        Returns:
        this
      • threadFactory

        ServiceProviderBuilder<T> threadFactory​(java.util.concurrent.ThreadFactory threadFactory)
        optional - the thread factory to use for creating internal threads
        Parameters:
        threadFactory - factory to use
        Returns:
        this
      • additionalFilter

        ServiceProviderBuilder<T> additionalFilter​(InstanceFilter<T> filter)
        Add an instance filter. NOTE: this does not remove previously added filters. i.e. a l;ist is created of all added filters. Filters are called in the order they were added.
        Parameters:
        filter - filter to add
        Returns:
        this