public class DriverUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DriverUtil.PrologEngineDriverComparator |
static class |
DriverUtil.PrologEngineTypeComparator |
Constructor and Description |
---|
DriverUtil() |
Modifier and Type | Method and Description |
---|---|
static Set<Class<? extends PrologEngineDriver>> |
findDriverClasses(Collection<ClassLoader> classLoaders,
Collection<URL> urls)
Answers a set with all the Prolog drivers found in the given urls.
|
static Set<PrologEngineDriver> |
findDrivers() |
static Set<PrologEngineDriver> |
findDrivers(Collection<ClassLoader> classLoaders) |
static Set<PrologEngineDriver> |
findDrivers(Collection<ClassLoader> classLoaders,
Collection<URL> urls) |
static <T extends PrologEngineDriver> |
groupByLibraryName(Iterable<T> drivers)
Returns a map where its key are bridge library names.
|
static <T extends PrologEngineDriver> |
groupByPrologEngineName(Iterable<T> drivers)
Returns a map where its key are Prolog engine names.
|
static void |
orderByLibraryName(List<? extends PrologEngineDriver> drivers)
Order alphabetically a list of drivers.
|
static void |
registerListener(DriverStateListener listener,
Iterable<? extends PrologEngineDriver> drivers) |
static void |
reportFoundDrivers() |
public static void reportFoundDrivers()
public static void registerListener(DriverStateListener listener, Iterable<? extends PrologEngineDriver> drivers)
public static Set<PrologEngineDriver> findDrivers()
public static Set<PrologEngineDriver> findDrivers(Collection<ClassLoader> classLoaders)
public static Set<PrologEngineDriver> findDrivers(Collection<ClassLoader> classLoaders, Collection<URL> urls)
public static Set<Class<? extends PrologEngineDriver>> findDriverClasses(Collection<ClassLoader> classLoaders, Collection<URL> urls)
urls
- public static <T extends PrologEngineDriver> Map<String,com.google.common.collect.Multimap<String,T>> groupByPrologEngineName(Iterable<T> drivers)
configurations
- public static <T extends PrologEngineDriver> Map<String,com.google.common.collect.Multimap<String,T>> groupByLibraryName(Iterable<T> drivers)
configurations
- public static void orderByLibraryName(List<? extends PrologEngineDriver> drivers)
drivers
- Copyright © 2014. All rights reserved.