*/
public void undeploy(String aSpringContainerId, int stop_level) throws Exception {
if (aSpringContainerId == null ) {
return;
}
UimaEEAdminSpringContext adminContext = null;
if (!springContainerRegistry.containsKey(aSpringContainerId)) {
return;
// throw new InvalidContainerException("Invalid Spring container Id:" + aSpringContainerId +
// ". Unable to undeploy the Spring container");
}
// Fetch an administrative context which contains a Spring Container
adminContext = (UimaEEAdminSpringContext) springContainerRegistry.get(aSpringContainerId);
if (adminContext == null) {
throw new InvalidContainerException(
"Spring Container Does Not Contain Valid UimaEEAdminSpringContext Object");
}
// Fetch instance of the Container from its context
ApplicationContext ctx = adminContext.getSpringContainer();
// Query the container for objects that implement
// ControllerLifecycle interface. These
// objects are typically of type AnalysisEngineController or
// UimacppServiceController.
String[] asyncServiceList = ctx