|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunbbayes.io.FileExtensionIODelegator
unbbayes.io.extension.jpf.PluginAwareFileExtensionIODelegator
public class PluginAwareFileExtensionIODelegator
This is an extension of FileExtensionIODelegator
which uses JPF in order to load IO classes as plugins.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class unbbayes.io.FileExtensionIODelegator |
|---|
FileExtensionIODelegator.MoreThanOneCompatibleIOException |
| Constructor Summary | |
|---|---|
PluginAwareFileExtensionIODelegator()
Deprecated. use newInstance() instead |
|
| Method Summary | |
|---|---|
String |
getCorePluginID()
This is the ID from where this class will going to find the declared extension points. |
String |
getExtensionPointClassParam()
The default name of the "class" parameter of PNIO extension point |
String |
getExtensionPointID()
The default value of the extension point ID expected by the plugin manager in order to find plugins for PN's IO routines. |
String |
getExtensionPointNameParam()
|
UnBBayesPluginContextHolder |
getUnbbayesPluginContextHolder()
|
protected Collection<BaseIO> |
loadIOAsPlugins()
Obtains IO classes using plugins loaded from plugin folder, using getExtensionPointID()
as extension point ID (which is usually "PNIO"). |
static PluginAwareFileExtensionIODelegator |
newInstance()
Constructor method. |
static PluginAwareFileExtensionIODelegator |
newInstance(boolean loadPlugins)
Constructor method. |
void |
reloadPlugins()
Reloads the plugins. |
void |
setCorePluginID(String corePluginID)
This is the ID from where this class will going to find the declared extension points. |
void |
setExtensionPointClassParam(String extensionPointClassParam)
The default name of the "class" parameter of PNIO extension point |
void |
setExtensionPointID(String extensionPointID)
The default value of the extension point ID expected by the plugin manager in order to find plugins for PN's IO routines. |
void |
setExtensionPointNameParam(String extensionPointNameParam)
|
void |
setUnbbayesPluginContextHolder(UnBBayesPluginContextHolder unbbayesPluginContextHolder)
|
| Methods inherited from class unbbayes.io.FileExtensionIODelegator |
|---|
findIOByName, getCompatibleIOs, getDelegators, getName, getNamesFromIOs, getSupportedFileExtensions, getSupportedFilesDescription, load, save, setDelegators, setName, supports |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginAwareFileExtensionIODelegator()
newInstance() instead
newInstance() instead.
Initializes the FileExtensionIODelegator.getDelegators() using the following IO classes:
- NetIO;
- XMLBIFIO;
- DneIO;
- contents from #loadIOAsPlugins(getExtensionPointID());
| Method Detail |
|---|
public static PluginAwareFileExtensionIODelegator newInstance()
FileExtensionIODelegator.getDelegators() using the following IO classes:
- contents from #loadIOAsPlugins(getExtensionPointID());
public static PluginAwareFileExtensionIODelegator newInstance(boolean loadPlugins)
if - true, it loads plugins. If false, it does not load plugins.
public void reloadPlugins()
protected Collection<BaseIO> loadIOAsPlugins()
getExtensionPointID()
as extension point ID (which is usually "PNIO").
(see plugin.xml with ID unbbayes.util.extension.core) for declaration.
The plugins are loaded using UnBBayesPluginContextHolder.getPluginManager()
public String getExtensionPointID()
public void setExtensionPointID(String extensionPointID)
extensionPointID - the extensionPointID to setpublic String getExtensionPointClassParam()
public void setExtensionPointClassParam(String extensionPointClassParam)
extensionPointClassParam - the extensionPointClassParam to setpublic UnBBayesPluginContextHolder getUnbbayesPluginContextHolder()
public void setUnbbayesPluginContextHolder(UnBBayesPluginContextHolder unbbayesPluginContextHolder)
unbbayesPluginContextHolder - the unbbayesPluginContextHolder to setpublic String getExtensionPointNameParam()
public void setExtensionPointNameParam(String extensionPointNameParam)
extensionPointNameParam - the extensionPointNameParam to setpublic String getCorePluginID()
public void setCorePluginID(String corePluginID)
corePluginID - the corePluginID to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||