|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crsh.plugin.ServiceLoaderDiscovery
public class ServiceLoaderDiscovery
An implementation of PluginDiscovery
based on ServiceLoader
.
Field Summary | |
---|---|
private ClassLoader |
classLoader
. |
private static org.slf4j.Logger |
log
. |
Constructor Summary | |
---|---|
ServiceLoaderDiscovery(ClassLoader classLoader)
Create a new instance. |
Method Summary | |
---|---|
Iterable<CRaSHPlugin<?>> |
getPlugins()
Returns the available plugins. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.slf4j.Logger log
private final ClassLoader classLoader
Constructor Detail |
---|
public ServiceLoaderDiscovery(ClassLoader classLoader) throws NullPointerException
classLoader
- the loader for the discovery
NullPointerException
- if the loader argument is nullMethod Detail |
---|
public Iterable<CRaSHPlugin<?>> getPlugins()
PluginDiscovery
getPlugins
in interface PluginDiscovery
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |