|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mycore.services.plugins.TextFilterPluginManager
public class TextFilterPluginManager
Loads and manages plugins
| Method Summary | |
|---|---|
void |
clear()
removes all plugins from the manager |
static TextFilterPluginManager |
getInstance()
|
TextFilterPlugin |
getPlugin(MCRFileContentType ct)
returns TextFilterPlugin to corresponding MIME type |
Collection |
getPlugins()
returns a Collection of all loaded plugins. |
boolean |
isSupported(MCRFileContentType ct)
checks whether content type is supported |
void |
loadPlugins()
load TextFilterPlugins from the MCR.PluginDirectory |
void |
reloadPlugins()
removes all plugins and reload plugins after that This is when you delete a plugin while the application is running, replacing one with a new version or if you just add one. |
Reader |
transform(MCRFileContentType ct,
InputStream input)
returns a Reader for the characters of the InputStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static TextFilterPluginManager getInstance()
public void loadPlugins()
public void clear()
public void reloadPlugins()
public Collection getPlugins()
public TextFilterPlugin getPlugin(MCRFileContentType ct)
ct - supported
MIME type
public boolean isSupported(MCRFileContentType ct)
ct - content type
of Inputstream
public Reader transform(MCRFileContentType ct,
InputStream input)
throws FilterPluginTransformException
ct - ContentType of the InputStreaminput - InputStream to be parsed
FilterPluginTransformException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||