/** * Gets all the {@link Plugin}s discovered so far. * * <p> * A plugins are enumerated when this method is called for the first time, * by taking {@link #classpath} into account. That means * "-cp plugin.jar" has to come before you specify options to enable it. */ public List<Plugin> getAllPlugins() { if(allPlugins==null) { allPlugins = new ArrayList<Plugin>(); allPlugins.addAll(Arrays.asList(findServices(Plugin.class, getClassLoader()))); } return allPlugins; }
/** * Gets all the {@link Plugin}s discovered so far. * * <p> * A plugins are enumerated when this method is called for the first time, * by taking {@link #classpath} into account. That means * "-cp plugin.jar" has to come before you specify options to enable it. */ public List<Plugin> getAllPlugins() { if(allPlugins==null) { allPlugins = new ArrayList<Plugin>(); allPlugins.addAll(Arrays.asList(findServices(Plugin.class, getClassLoader()))); } return allPlugins; }
/** * Gets all the {@link Plugin}s discovered so far. * * <p> * A plugins are enumerated when this method is called for the first time, * by taking {@link #classpath} into account. That means * "-cp plugin.jar" has to come before you specify options to enable it. */ public List<Plugin> getAllPlugins() { if(allPlugins==null) { allPlugins = new ArrayList<Plugin>(); allPlugins.addAll(Arrays.asList(findServices(Plugin.class, getClassLoader()))); } return allPlugins; }
/** * Gets all the {@link Plugin}s discovered so far. * * <p> * A plugins are enumerated when this method is called for the first time, * by taking {@link #classpath} into account. That means * "-cp plugin.jar" has to come before you specify options to enable it. */ public List<Plugin> getAllPlugins() { if(allPlugins==null) { allPlugins = new ArrayList<Plugin>(); allPlugins.addAll(Arrays.asList(findServices(Plugin.class, getClassLoader()))); } return allPlugins; }