public interface IExtensionInfo
Modifier and Type | Method and Description |
---|---|
void |
addClassFile(ClassFile classfile)
This method adds the given ClassFile to the list of ClassFiles which belongs to
this extension.
|
void |
addRequiredExtenison(IExtensionInfo extension)
This method adds the given extension to the list of required extensions.
|
Vector |
getClassFiles()
This method returns an Vector of ClassFiles if the extension is contained into
an directory, else it returns null.
|
String |
getClassName()
This method returns the full qualified class name of the extension class.
|
String |
getDescription()
This method returns an description for this extension.
|
ClassFile |
getExtenisonClassFile()
This method returns the main class file as ClassFile from the extension if the
extension is contained into an directory else it returns null.
|
Class |
getExtensionClass()
This method returns the main class of the extension.
|
JarFile |
getJarFile()
This method returns the jarfile of the extension it the extension is packed into an
jarfile else it returns null.
|
String |
getManifest()
This methode returns a String which is a valid manifest for this extensions.
|
String |
getName()
This method returns the name of the extension as string.
|
void |
getNode(Document doc)
This method returns an XML-DOC-Node which all information about this extension.
|
IExtensionInfo[] |
getRequiredExtensions()
This method returns an Array of extensions which are needed to run this extension.
|
HashSet<String> |
getRequiredNames()
This method returns a Vector which contains all fqcn of required extensions.
|
long |
getVersion()
This method returns the current version of the Extension.
|
boolean |
isAutoload()
returns the autoload state
|
boolean |
isFilePlugin()
This method returns true if the Extension is contained into an directory.
|
boolean |
isJarPlugin()
This method returns true if the Extension is packed into an JarFile.
|
void |
registerClasses()
This method adds the class files of the extension to the URL-list of the extenisonloader.
|
void |
removeClassFile(ClassFile classfile)
This method removes the given ClassFile form the list of ClassFiles which
belong to this extension
|
void |
removeRequiredExtenison(IExtensionInfo extension)
This method removes the given extension to the list of required extensions.
|
void |
setAutoload(boolean autoload)
If autoload is true the extension will be automatically started
when VipTool starts.
|
void |
setDescription(String description)
This method sets the description of the extension to the given string.
|
void |
setName(String name)
This method sets the name of the Extension to the given name.
|
void |
testForRequired(IExtensionManager extManager)
This method test if all required Extensions are avaiable.
|
boolean isJarPlugin()
boolean isFilePlugin()
Vector getClassFiles()
Class getExtensionClass()
void removeClassFile(ClassFile classfile)
classfile
- ClassFile to removevoid addClassFile(ClassFile classfile) throws VipToolException
classfile
- ClassFile to addVipToolException
ClassFile getExtenisonClassFile()
JarFile getJarFile()
void registerClasses()
String getName()
void setName(String name)
name
- new name of the extensionString getDescription()
void setDescription(String description)
description
- new descriptionvoid getNode(Document doc) throws VipToolException
VipToolException
IExtensionInfo[] getRequiredExtensions()
void addRequiredExtenison(IExtensionInfo extension)
void removeRequiredExtenison(IExtensionInfo extension)
String getClassName()
void setAutoload(boolean autoload)
autoload
- new autoload stateboolean isAutoload()
HashSet<String> getRequiredNames()
void testForRequired(IExtensionManager extManager) throws VipToolExtensionException
VipToolExtensionException
String getManifest()
long getVersion()