Package kos.api

Class ImplementationLoader.SPIImplementationLoader

    • Constructor Detail

      • SPIImplementationLoader

        public SPIImplementationLoader()
    • Method Detail

      • instancesExposedAs

        public <T> Iterable<T> instancesExposedAs​(Class<T> interfaceType)
        Description copied from interface: ImplementationLoader
        Loads classes exposed by the given interfaceType.
        Specified by:
        instancesExposedAs in interface ImplementationLoader
        Type Parameters:
        T - same type as interfaceType
        Parameters:
        interfaceType - an abstract class or interface in which concrete implementations is expected to be loaded
        Returns:
        found implementations or empty Iterable if none was found.