|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.virtuosotechnologies.lib.plugin.EditablePluginInfo
Editable implementation of PluginInfo.
This class is fully synchronized and thread-safe.
Constructor Summary | |
EditablePluginInfo(String name,
StringID version,
String initializerClassName,
URL pluginJar,
boolean forceUnique)
Constructor |
Method Summary | |
void |
addProvidedAPI(String apiName,
APIVersion version,
URL apiJar)
Add a provided API |
void |
addToPluginDescription(String description)
Add to the description of the plugin. |
void |
addToProvidedAPIDescription(String providedApiName,
String description)
Add to the description of a provided API. |
void |
addUsedAPI(String apiName,
APIVersion version,
boolean optional)
Add a used API |
String |
getDescriptionForProvidedAPI(String apiName)
Get the description for the given provided API. |
URL |
getJarForProvidedAPI(String apiName)
Get the Jar URL for the given API spec, or null if no jar is needed. |
String |
getPluginDescription()
Get the description of the plugin |
PluginID |
getPluginID()
Get the identifier of the plugin |
String |
getPluginInitializerClassName()
Get the name of the PluginInitializer implementation class |
URL |
getPluginJar()
Get the jar URL for the plugin. |
String |
getPluginShortDescription()
Get the short description of the plugin |
String[] |
getProvidedAPINames()
Get the provided API names |
String[] |
getUsedAPINames()
Get the used API names, both required and optional |
APIVersion |
getVersionForProvidedAPI(String apiName)
Get the version for the given provided API. |
APIVersion |
getVersionForUsedAPI(String apiName)
Get the version for the given used API. |
boolean |
isForcingUniqueness()
Returns true if this plugin wants to be the only version of itself installed. |
boolean |
isUsedAPIOptional(String apiName)
Is the given used API optional? |
void |
setPluginShortDescription(String description)
Sets the short description of the plugin |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EditablePluginInfo(String name, StringID version, String initializerClassName, URL pluginJar, boolean forceUnique)
name
- name of pluginversion
- version of plugininitializerClassName
- name of the PluginInitializer implementationpluginJar
- jar file for the plugin, or null if there is no jarMethod Detail |
public void addProvidedAPI(String apiName, APIVersion version, URL apiJar) throws IllegalPluginInfoException
apiName
- name of API to provideversion
- version of the API and implementationapiJar
- jar file for the API classes, or null if there is no jar
IllegalPluginInfoException
- the api name is already presentpublic void addUsedAPI(String apiName, APIVersion version, boolean optional) throws IllegalPluginInfoException
apiName
- name of API that is usedversion
- requested version of the APIoptional
- is the API optional
IllegalPluginInfoException
- the api name is already presentpublic void setPluginShortDescription(String description)
description
- description stringpublic void addToPluginDescription(String description)
description
- description stringpublic void addToProvidedAPIDescription(String providedApiName, String description) throws IllegalPluginInfoException
providedApiName
- name of provided APIdescription
- description string
IllegalPluginInfoException
public PluginID getPluginID()
getPluginID
in interface PluginInfo
public String getPluginDescription()
getPluginDescription
in interface PluginInfo
public String getPluginShortDescription()
getPluginShortDescription
in interface PluginInfo
public URL getPluginJar()
getPluginJar
in interface PluginInfo
public String getPluginInitializerClassName()
getPluginInitializerClassName
in interface PluginInfo
public boolean isForcingUniqueness()
isForcingUniqueness
in interface PluginInfo
public String[] getProvidedAPINames()
getProvidedAPINames
in interface PluginInfo
public String getDescriptionForProvidedAPI(String apiName)
getDescriptionForProvidedAPI
in interface PluginInfo
apiName
- name of a provided API
NullPointerException
- name not foundpublic APIVersion getVersionForProvidedAPI(String apiName)
getVersionForProvidedAPI
in interface PluginInfo
apiName
- name of a provided API
NullPointerException
- name not foundpublic URL getJarForProvidedAPI(String apiName)
getJarForProvidedAPI
in interface PluginInfo
apiName
- name of a provided API
NullPointerException
- name not foundpublic String[] getUsedAPINames()
getUsedAPINames
in interface PluginInfo
public APIVersion getVersionForUsedAPI(String apiName)
getVersionForUsedAPI
in interface PluginInfo
apiName
- name of a used API
NullPointerException
- name not foundpublic boolean isUsedAPIOptional(String apiName)
isUsedAPIOptional
in interface PluginInfo
apiName
- name of a used API
NullPointerException
- name not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |