Class DependencyInjectionServiceLoader

    • Constructor Detail

      • DependencyInjectionServiceLoader

        public DependencyInjectionServiceLoader()
    • Method Detail

      • createAlternativeImplementation

        @Nullable
        protected <T> T createAlternativeImplementation​(Class<T> service)
        Description copied from class: SimpleServiceLoader
        Creates an implementation for the given service and save it in the cache.
        Overrides:
        createAlternativeImplementation in class SimpleServiceLoader
        Type Parameters:
        T - the service type.
        Parameters:
        service - the service.
        Returns:
        a new instance of the given service or null.
      • getImplementationName

        @Nullable
        protected abstract String getImplementationName​(String serviceName)
        Gets the implementation class name for the given service name.
        Parameters:
        serviceName - the service name.
        Returns:
        the implementation class name, or null if none.