Class PluginDescriptor
java.lang.Object
net.thevpc.common.prs.plugin.PluginDescriptor
- All Implemented Interfaces:
Serializable, Comparable<PluginDescriptor>
- Author:
- Taha Ben Salah (taha.bensalah@gmail.com) %creationtime 30 dec. 2006 21:15:49
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor, needed for Reflection (XmlDeserializer)PluginDescriptor(String className, URL pluginURL, boolean system) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDependencies(PluginDependency... dependencies) voidvoidaddPropertyChangeListener(String property, PropertyChangeListener listener) voidaddResources(PluginDescriptor other) voidaddReverseDependencies(String... dependencies) intbooleanURL[]longgetCRC()getDependency(String id) getId()Plugin IdentifiergetImplementationFactories(String contract) getImplementations(String contract) getLog()URL[]URL[]String[]longgetTitle()getUUID()A unique identifier that identifies this plugin descriptor according to id, version and CRC Actually it corresponds tointhashCode()booleanbooleanbooleanisLoaded()booleanisSystem()booleanbooleanisValid()voidvoidremovePropertyChangeListener(String property, PropertyChangeListener listener) voidsetApplicationVersion(VersionInterval applicationVersion) voidvoidsetBinarySize(long binarySize) voidsetBinaryUrl(String binaryUrl) voidsetCategory(String category) voidsetClassLoader(ClassLoader classLoader) voidsetContributors(String contributors) voidvoidsetDependencies(PluginDependency[] dependencies) voidsetDescription(String description) voidsetDynamicLoading(boolean dynamicLoading) voidsetForUninstall(boolean forUninstall) voidsetHomeUrl(String homeUrl) voidvoidsetImplementationFactories(Map<String, Set<String>> implementations) voidsetImplementations(Map<String, Set<String>> implementations) voidsetInterfaces(Set<String> interfaces) voidsetLoaded(boolean valid) voidsetLog(TLoadableLog log) voidsetRepository(PluginRepository repository) voidsetResources(URL[] resources) voidsetReverseDependencies(String[] reverseDependencies) voidsetSoftClassLoader(SoftClassLoader softClassLoader) voidsetSourceSize(long sourceSize) voidsetSourceUrl(String sourceUrl) voidsetStatus(PluginDescriptor.Status status) voidvoidsetUpdated(boolean updated) voidsetUrlCacheManager(UrlCacheManager urlCacheManager) voidsetValid(boolean valid) voidsetVersion(Version version) voidsetWorkingDirectory(File workingDirectory) toString()
-
Constructor Details
-
PluginDescriptor
public PluginDescriptor()Default Constructor, needed for Reflection (XmlDeserializer) -
PluginDescriptor
-
-
Method Details
-
setLog
-
isSystem
public boolean isSystem() -
getAllResources
-
addResources
-
getResources
-
setResources
-
getPluginClassName
-
getClassLoader
-
setClassLoader
-
getSoftClassLoader
-
setSoftClassLoader
-
getPluginURL
-
getTitle
-
setTitle
-
getVersion
-
setVersion
-
getDescription
-
setDescription
-
getAuthor
-
setAuthor
-
getHomeUrl
-
setHomeUrl
-
getContributors
-
setContributors
-
getCategory
-
getId
-
getUUID
A unique identifier that identifies this plugin descriptor according to id, version and CRC Actually it corresponds togetId() + "_" + getVersion() + "_" + getCRC()
- Returns:
- current UUID
-
setId
-
getDefaultId
-
setCategory
-
getDependency
-
getDependencies
-
getReverseDependencies
- Returns:
- plugins that depends on this plugin
-
setReverseDependencies
-
setDependencies
-
addDependencies
-
addReverseDependencies
-
getPluginClassPath
-
getLog
-
isValid
public boolean isValid() -
setValid
public void setValid(boolean valid) -
isLoaded
public boolean isLoaded() -
setLoaded
public void setLoaded(boolean valid) -
isForUninstall
public boolean isForUninstall() -
setForUninstall
public void setForUninstall(boolean forUninstall) -
findURL
- Throws:
IOException
-
getBinarySize
public long getBinarySize() -
setBinarySize
public void setBinarySize(long binarySize) -
getBinaryUrl
-
setBinaryUrl
-
getSourceSize
public long getSourceSize() -
setSourceSize
public void setSourceSize(long sourceSize) -
getSourceUrl
-
setSourceUrl
-
getAbsoluteBinaryUrl
-
getAbsoluteSourceUrl
-
getRepository
-
setRepository
-
getStatus
-
setStatus
-
compareTo
- Specified by:
compareToin interfaceComparable<PluginDescriptor>
-
equals
-
hashCode
-
getApplicationVersion
-
setApplicationVersion
-
toString
-
addPropertyChangeListener
-
addPropertyChangeListener
-
removePropertyChangeListener
-
removePropertyChangeListener
-
isDynamicLoading
public boolean isDynamicLoading() -
setDynamicLoading
public void setDynamicLoading(boolean dynamicLoading) -
getWorkingDirectory
-
setWorkingDirectory
-
getUrlCacheManager
-
setUrlCacheManager
-
getCRC
-
setCRC
-
isUpdated
public boolean isUpdated() -
setUpdated
public void setUpdated(boolean updated) -
getPluginAndLibsURLs
-
getImplementations
-
setImplementations
-
getImplementationFactories
-
setImplementationFactories
-
getInterfaces
-
setInterfaces
-