com.alee.managers.plugin.data
Class DetectedPlugin<T extends Plugin>

java.lang.Object
  extended by com.alee.managers.plugin.data.DetectedPlugin<T>

public class DetectedPlugin<T extends Plugin>
extends java.lang.Object

Initial information gathered about existing plugin.

Author:
Mikle Garin
See Also:
How to use PluginManager, PluginManager

Constructor Summary
DetectedPlugin(java.lang.String pluginFolder, java.lang.String pluginFile, PluginInformation information, javax.swing.ImageIcon logo)
          Constructs new information object about existing plugin.
 
Method Summary
 java.lang.Throwable getException()
          Returns load exception.
 java.lang.String getExceptionMessage()
          Returns load exception message.
 java.lang.String getFailureCause()
          Returns load failure cause.
 java.lang.String getFailureHtmlText()
          Returns load failure HTML description.
 PluginInformation getInformation()
          Returns plugin information.
 javax.swing.ImageIcon getLogo()
          Returns plugin logo.
 T getPlugin()
          Returns loaded plugin instance.
 java.lang.String getPluginFile()
          Returns plugin file name.
 java.lang.String getPluginFolder()
          Returns plugin folder path.
 PluginStatus getStatus()
          Returns plugin status.
 void setException(java.lang.Throwable exception)
          Sets load exception.
 void setExceptionMessage(java.lang.String exceptionMessage)
          Sets load exception message.
 void setFailureCause(java.lang.String failureCause)
          Sets load failure cause.
 void setPlugin(T plugin)
          Sets loaded plugin instance.
 void setStatus(PluginStatus status)
          Sets plugin status.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DetectedPlugin

public DetectedPlugin(java.lang.String pluginFolder,
                      java.lang.String pluginFile,
                      PluginInformation information,
                      javax.swing.ImageIcon logo)
Constructs new information object about existing plugin.

Parameters:
pluginFolder - path to plugin file folder
pluginFile - plugin file name
information - plugin information
logo - plugin logo
Method Detail

getPluginFolder

public java.lang.String getPluginFolder()
Returns plugin folder path.

Returns:
plugin folder path

getPluginFile

public java.lang.String getPluginFile()
Returns plugin file name.

Returns:
plugin file name

getInformation

public PluginInformation getInformation()
Returns plugin information.

Returns:
plugin information

getLogo

public javax.swing.ImageIcon getLogo()
Returns plugin logo.

Returns:
plugin logo

getStatus

public PluginStatus getStatus()
Returns plugin status.

Returns:
plugin status

setStatus

public void setStatus(PluginStatus status)
Sets plugin status.

Parameters:
status - new plugin status

getFailureCause

public java.lang.String getFailureCause()
Returns load failure cause.

Returns:
load failure cause

setFailureCause

public void setFailureCause(java.lang.String failureCause)
Sets load failure cause.

Parameters:
failureCause - new load failure cause

getException

public java.lang.Throwable getException()
Returns load exception.

Returns:
load exception

setException

public void setException(java.lang.Throwable exception)
Sets load exception.

Parameters:
exception - new load exception

getExceptionMessage

public java.lang.String getExceptionMessage()
Returns load exception message.

Returns:
load exception message

setExceptionMessage

public void setExceptionMessage(java.lang.String exceptionMessage)
Sets load exception message.

Parameters:
exceptionMessage - new load exception message

getFailureHtmlText

public java.lang.String getFailureHtmlText()
Returns load failure HTML description.

Returns:
load failure HTML description

getPlugin

public T getPlugin()
Returns loaded plugin instance.

Returns:
loaded plugin instance

setPlugin

public void setPlugin(T plugin)
Sets loaded plugin instance.

Parameters:
plugin - new loaded plugin instance

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object