Class PluginInfo

  • All Implemented Interfaces:
    IPluginInfo

    public class PluginInfo
    extends java.lang.Object
    implements IPluginInfo
    The plugin information includes id, name, classname, and description.
    Author:
    thomask
    • Constructor Summary

      Constructors 
      Constructor Description
      PluginInfo​(java.lang.String name, java.lang.String desc, java.lang.String classPath)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClassName()
      Retrieves the class name of the plugin.
      java.lang.String getDescription​(java.util.Locale locale)
      Retrieves the localized plugin description.
      java.lang.String getName​(java.util.Locale locale)
      Retrieves the localized plugin name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PluginInfo

        public PluginInfo​(java.lang.String name,
                          java.lang.String desc,
                          java.lang.String classPath)
    • Method Detail

      • getName

        public java.lang.String getName​(java.util.Locale locale)
        Description copied from interface: IPluginInfo
        Retrieves the localized plugin name.
        Specified by:
        getName in interface IPluginInfo
        Parameters:
        locale - end-user locale
        Returns:
        plugin name
      • getDescription

        public java.lang.String getDescription​(java.util.Locale locale)
        Description copied from interface: IPluginInfo
        Retrieves the localized plugin description.
        Specified by:
        getDescription in interface IPluginInfo
        Parameters:
        locale - end-user locale
        Returns:
        plugin description
      • getClassName

        public java.lang.String getClassName()
        Description copied from interface: IPluginInfo
        Retrieves the class name of the plugin. Instance of plugin can be created with

        Class.forName(info.getClassName());

        Specified by:
        getClassName in interface IPluginInfo
        Returns:
        java class name