Constructor and Description |
---|
FactoryUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
discoverFactories(ClassLoader classLoader,
Class<T> klass)
Discover factories.
|
static <T extends Factory> |
discoverFactory(ClassLoader classLoader,
Class<T> factoryClass,
String identifier)
Discovers a factory using the given factory base class and identifier.
|
static <T extends Factory> |
discoverIdentifiers(ClassLoader classLoader,
Class<T> factoryClass) |
public static <T extends Factory> T discoverFactory(ClassLoader classLoader, Class<T> factoryClass, String identifier)
public static <T extends Factory> List<String> discoverIdentifiers(ClassLoader classLoader, Class<T> factoryClass)
public static <T> List<T> discoverFactories(ClassLoader classLoader, Class<T> klass)
T
- the type of the factoryclassLoader
- the class loaderklass
- the klassCopyright © 2023–2025 The Apache Software Foundation. All rights reserved.