org.apache.webbeans.spi
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 Summary
<T> List<T>
load(Class<T> serviceType)
          Loads all active implementations for the given service-type
<T> List<T>
load(Class<T> serviceType, ClassLoader classLoader)
          Loads all active implementations for the given service-type
 

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


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.