public interface PluginsManager
Modifier and Type | Method and Description |
---|---|
void |
addShutdownTask(String name,
Runnable task,
boolean in_event_thread,
int priority)
This method allows plugins register task to do after close the application.
|
void |
addStartupTask(String name,
Runnable task,
boolean in_event_thread,
int priority)
This method allows plugins register task to do before initializacion of
all gvSIG plugins.
|
void |
executeShutdownTasks()
This method executes registered task to run after the close of the application.
|
void |
executeStartupTasks()
This method executes registered task to run before the initialization of
all plugins.
|
File |
getApplicationFolder()
Returns the main application folder, where the application is installed.
|
File |
getApplicationHomeFolder()
Returns the application folder in the home of user.
|
File |
getApplicationI18nFolder()
Returns the default folder where the internationalization files are installed.
|
String |
getApplicationName() |
Version |
getApplicationVersion() |
ExclusiveUIExtension |
getExclusiveUIExtension()
Return the ExclusiveUIExtension installed in the application or
null.
|
IExtension |
getExtension(Class<? extends IExtension> extension)
Gets the instance of the extension whose class is provided.
|
Iterator<IExtension> |
getExtensions()
Return an iterator over al extensions loaded in the application.
|
FirewallConfiguration |
getFirewallConfiguration() |
File |
getInstallFolder()
Returns the default folder with the installable package bundles.
|
PackageInfo |
getPackageInfo()
Get the package info associated to the application.
|
PackageInfo |
getPackageInfo(Class<? extends IExtension> extension)
Get the package info associated to the plugin of the extension.
|
PackageInfo |
getPackageInfo(String pluginName)
Get the package info associated to the plugin with the specified name.
|
PluginServices |
getPlugin(Class<? extends IExtension> extension)
Return the associated pluginServices to the extension class passed as
parameter.
|
PluginServices |
getPlugin(Object obj)
Return the associated pluginServices to the object passed as parameter.
|
PluginServices |
getPlugin(String pluginName)
Return the associated pluginServices to the extension plugin.
|
List<PluginServices> |
getPlugins()
Return the list of plugins loaded in the application
|
File |
getPluginsDirectory()
Deprecated.
@see
getPluginsFolders() |
File |
getPluginsFolder()
Deprecated.
|
List<File> |
getPluginsFolders()
Returns a list of folder on the plugins are instaleds.
|
File |
getTempFile(String name)
Get the file name in the temporary folder of the plugins framework.
|
File |
getTempFile(String name,
String sufix)
Create a unique file name in the temporary folder of the plugins framework.
|
File |
getTempFolder()
Gets the temporary folder of the plugins framework.
|
String |
getText(Object obj,
String msg)
Deprecated.
|
List<IUnsavedData> |
getUnsavedData()
Return a list of unsaved data
|
void |
saveUnsavedData(List<IUnsavedData> unsavedData)
Save the provided unsaved data as parameter
|
void |
setExclusiveUIExtension(ExclusiveUIExtension extension)
Set an extension to control the visivility of all the extensions
of the application.
|
String |
translate(String msg)
Translate the message key to the current language used
in the application.
|
String getApplicationName()
PluginServices getPlugin(Class<? extends IExtension> extension)
extension
- PluginServices getPlugin(Object obj)
object
- PluginServices getPlugin(String pluginName)
pluginName,
- name of the pluginPackageInfo getPackageInfo(Class<? extends IExtension> extension)
extension
- extension of the pluginPackageInfo getPackageInfo(String pluginName)
pluginName,
- name of the pluginPackageInfo getPackageInfo()
List<PluginServices> getPlugins()
IExtension getExtension(Class<? extends IExtension> extension)
extension,
- class of the extension to retrieveIterator<IExtension> getExtensions()
void setExclusiveUIExtension(ExclusiveUIExtension extension)
extension
- ExclusiveUIExtension getExclusiveUIExtension()
String getText(Object obj, String msg)
translate(String)
#translate(String)}
String translate(String msg)
msg
- key to translateFile getApplicationFolder()
File getInstallFolder()
File getApplicationHomeFolder()
File getApplicationI18nFolder()
File getPluginsFolder()
getPluginsFolders()
List<File> getPluginsFolders()
File getPluginsDirectory()
getPluginsFolders()
void addStartupTask(String name, Runnable task, boolean in_event_thread, int priority)
name
- of the tasktask
- runnable with the code of the taskin_event_thread,
- true if the task shoul run in the AWT event thread.priority
- of the task.void addShutdownTask(String name, Runnable task, boolean in_event_thread, int priority)
name
- of the tasktask
- runnable with the code of the taskin_event_thread,
- true if the task shoul run in the AWT event thread.priority
- of the task.void executeStartupTasks()
void executeShutdownTasks()
FirewallConfiguration getFirewallConfiguration()
Version getApplicationVersion()
List<IUnsavedData> getUnsavedData()
void saveUnsavedData(List<IUnsavedData> unsavedData) throws UnsavedDataException
unsavedData
- UnsavedDataException
File getTempFolder()
File getTempFile(String name)
name
-