Interface LoaderService


  • public interface LoaderService
    Decouples OpenWebBeans from the Service-Loader approach. It allows to provide custom loaders with custom mechanisms as well as support for Java 1.5
    • Method Detail

      • load

        <T> List<T> load​(Class<T> serviceType)
        Loads all active implementations for the given service-type
        Type Parameters:
        T - current type
        Parameters:
        serviceType - base type of the services which should be loaded
        Returns:
        all active implementations for the given service-type
      • load

        <T> List<T> load​(Class<T> serviceType,
                         ClassLoader classLoader)
        Loads all active implementations for the given service-type
        Type Parameters:
        T - current type
        Parameters:
        serviceType - base type of the services which should be loaded
        classLoader -
        Returns:
        all active implementations for the given service-type