use of org.camunda.bpm.container.impl.jmx.services.JmxManagedBpmPlatformPlugins in project camunda-bpm-platform by camunda.
the class NotifyPostProcessApplicationUndeployedStep method performOperationStep.
@Override
public void performOperationStep(DeploymentOperation operationContext) {
final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION);
final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
final JmxManagedBpmPlatformPlugins plugins = serviceContainer.getService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_PLATFORM_PLUGINS);
if (plugins != null) {
for (BpmPlatformPlugin plugin : plugins.getValue().getPlugins()) {
plugin.postProcessApplicationUndeploy(processApplication);
}
}
}
use of org.camunda.bpm.container.impl.jmx.services.JmxManagedBpmPlatformPlugins in project camunda-bpm-platform by camunda.
the class DiscoverBpmPlatformPluginsStep method performOperationStep.
@Override
public void performOperationStep(DeploymentOperation operationContext) {
PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();
BpmPlatformPlugins plugins = BpmPlatformPlugins.load(getPluginsClassloader());
JmxManagedBpmPlatformPlugins jmxManagedPlugins = new JmxManagedBpmPlatformPlugins(plugins);
serviceContainer.startService(ServiceTypes.BPM_PLATFORM, RuntimeContainerDelegateImpl.SERVICE_NAME_PLATFORM_PLUGINS, jmxManagedPlugins);
}
Aggregations