Revision: 3699
Author:
carl....@solertium.com
Date: Tue May 18 02:14:29 2010
Log: get class loader metadata
http://code.google.com/p/gogoego/source/detail?r=3699
Modified:
/trunk/modules/org.gogoego.api/src/org/gogoego/api/plugins/GoGoEgo.java
/trunk/modules/org.gogoego.api/src/org/gogoego/api/plugins/GoGoEgoAPI.java
=======================================
--- /trunk/modules/org.gogoego.api/src/org/gogoego/api/plugins/GoGoEgo.java
Tue Nov 10 11:11:33 2009
+++ /trunk/modules/org.gogoego.api/src/org/gogoego/api/plugins/GoGoEgo.java
Tue May 18 02:14:29 2010
@@ -16,6 +16,7 @@
package org.gogoego.api.plugins;
import java.io.File;
+import java.util.Map;
import java.util.Properties;
import org.gogoego.api.applications.GoGoEgoApplication;
@@ -84,6 +85,10 @@
private GoGoEgo(GoGoBackboneAPI backbone) {
this.backbone = backbone;
}
+
+ public Map<String, String> getClassLoaderPluginMetadata(String
bundleName) {
+ return backbone.getClassLoaderBroker().getMetadata().get(bundleName);
+ }
public ClassLoader getClassLoaderPlugin(String bundleName) {
return backbone.getClassLoaderBroker().getPlugin(bundleName);
=======================================
---
/trunk/modules/org.gogoego.api/src/org/gogoego/api/plugins/GoGoEgoAPI.java
Fri Oct 23 14:54:10 2009
+++
/trunk/modules/org.gogoego.api/src/org/gogoego/api/plugins/GoGoEgoAPI.java
Tue May 18 02:14:29 2010
@@ -16,6 +16,7 @@
package org.gogoego.api.plugins;
import java.io.File;
+import java.util.Map;
import org.gogoego.api.applications.GoGoEgoApplication;
import org.gogoego.api.applications.ServerApplicationAPI;
@@ -78,6 +79,14 @@
*/
public ClassLoader getClassLoaderPlugin(String bundleName, String
minimumVersion);
+ /**
+ * Retrieve metadata about a particular ClassLoader plugin, such
+ * as the author, full name, and version.
+ * @param bundleName the name of the OSGi bundle
+ * @return the metadata for the plugin, or null if it can not be found.
+ */
+ public Map<String, String> getClassLoaderPluginMetadata(String
bundleName);
+
/**
* Retrieve an image manipulator helper, which provides access to
* focused, mundance operations for resizing images. For more
--
You received this message because you are subscribed to the Google Groups "GoGoEgo" group.
To post to this group, send email to
gog...@googlegroups.com.
To unsubscribe from this group, send email to
gogoego+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/gogoego?hl=en.