org.crsh.plugin
Class ServiceLoaderDiscovery

java.lang.Object
  extended by org.crsh.plugin.ServiceLoaderDiscovery
All Implemented Interfaces:
PluginDiscovery

public class ServiceLoaderDiscovery
extends Object
implements PluginDiscovery

Author:
Julien Viet

Constructor Summary
ServiceLoaderDiscovery(ClassLoader classLoader)
          Create a new instance.
 
Method Summary
 Iterable<CRaSHPlugin<?>> getPlugins()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

getPlugins

public Iterable<CRaSHPlugin<?>> getPlugins()
Specified by:
getPlugins in interface PluginDiscovery


Copyright © 2011 eXo Platform SAS. All Rights Reserved.