|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectti.chimera.Resource
Resources are tracked by a plugin. A plugin is active whenever there are
installed resources. If a resource is managed
, then it is not
installed immediately, but instead it is automatically installed when the
plugin becomes active, and uninstalled when the plugin becomes inactive. A
unmanaged resource is installed as soon as it is added, and uninstalled as
soon as it is removed.
Constructor Summary | |
Resource(boolean managed)
Class Constructor. |
Method Summary | |
abstract void |
install()
This method is called when the resource is installed. |
boolean |
isManaged()
Is this a managed resource? Bad things will happen if the resource changes from managed to unmanaged, or visa versa, which is why this method is final. |
abstract void |
uninstall()
This method is called when the resource is uninstalled. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Resource(boolean managed)
managed
- flag to indicate whether this is a managed resourceMethod Detail |
public final boolean isManaged()
public abstract void install()
uninstall()
public abstract void uninstall()
install()
.
install()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |