org.crsh.plugin
Class ServiceLoaderDiscovery
java.lang.Object
org.crsh.plugin.ServiceLoaderDiscovery
- All Implemented Interfaces:
- PluginDiscovery
- Direct Known Subclasses:
- SpringPluginDiscovery
public class ServiceLoaderDiscovery
- extends Object
- implements PluginDiscovery
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final Logger log
- .
classLoader
private final ClassLoader classLoader
- .
ServiceLoaderDiscovery
public ServiceLoaderDiscovery(ClassLoader classLoader)
throws NullPointerException
- Create a new instance.
- Parameters:
classLoader
- the loader for the discovery
- Throws:
NullPointerException
- if the loader argument is null
getPlugins
public Iterable<CRaSHPlugin<?>> getPlugins()
- Description copied from interface:
PluginDiscovery
- Returns the available plugins.
- Specified by:
getPlugins
in interface PluginDiscovery
- Returns:
- the plugins
Copyright © 2014 eXo Platform SAS. All Rights Reserved.