@Internal @ThreadSafe public class PluginManager extends Object
Constructor and Description |
---|
PluginManager(Collection<PluginDescriptor> pluginDescriptors,
ClassLoader parentClassLoader,
String[] alwaysParentFirstPatterns) |
PluginManager(Collection<PluginDescriptor> pluginDescriptors,
String[] alwaysParentFirstPatterns) |
Modifier and Type | Method and Description |
---|---|
<P extends Plugin> |
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 PluginManager(Collection<PluginDescriptor> pluginDescriptors, String[] alwaysParentFirstPatterns)
public PluginManager(Collection<PluginDescriptor> pluginDescriptors, ClassLoader parentClassLoader, String[] alwaysParentFirstPatterns)
public <P extends Plugin> Iterator<P> load(Class<P> service)
P
- Type of the requested plugin service.service
- the service interface (SPI) for which implementations are requested.Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.