public class PluginCatalog
extends java.lang.Object
| Constructor and Description |
|---|
PluginCatalog(java.util.List<java.io.File> roots)
Catalogs all of the plugins in the given roots.
|
| Modifier and Type | Method and Description |
|---|---|
org.osgi.framework.Version |
getVersionFor(java.lang.String plugin)
Returns the version for the given plugin.
|
boolean |
isSupportedPlatform(java.lang.String plugin)
Returns true if the given plugin is for a supported platform.
|
void |
resolveWithFirst(java.lang.String pluginName,
java.util.List<java.lang.String> versions)
If the given plugin has multiple versions, and those versions match the versions passed in, it will resolve them with the first version in this list.
|
void |
resolveWithFirst(java.lang.String pluginName,
java.lang.String... versions)
If the given plugin has multiple versions, and those versions match the versions passed in, it will resolve them with the first version in this list.
|
java.lang.String |
toString() |
public PluginCatalog(java.util.List<java.io.File> roots)
public void resolveWithFirst(java.lang.String pluginName,
java.lang.String... versions)
public void resolveWithFirst(java.lang.String pluginName,
java.util.List<java.lang.String> versions)
public boolean isSupportedPlatform(java.lang.String plugin)
public org.osgi.framework.Version getVersionFor(java.lang.String plugin)
public java.lang.String toString()
toString in class java.lang.Object