Class DefaultPluginManager.WikiPluginInfo

    • Method Detail

      • initializeFromXML

        protected void initializeFromXML​(org.jdom2.Element el)
        Initializes the ModuleInfo from some standard XML elements which are under the given element.
        Overrides:
        initializeFromXML in class WikiModuleInfo
        Parameters:
        el - The element to parse.
      • getClassName

        public java.lang.String getClassName()
        Returns the full class name of this object.
        Returns:
        The full class name of the object.
      • getAlias

        public java.lang.String getAlias()
        Returns the alias name for this object.
        Returns:
        An alias name for the plugin.
      • getAjaxAlias

        public java.lang.String getAjaxAlias()
        Returns the ajax alias name for this object.
        Returns:
        An ajax alias name for the plugin.
      • newPluginInstance

        public Plugin newPluginInstance​(java.util.List<java.lang.String> searchPath,
                                        java.util.List<java.lang.String> externalJars)
                                 throws java.lang.ReflectiveOperationException
        Creates a new plugin instance.
        Parameters:
        searchPath - A List of Strings, containing different package names.
        externalJars - the list of external jars to search
        Returns:
        A new plugin.
        Throws:
        java.lang.ClassNotFoundException - If the class declared was not found.
        java.lang.InstantiationException - If the class cannot be instantiated-
        java.lang.IllegalAccessException - If the class cannot be accessed.
        java.lang.ReflectiveOperationException
      • getIncludeText

        public java.lang.String getIncludeText​(java.lang.String type)
        Returns a text for IncludeResources.
        Parameters:
        type - Either "script" or "stylesheet"
        Returns:
        Text, or an empty string, if there is nothing to be included.
      • toString

        public java.lang.String toString()
        Returns a string suitable for debugging. Don't assume that the format would stay the same.
        Overrides:
        toString in class java.lang.Object
        Returns:
        Something human-readable