org.crsh.plugin
Class SimplePluginDiscovery

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

public class SimplePluginDiscovery
extends Object
implements PluginDiscovery

Author:
Julien Viet

Constructor Summary
SimplePluginDiscovery()
           
 
Method Summary
 SimplePluginDiscovery add(CRaSHPlugin<?> plugin)
          Add a plugin.
 Iterable<CRaSHPlugin<?>> getPlugins()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimplePluginDiscovery

public SimplePluginDiscovery()
Method Detail

add

public SimplePluginDiscovery add(CRaSHPlugin<?> plugin)
                          throws NullPointerException
Add a plugin.

Parameters:
plugin - the plugin
Returns:
this object
Throws:
NullPointerException - if the plugin is null

getPlugins

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


Copyright © 2011 eXo Platform SAS. All Rights Reserved.