geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r696212 - in /geronimo/gshell/trunk: gshell-application/src/main/java/org/apache/geronimo/gshell/application/plugin/ gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/
Date Wed, 17 Sep 2008 09:20:26 GMT
Author: jdillon
Date: Wed Sep 17 02:20:24 2008
New Revision: 696212

URL: http://svn.apache.org/viewvc?rev=696212&view=rev
Log:
Expose some more API for the PluginManager

Modified:
    geronimo/gshell/trunk/gshell-application/src/main/java/org/apache/geronimo/gshell/application/plugin/PluginManager.java
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java

Modified: geronimo/gshell/trunk/gshell-application/src/main/java/org/apache/geronimo/gshell/application/plugin/PluginManager.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-application/src/main/java/org/apache/geronimo/gshell/application/plugin/PluginManager.java?rev=696212&r1=696211&r2=696212&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-application/src/main/java/org/apache/geronimo/gshell/application/plugin/PluginManager.java
(original)
+++ geronimo/gshell/trunk/gshell-application/src/main/java/org/apache/geronimo/gshell/application/plugin/PluginManager.java
Wed Sep 17 02:20:24 2008
@@ -19,6 +19,8 @@
 
 package org.apache.geronimo.gshell.application.plugin;
 
+import java.util.Set;
+
 /**
  * Provides the interface to manage plugins.
  *
@@ -26,4 +28,7 @@
  */
 public interface PluginManager
 {
+    Set<Plugin> getPlugins();
+
+    void loadPlugin(final org.apache.geronimo.gshell.model.application.Plugin artifact) throws
Exception;
 }
\ No newline at end of file

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java?rev=696212&r1=696211&r2=696212&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/plugin/PluginManagerImpl.java
Wed Sep 17 02:20:24 2008
@@ -93,7 +93,11 @@
             }
         });
     }
-    
+
+    public Set<org.apache.geronimo.gshell.application.plugin.Plugin> getPlugins() {
+        return plugins;
+    }
+
     private void loadPlugins(final Application application) {
         assert application != null;
 
@@ -111,7 +115,7 @@
         }
     }
 
-    private void loadPlugin(final Plugin artifact) throws Exception {
+    public void loadPlugin(final Plugin artifact) throws Exception {
         assert artifact != null;
 
         log.debug("Loading plugin: {}", artifact.getId());



Mime
View raw message