org.crsh.plugin
Class ServiceLoaderDiscovery
java.lang.Object
org.crsh.plugin.ServiceLoaderDiscovery
- All Implemented Interfaces:
- PluginDiscovery
public class ServiceLoaderDiscovery
- extends Object
- implements PluginDiscovery
- Author:
- Julien Viet
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final org.slf4j.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()
- Specified by:
getPlugins in interface PluginDiscovery
Copyright © 2012 eXo Platform SAS. All Rights Reserved.