Class JavaSPIExtensionLoader
- java.lang.Object
-
- org.jboss.arquillian.core.impl.loadable.JavaSPIExtensionLoader
-
- All Implemented Interfaces:
ExtensionLoader
public class JavaSPIExtensionLoader extends Object implements ExtensionLoader
ServiceLoader implementation that use META-INF/services/interface files to registered Services.- Version:
- $Revision: $
- Author:
- Aslak Knutsen
-
-
Constructor Summary
Constructors Constructor Description JavaSPIExtensionLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Collection<T>
all(ClassLoader classLoader, Class<T> serviceClass)
Collection<LoadableExtension>
load()
Map<Class<?>,Set<Class<?>>>
loadVetoed()
Map<Class<?>,Set<Class<?>>>
loadVetoed(ClassLoader classLoader)
This method first finds all files that are in claspath placed at META-INF/exclusions Each of this file has a name that represents the service type that needs to veto.
-
-
-
Method Detail
-
load
public Collection<LoadableExtension> load()
- Specified by:
load
in interfaceExtensionLoader
-
loadVetoed
public Map<Class<?>,Set<Class<?>>> loadVetoed()
- Specified by:
loadVetoed
in interfaceExtensionLoader
-
all
public <T> Collection<T> all(ClassLoader classLoader, Class<T> serviceClass)
-
loadVetoed
public Map<Class<?>,Set<Class<?>>> loadVetoed(ClassLoader classLoader)
This method first finds all files that are in claspath placed at META-INF/exclusions Each of this file has a name that represents the service type that needs to veto. The content of this file is a list of real implementations that you want to veto.- Returns:
- List of vetos
-
-