@Internal @ThreadSafe public class DefaultPluginManager extends Object implements PluginManager
PluginManager
.Constructor and Description |
---|
DefaultPluginManager(Collection<PluginDescriptor> pluginDescriptors,
ClassLoader parentClassLoader,
String[] alwaysParentFirstPatterns) |
DefaultPluginManager(Collection<PluginDescriptor> pluginDescriptors,
String[] alwaysParentFirstPatterns) |
Modifier and Type | Method and Description |
---|---|
<P> Iterator<P> |
load(Class<P> service)
Returns in iterator over all available implementations of the given service interface (SPI)
in all the plugins known to this plugin manager instance.
|
String |
toString() |
public DefaultPluginManager(Collection<PluginDescriptor> pluginDescriptors, String[] alwaysParentFirstPatterns)
public DefaultPluginManager(Collection<PluginDescriptor> pluginDescriptors, ClassLoader parentClassLoader, String[] alwaysParentFirstPatterns)
public <P> Iterator<P> load(Class<P> service)
PluginManager
load
in interface PluginManager
P
- Type of the requested plugin service.service
- the service interface (SPI) for which implementations are requested.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.