After this call, the registered alias in the URI name-space will no longer be available. If the registration was for a servlet, the Http Service must call the {@code destroy} method of the servlet beforereturning.
If the bundle which performed the registration is stopped or otherwise "unget"s the Http Service without calling {@link #unregister(String)}then Http Service must automatically unregister the registration. However, if the registration was for a servlet, the {@code destroy}method of the servlet will not be called in this case since the bundle may be stopped. {@link #unregister(String)} must be explicitly called tocause the {@code destroy} method of the servlet to be called. This can bedone in the {@code BundleActivator.stop} method of the bundle registeringthe servlet. @param alias name in the URI name-space of the registration to unregister @throws java.lang.IllegalArgumentException if there is no registrationfor the alias or the calling bundle was not the bundle which registered the alias.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|