| java.lang.Object ti.chimera.Resource
Resource | abstract public class Resource (Code) | | 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.
author: Rob Clark version: 0.1 |
Constructor Summary | |
public | Resource(boolean managed) Class Constructor. |
Method Summary | |
abstract public void | install() This method is called when the resource is installed. | final public 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 public void | uninstall() This method is called when the resource is uninstalled. |
Resource | public Resource(boolean managed)(Code) | | Class Constructor.
Parameters: managed - flag to indicate whether this is a managed resource |
install | abstract public void install()(Code) | | This method is called when the resource is installed. It should be
overloaded by the derived class to perform whatever steps are necessary
to install this resource.
See Also: Resource.uninstall |
isManaged | final public boolean isManaged()(Code) | | 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.
|
uninstall | abstract public void uninstall()(Code) | | This method is called when the resource is uninstalled. It should be
overloaded by the derived class to perform whatever steps are necessary
to uninstall the resources. It should be the inverse of
Resource.install .
See Also: Resource.install |
|
|