|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kew.plugin.PluginEnvironment
public class PluginEnvironment
A PluginEnvironment represents a Plugin and the PluginLoader from which it was loaded. Grouping these together allows us to execute a reload of the Plugin since the Plugin itself is not responsible for handling how it's own loading or reloading.
The PluginEnvironment also keeps a reference to the PluginRegistry because this allows it to add and remove Plugins as child resource loaders of the registry.
Field Summary | |
---|---|
private boolean |
loaded
|
private PluginLoader |
loader
|
private Plugin |
plugin
|
private PluginRegistry |
registry
|
private boolean |
supressStartupFailure
|
Constructor Summary | |
---|---|
PluginEnvironment(PluginLoader loader,
PluginRegistry registry)
Constructs an unloaded PluginEnvironment from the given PluginLoader and PluginRegistry. |
|
PluginEnvironment(Plugin plugin,
PluginLoader loader,
PluginRegistry registry)
Constructs a PluginEnvironment representing the given loaded Plugin. |
Method Summary | |
---|---|
PluginLoader |
getLoader()
Gets the PluginLoader which loaded the Plugin in this environment. |
Plugin |
getPlugin()
Gets the Plugin represented by this environment. |
String |
getPluginName()
|
boolean |
isLoaded()
Returns true if this environment has been loaded, false otherwise. |
boolean |
isReloadable()
Returns a boolean indicating whether or not this PluginEnvironment is truly reloadable. |
boolean |
isReloadNeeded()
Indicates whether or not a reload of this environment is needed. |
void |
load()
Loads the plugin from the PluginLoader. |
void |
reload()
Reloads the environment by effectively executing an unload() followed by a load(). |
void |
setSupressStartupFailure(boolean supressStartupFailure)
By default, startup failure is supressed. |
void |
unload()
Unloads the plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean loaded
private Plugin plugin
private final PluginLoader loader
private final PluginRegistry registry
private boolean supressStartupFailure
Constructor Detail |
---|
public PluginEnvironment(PluginLoader loader, PluginRegistry registry)
public PluginEnvironment(Plugin plugin, PluginLoader loader, PluginRegistry registry)
Method Detail |
---|
public boolean isLoaded()
public boolean isReloadable()
isReloadable
in interface Reloadable
public boolean isReloadNeeded()
isReloadNeeded
in interface Reloadable
public void reload() throws Exception
reload
in interface Reloadable
Exception
public void load() throws Exception
Exception
public void unload() throws Exception
Exception
public String getPluginName()
public Plugin getPlugin()
public PluginLoader getLoader()
public void setSupressStartupFailure(boolean supressStartupFailure)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |