If the remote API isn't installed, this method has no effect.
Perform uninstallation activity. It rollbacks any change Installer
did during the installation. This include the removal of the system applications from the lib/install/applications directory also.
The Installer
will be loaded with an instance of URLClassLoader
and ant jars will be added to it's classpath.
If this method throws an AddonFatalException or RuntimeException Appserver uninstallation will be aborted. However if it throws an AddonException, then the appserver uninstallation will continue after displaying the error message.
@param ic InstallationContext
object.
This method causes the Runtime to notify other modules that this module is being uninstalled, and then puts this module into the {@code UNINSTALLED} state. The Runtime must remove any resourcesrelated to this module that it is able to remove.
If this module's state is {@code UNINSTALLED} then an {@code IllegalStateException} is thrown.
The following steps are required to uninstall a module:
searchField
when installed and stop listening for {@link ActionEvent}s fired by the search field.
@param searchField uninstall recent searches popup menu
This method causes the Framework to notify other bundles that this bundle is being uninstalled, and then puts this bundle into the UNINSTALLED
state. The Framework must remove any resources related to this bundle that it is able to remove.
If this bundle has exported any packages, the Framework must continue to make these packages available to their importing bundles until the PackageAdmin.refreshPackages
method has been called or the Framework is relaunched.
The following steps are required to uninstall a bundle:
UNINSTALLED
then an IllegalStateException
is thrown. ACTIVE
, STARTING
or STOPPING
, this bundle is stopped as described in the Bundle.stop
method. If Bundle.stop
throws an exception, a Framework event of type {@link FrameworkEvent#ERROR} isfired containing the exception. UNINSTALLED
. getState()
not in { UNINSTALLED
}. getState()
in { UNINSTALLED
}. getState()
not in { UNINSTALLED
}. AdminPermission[this,LIFECYCLE]
, and the Java Runtime Environment supports permissions.
@see #stop()
This method always throws a BundleException. @throws BundleException This Framework cannot be uninstalled. @throws SecurityException If the caller does not have the appropriate{@code AdminPermission[this,LIFECYCLE]}, and the Java Runtime Environment supports permissions.
@throws DeploymentException if the deployment package could not besuccessfully uninstalled. For detailed error code description see {@link DeploymentException}. @throws SecurityException if the caller doesn't have the appropriate{@link DeploymentAdminPermission}("<filter>", "uninstall") permission. @throws IllegalStateException if the package is stale
The following table shows which actions are associated with each state. An action of {@code Wait} means this method will block until a statetransition occurs, upon which the new state will be evaluated in order to determine how to proceed. If a state transition does not occur in a reasonable time while waiting then no action is taken and a SubsystemException is thrown to indicate the subsystem was unable to be uninstalled. An action of {@code Return} means this method returnsimmediately without taking any other action.
State | Action |
---|---|
{@link State#INSTALLING INSTALLING} | {@code Wait} |
{@link State#INSTALLED INSTALLED} | {@code Uninstall} |
{@link State#INSTALL_FAILED INSTALL_FAILED} | {@code Wait} |
{@link State#RESOLVING RESOLVING} | {@code Wait} |
{@link State#RESOLVED RESOLVED} | {@code Uninstall} |
{@link State#STARTING STARTING} | {@code Wait} |
{@link State#ACTIVE ACTIVE} | {@code Stop}, {@code Uninstall} |
{@link State#STOPPING STOPPING} | {@code Wait} |
{@link State#UNINSTALLING UNINSTALLING} | {@code Wait} |
{@link State#UNINSTALLED UNINSTALLED} | {@code Return} |
All references to changing the state of this subsystem include both changing the state of the subsystem object as well as the state property of the subsystem service registration.
The following steps are required to uninstall this subsystem after being stopped if necessary.
Implementations should be sensitive to the potential for long running operations and periodically check the current thread for interruption, in which case a {@code SubsystemException} with an{@code InterruptedException} as the cause should be thrown. If aninterruption occurs while waiting, this method should terminate immediately. Once the transition to the {@link State#UNINSTALLING UNINSTALLING} state has occurred, however, this method must not terminatedue to an interruption until the uninstall process has completed. @throws SubsystemException If this subsystem fails to uninstall cleanly. @throws SecurityException If the caller does not have the appropriate{@link SubsystemPermission}[this,LIFECYCLE], and the runtime supports permissions.
true
if all views and tables were successfully removed; false
if at least onefailure occurred when trying remove views and tables
@throws Exception
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|