Package com.iizix.term.server
Class Descriptor
- java.lang.Object
- com.iizix.term.server.Descriptor
 
- All Implemented Interfaces:
- IPluginDescriptor<ScreenProp>
 - public class Descriptor extends java.lang.Object implements IPluginDescriptor<ScreenProp> Plug-in descriptor used for the Server to load the plug-in's XML schema and get the appropriate class loader.- Author:
- Christopher Mindus
 
- Constructor Summary- Constructors - Constructor - Description - Descriptor()Constructor.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - java.lang.ClassLoader- getClassLoader()Gets the class loader to use for loading properties classes.- java.util.List<java.net.URL>- getClasspathEntries()Gets the URL's to the required classpath entries when running in the Server.- java.lang.String- getDescription()Gets the description of the plug-in.- java.lang.String- getID()Gets the ID of the plug-in, e.g.- java.lang.String- getModuleDirectory()Gets the directory name in Module projects.- java.lang.String- getModuleFileExtension()Gets the file extension used in Module projects, null for all.- java.net.URL- getPropertiesURL()Gets the properties file URL for "properties.xml".- java.lang.Class<ScreenProp>- getPropertyClass()Gets the property class for files.- java.lang.Class<ScreenProp>[]- getPropertyClasses()Gets the property class for files.- java.lang.String- getServerID()Gets the ID of the plug-in, e.g.
 
- Method Detail- getID- public java.lang.String getID() Gets the ID of the plug-in, e.g. "com.iizigo.db". Predefined descriptors such as Images, Panels, etc, return null.- Specified by:
- getIDin interface- IPluginDescriptor<ScreenProp>
- Returns:
- Predefined descriptors such as Images, Panels, etc, return null.
 
 - getServerID- public java.lang.String getServerID() Gets the ID of the plug-in, e.g. "com.iizix.db". Predefined descriptors such as Images, Panels, etc, return null.- Specified by:
- getServerIDin interface- IPluginDescriptor<ScreenProp>
- Returns:
- Predefined descriptors such as Images, Panels, etc, return null.
 
 - getDescription- public java.lang.String getDescription() Gets the description of the plug-in.- Specified by:
- getDescriptionin interface- IPluginDescriptor<ScreenProp>
- Returns:
- The description.
 
 - getPropertiesURL- public java.net.URL getPropertiesURL() Gets the properties file URL for "properties.xml".- Specified by:
- getPropertiesURLin interface- IPluginDescriptor<ScreenProp>
- Returns:
- The URL for the properties file.
 
 - getClassLoader- public java.lang.ClassLoader getClassLoader() Gets the class loader to use for loading properties classes.- Specified by:
- getClassLoaderin interface- IPluginDescriptor<ScreenProp>
- Returns:
- A class loader or null to use the default class loader.
 
 - getModuleDirectory- public java.lang.String getModuleDirectory() Gets the directory name in Module projects.- Specified by:
- getModuleDirectoryin interface- IPluginDescriptor<ScreenProp>
- Returns:
- The module directory name.
 
 - getModuleFileExtension- public java.lang.String getModuleFileExtension() Gets the file extension used in Module projects, null for all.- Specified by:
- getModuleFileExtensionin interface- IPluginDescriptor<ScreenProp>
- Returns:
- The file extension used in Module projects, null for all.
 
 - getPropertyClass- public java.lang.Class<ScreenProp> getPropertyClass() Gets the property class for files.- Specified by:
- getPropertyClassin interface- IPluginDescriptor<ScreenProp>
- Returns:
- The main property class used, null if there are multiple ones, in which case the IPluginDescriptor.getPropertyClasses()method must be used.
 
 - getPropertyClasses- public java.lang.Class<ScreenProp>[] getPropertyClasses() Gets the property class for files.- Specified by:
- getPropertyClassesin interface- IPluginDescriptor<ScreenProp>
- Returns:
- The main property class used.
 
 - getClasspathEntries- public java.util.List<java.net.URL> getClasspathEntries() Gets the URL's to the required classpath entries when running in the Server. This method is also called from the Designer, and the reply should include a representation of the same libraries or paths.- Specified by:
- getClasspathEntriesin interface- IPluginDescriptor<ScreenProp>
- Returns:
- A list of the classpath entries, or null for no special processing.