code stringlengths 23 201k | docstring stringlengths 17 96.2k | func_name stringlengths 0 235 | language stringclasses 1
value | repo stringlengths 8 72 | path stringlengths 11 317 | url stringlengths 57 377 | license stringclasses 7
values |
|---|---|---|---|---|---|---|---|
public ProcessEngineService getProcessEngineService() {
// TODO: return proxy?
return this;
} | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getProcessEngineService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
public ProcessApplicationService getProcessApplicationService() {
// TODO: return proxy?
return this;
} | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getProcessApplicationService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
public ExecutorService getExecutorService() {
return (ExecutorService) serviceContainer.getRequiredService(ServiceNames.forMscExecutorService()).getValue();
} | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getExecutorService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
public ProcessEngine getDefaultProcessEngine() {
return getProcessEngineService(ServiceNames.forDefaultProcessEngine());
} | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getDefaultProcessEngine | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
public List<ProcessEngine> getProcessEngines() {
return new ArrayList<ProcessEngine>(processEngines);
} | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getProcessEngines | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
public Set<String> getProcessEngineNames() {
HashSet<String> result = new HashSet<String>();
for (ProcessEngine engine : processEngines) {
result.add(engine.getName());
}
return result;
} | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getProcessEngineNames | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
public ProcessEngine getProcessEngine(String name) {
return getProcessEngineService(ServiceNames.forManagedProcessEngine(name));
} | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getProcessEngine | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
public ProcessApplicationInfo getProcessApplicationInfo(String processApplicationName) {
MscManagedProcessApplication managedProcessApplication = getManagedProcessApplication(processApplicationName);
if (managedProcessApplication == null) {
return null;
}
else {
return managedProcessApplica... | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getProcessApplicationInfo | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
public Set<String> getProcessApplicationNames() {
HashSet<String> result = new HashSet<String>();
for (MscManagedProcessApplication application : processApplications) {
result.add(application.getProcessApplicationInfo().getName());
}
return result;
} | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getProcessApplicationNames | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
public ProcessApplicationReference getDeployedProcessApplication(String name) {
MscManagedProcessApplication managedPa = getManagedProcessApplication(name);
if(managedPa == null) {
return null;
}
else {
return managedPa.getProcessApplicationReference();
}
} | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getDeployedProcessApplication | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
protected void createJndiBindings() {
final PlatformServiceReferenceFactory managedReferenceFactory = new PlatformServiceReferenceFactory(this);
final ServiceName processEngineServiceBindingServiceName = ContextNames.GLOBAL_CONTEXT_SERVICE_NAME
.append(BpmPlatform.APP_JNDI_NAME)
.append(BpmPlatfor... | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | createJndiBindings | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
protected ProcessEngine getProcessEngineService(ServiceName processEngineServiceName) {
try {
ServiceController<ProcessEngine> serviceController = getProcessEngineServiceController(processEngineServiceName);
return serviceController.getValue();
} catch (ServiceNotFoundException e) {
return nul... | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getProcessEngineService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
@SuppressWarnings("unchecked")
protected ServiceController<ProcessEngine> getProcessEngineServiceController(ServiceName processEngineServiceName) {
ServiceController<ProcessEngine> serviceController = (ServiceController<ProcessEngine>) serviceContainer.getRequiredService(processEngineServiceName);
return serv... | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | getProcessEngineServiceController | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
protected void startTrackingServices() {
processEngineServiceTracker = new ServiceTracker<ProcessEngine>(ServiceNames.forManagedProcessEngines(), processEngines);
serviceContainer.addListener(processEngineServiceTracker);
processApplicationServiceTracker = new ServiceTracker<MscManagedProcessApplication>(S... | <p>A {@link RuntimeContainerDelegate} implementation for JBoss AS 7</p>
@author Daniel Meyer | startTrackingServices | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
@SuppressWarnings("unchecked")
protected MscManagedProcessApplication getManagedProcessApplication(String name) {
ServiceController<MscManagedProcessApplication> serviceController = (ServiceController<MscManagedProcessApplication>) serviceContainer
.getService(ServiceNames.forManagedProcessApplication(nam... | <p>invoked by the {@link MscManagedProcessEngine} and {@link MscManagedProcessEngineController}
when a process engine is stopped</p> | getManagedProcessApplication | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerDelegate.java | Apache-2.0 |
public RuntimeContainerJobExecutor getValue() throws IllegalStateException, IllegalArgumentException {
return this;
} | @author Daniel Meyer
@author Roman Smirnov | getValue | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerJobExecutor.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerJobExecutor.java | Apache-2.0 |
public void start(StartContext arg0) throws StartException {
// no-op:
// job executor is lazy-started when first process engine is registered and jobExecutorActivate = true
// See: #CAM-4817
} | @author Daniel Meyer
@author Roman Smirnov | start | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerJobExecutor.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/MscRuntimeContainerJobExecutor.java | Apache-2.0 |
public ProcessApplicationInterface getValue() throws IllegalStateException, IllegalArgumentException {
try {
return reference.getProcessApplication();
} catch (ProcessApplicationUnavailableException e) {
throw new IllegalStateException("Process application '"+reference.getName()+"' is not una... | <p>Start Service for process applications that do not expose an EE Component View
(like {@link ServletProcessApplication}</p>
@author Daniel Meyer | getValue | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/NoViewProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/NoViewProcessApplicationStartService.java | Apache-2.0 |
public ServiceTarget getValue() throws IllegalStateException, IllegalArgumentException {
return childTarget;
} | <p>Service installed for a process application module</p>
<p>This service is used as a "root" service for all services installed by a
process application deployment, be it from a DeploymentProcessor or at Runtime.
As this service is installed as a child service on the deployment unit, it is
guaranteed that the unde... | getValue | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationModuleService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationModuleService.java | Apache-2.0 |
public void start(StartContext context) throws StartException {
childTarget = context.getChildTarget();
} | <p>Service installed for a process application module</p>
<p>This service is used as a "root" service for all services installed by a
process application deployment, be it from a DeploymentProcessor or at Runtime.
As this service is installed as a child service on the deployment unit, it is
guaranteed that the unde... | start | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationModuleService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationModuleService.java | Apache-2.0 |
@Override
public void start(StartContext context) throws StartException {
ManagedReference reference = null;
try {
// get the process application component
ProcessApplicationInterface processApplication = null;
ComponentView componentView = paComponentViewInjector.getOptionalValue();
... | injector for the default process engine | start | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
protected void notifyBpmPlatformPlugins(BpmPlatformPlugins value, ProcessApplicationInterface processApplication) {
for (BpmPlatformPlugin plugin : value.getPlugins()) {
plugin.postProcessApplicationDeploy(processApplication);
}
} | injector for the default process engine | notifyBpmPlatformPlugins | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
@Override
public void stop(StopContext context) {
ManagedReference reference = null;
try {
// get the process application component
ProcessApplicationInterface processApplication = null;
ComponentView componentView = paComponentViewInjector.getOptionalValue();
if(componentView != nul... | injector for the default process engine | stop | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
protected void invokePostDeploy(final ProcessApplicationInterface processApplication) throws ClassNotFoundException, StartException {
Class<?> paClass = getPaClass(postDeployDescription);
final Method postDeployMethod = InjectionUtil.detectAnnotatedMethod(paClass, PostDeploy.class);
if(postDeployMethod != ... | injector for the default process engine | invokePostDeploy | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
@Override
public Void call() throws Exception {
postDeployMethod.invoke(processApplication.getRawObject(), getInjections(postDeployMethod));
return null;
} | injector for the default process engine | call | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
protected void invokePreUndeploy(final ProcessApplicationInterface processApplication) throws ClassNotFoundException {
if(preUndeployDescription != null) {
Class<?> paClass = getPaClass(preUndeployDescription);
final Method preUndeployMethod = InjectionUtil.detectAnnotatedMethod(paClass, PreUndeploy.cla... | injector for the default process engine | invokePreUndeploy | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
@Override
public Void call() throws Exception {
preUndeployMethod.invoke(processApplication.getRawObject(), getInjections(preUndeployMethod));
return null;
} | injector for the default process engine | call | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
protected Object[] getInjections(Method lifecycleMethod) {
final Type[] parameterTypes = lifecycleMethod.getGenericParameterTypes();
final List<Object> parameters = new ArrayList<Object>();
for (Type parameterType : parameterTypes) {
boolean injectionResolved = false;
if(parameterType instanc... | injector for the default process engine | getInjections | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
protected Class<?> getPaClass(AnnotationInstance annotation) throws ClassNotFoundException {
String paClassName = ((MethodInfo)annotation.target()).declaringClass().name().toString();
Class<?> paClass = paModule.getClassLoader().loadClass(paClassName);
return paClass;
} | injector for the default process engine | getPaClass | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
@SuppressWarnings("unchecked")
private ProcessApplicationDeploymentService getDeploymentService(StartContext context, ServiceName deploymentServiceName) {
final ServiceContainer serviceContainer = context.getController().getServiceContainer();
ServiceController<ProcessApplicationDeploymentService> deploymentS... | injector for the default process engine | getDeploymentService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
public InjectedValue<ProcessApplicationInterface> getNoViewProcessApplication() {
return noViewProcessApplication;
} | injector for the default process engine | getNoViewProcessApplication | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
public InjectedValue<ComponentView> getPaComponentViewInjector() {
return paComponentViewInjector;
} | injector for the default process engine | getPaComponentViewInjector | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
@Override
public ProcessApplicationStartService getValue() throws IllegalStateException, IllegalArgumentException {
return this;
} | injector for the default process engine | getValue | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
public InjectedValue<ProcessEngine> getDefaultProcessEngineInjector() {
return defaultProcessEngineInjector;
} | injector for the default process engine | getDefaultProcessEngineInjector | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
public InjectedValue<BpmPlatformPlugins> getPlatformPluginsInjector() {
return platformPluginsInjector;
} | injector for the default process engine | getPlatformPluginsInjector | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java | Apache-2.0 |
@Override
public ProcessApplicationStopService getValue() throws IllegalStateException, IllegalArgumentException {
return this;
} | Responsible for invoking {@link BpmPlatformPlugin#postProcessApplicationUndeploy(ProcessApplicationInterface)}
@author Daniel Meyer | getValue | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | Apache-2.0 |
@Override
public void start(StartContext arg0) throws StartException {
// nothing to do
} | Responsible for invoking {@link BpmPlatformPlugin#postProcessApplicationUndeploy(ProcessApplicationInterface)}
@author Daniel Meyer | start | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | Apache-2.0 |
@Override
public void stop(StopContext arg0) {
ManagedReference reference = null;
try {
// get the process application component
ProcessApplicationInterface processApplication = null;
ComponentView componentView = paComponentViewInjector.getOptionalValue();
if(componentView != null) ... | Responsible for invoking {@link BpmPlatformPlugin#postProcessApplicationUndeploy(ProcessApplicationInterface)}
@author Daniel Meyer | stop | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | Apache-2.0 |
public InjectedValue<ProcessApplicationInterface> getNoViewProcessApplication() {
return noViewProcessApplication;
} | Responsible for invoking {@link BpmPlatformPlugin#postProcessApplicationUndeploy(ProcessApplicationInterface)}
@author Daniel Meyer | getNoViewProcessApplication | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | Apache-2.0 |
public InjectedValue<ComponentView> getPaComponentViewInjector() {
return paComponentViewInjector;
} | Responsible for invoking {@link BpmPlatformPlugin#postProcessApplicationUndeploy(ProcessApplicationInterface)}
@author Daniel Meyer | getPaComponentViewInjector | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | Apache-2.0 |
public InjectedValue<BpmPlatformPlugins> getPlatformPluginsInjector() {
return platformPluginsInjector;
} | Responsible for invoking {@link BpmPlatformPlugin#postProcessApplicationUndeploy(ProcessApplicationInterface)}
@author Daniel Meyer | getPlatformPluginsInjector | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java | Apache-2.0 |
public static ServiceName forManagedProcessEngine(String processEngineName) {
return PROCESS_ENGINE.append(processEngineName);
} | Returns the service name for a {@link MscManagedProcessEngine}.
@param the
name of the process engine
@return the composed service name | forManagedProcessEngine | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forDefaultProcessEngine() {
return DEFAULT_PROCESS_ENGINE;
} | @return the {@link ServiceName} for the default
{@link MscManagedProcessEngine}. This is a constant name since
there can only be one default process engine. | forDefaultProcessEngine | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forMscRuntimeContainerDelegate() {
return MSC_RUNTIME_CONTAINER_DELEGATE;
} | @return the {@link ServiceName} for the {@link MscRuntimeContainerDelegate} | forMscRuntimeContainerDelegate | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forManagedProcessEngines() {
return PROCESS_ENGINE;
} | @return the {@link ServiceName} that is the longest common prefix of all
ServiceNames used for {@link MscManagedProcessEngine}. | forManagedProcessEngines | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forManagedProcessApplications() {
return PROCESS_APPLICATION;
} | @return the {@link ServiceName} that is the longest common prefix of all
ServiceNames used for {@link MscManagedProcessApplication}. | forManagedProcessApplications | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forManagedProcessApplication(String applicationName) {
return PROCESS_APPLICATION.append(applicationName);
} | @param applicationName
@return the name to be used for an {@link MscManagedProcessApplication} service. | forManagedProcessApplication | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forProcessApplicationModuleService(String moduleName) {
return PROCESS_APPLICATION_MODULE.append(moduleName);
} | @param applicationName
@return the name to be used for an {@link MscManagedProcessApplication} service. | forProcessApplicationModuleService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forProcessApplicationStartService(String moduleName) {
return PROCESS_APPLICATION_MODULE.append(moduleName).append("START");
} | @param applicationName
@return the name to be used for an {@link MscManagedProcessApplication} service. | forProcessApplicationStartService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forProcessApplicationDeploymentService(String moduleName, String deploymentName) {
return PROCESS_APPLICATION_MODULE.append(moduleName).append("DEPLOY").append(deploymentName);
} | <p>Returns the name for a {@link ProcessApplicationDeploymentService} given
the name of the deployment unit and the name of the deployment.</p>
@param processApplicationName
@param deploymentId | forProcessApplicationDeploymentService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forNoViewProcessApplicationStartService(String moduleName) {
return PROCESS_APPLICATION_MODULE.append(moduleName).append("NO_VIEW");
} | <p>Returns the name for a {@link ProcessApplicationDeploymentService} given
the name of the deployment unit and the name of the deployment.</p>
@param processApplicationName
@param deploymentId | forNoViewProcessApplicationStartService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forMscExecutorService() {
return BPM_PLATFORM.append("executor-service");
} | @return the {@link ServiceName} of the {@link MscExecutorService}. | forMscExecutorService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forMscRuntimeContainerJobExecutorService(String jobExecutorName) {
return JOB_EXECUTOR.append(jobExecutorName);
} | @return the {@link ServiceName} of the {@link MscRuntimeContainerJobExecutor} | forMscRuntimeContainerJobExecutorService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forBpmPlatformPlugins() {
return BPM_PLATFORM_PLUGINS;
} | @return the {@link ServiceName} of the {@link MscBpmPlatformPlugins} | forBpmPlatformPlugins | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forProcessApplicationStopService(String moduleName) {
return PROCESS_APPLICATION_MODULE.append(moduleName).append("STOP");
} | @return the {@link ServiceName} of the {@link ProcessApplicationStopService} | forProcessApplicationStopService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forManagedThreadPool(String threadPoolName) {
return JOB_EXECUTOR.append(threadPoolName);
} | @return the {@link ServiceName} of the {@link org.jboss.as.threads.BoundedQueueThreadPoolService} | forManagedThreadPool | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static ServiceName forThreadFactoryService(String threadFactoryName) {
return ThreadsServices.threadFactoryName(threadFactoryName);
} | @return the {@link ServiceName} of the {@link org.jboss.as.threads.ThreadFactoryService} | forThreadFactoryService | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java | Apache-2.0 |
public static AttributeDefinition[] getValueTypes(Object instance, Class clazz) {
try {
if (ObjectTypeAttributeDefinition.class.isAssignableFrom(clazz)) {
Field valueTypesField = clazz.getDeclaredField("valueTypes");
valueTypesField.setAccessible(true);
Object value = valueTypesField.g... | Obtain the 'valueTypes' of the ObjectTypeAttributeDefinition through reflection because they are private in Wildfly 8. | getValueTypes | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java | Apache-2.0 |
public static AttributeDefinition getValueType(Object instance, Class clazz) {
try {
Field valueTypesField = clazz.getDeclaredField("valueType");
valueTypesField.setAccessible(true);
Object value = valueTypesField.get(instance);
if (value != null) {
if (AttributeDefinition.class.isAs... | Obtain the 'valueType' of the ObjectListAttributeDefinition through reflection because they are private in Wildfly 8. | getValueType | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java | Apache-2.0 |
@Override
public boolean isMarshallableAsElement() {
return true;
} | Marshall the attribute as an element where attribute name is the element and value is the text content. | isMarshallableAsElement | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java | Apache-2.0 |
@Override
protected void addValueTypeDescription(ModelNode node,
String prefix,
ResourceBundle bundle,
ResourceDescriptionResolver resolver,
Locale locale... | Fix value type validation for ObjectTypeAttributeDefinition containing a map as value type.
Works without this hack in WF-10, not in WF-8.
@author Christian Lipphardt | addValueTypeDescription | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/FixedObjectTypeAttributeDefinition.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/FixedObjectTypeAttributeDefinition.java | Apache-2.0 |
public static Builder of(final String name, final AttributeDefinition... valueTypes) {
return new Builder(name, valueTypes);
} | Fix value type validation for ObjectTypeAttributeDefinition containing a map as value type.
Works without this hack in WF-10, not in WF-8.
@author Christian Lipphardt | of | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/FixedObjectTypeAttributeDefinition.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/FixedObjectTypeAttributeDefinition.java | Apache-2.0 |
public static Builder of(final String name,
final AttributeDefinition[] valueTypes,
final AttributeDefinition[] moreValueTypes) {
ArrayList<AttributeDefinition> list = new ArrayList<>(Arrays.asList(valueTypes));
list.addAll(Arrays.asList(moreValueTyp... | Fix value type validation for ObjectTypeAttributeDefinition containing a map as value type.
Works without this hack in WF-10, not in WF-8.
@author Christian Lipphardt | of | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/FixedObjectTypeAttributeDefinition.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/FixedObjectTypeAttributeDefinition.java | Apache-2.0 |
public FixedObjectTypeAttributeDefinition build() {
ParameterValidator validator = getValidator();
if (validator == null) {
ObjectTypeValidator objectTypeValidator = new ObjectTypeValidator(isAllowNull(), valueTypes);
setValidator(objectTypeValidator);
}
return new FixedObjectTyp... | Fix value type validation for ObjectTypeAttributeDefinition containing a map as value type.
Works without this hack in WF-10, not in WF-8.
@author Christian Lipphardt | build | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/FixedObjectTypeAttributeDefinition.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/FixedObjectTypeAttributeDefinition.java | Apache-2.0 |
@Override
public Builder setAllowNull(boolean allowNull) {
return super.setAllowNull(allowNull);
} | Fix value type validation for ObjectTypeAttributeDefinition containing a map as value type.
Works without this hack in WF-10, not in WF-8.
@author Christian Lipphardt | setAllowNull | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/FixedObjectTypeAttributeDefinition.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/FixedObjectTypeAttributeDefinition.java | Apache-2.0 |
public static void addServerExecutorDependency(ServiceBuilder<?> serviceBuilder, InjectedValue<ExecutorService> injector, boolean optional) {
ServiceBuilder.DependencyType type = optional ? ServiceBuilder.DependencyType.OPTIONAL : ServiceBuilder.DependencyType.REQUIRED;
serviceBuilder.addDependency(type, JBOSS_... | Adds the JBoss server executor as a dependency to the given service.
Copied from org.jboss.as.server.Services - JBoss 7.2.0.Final | addServerExecutorDependency | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/JBossCompatibilityExtension.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/JBossCompatibilityExtension.java | Apache-2.0 |
public ManagedReference getReference() {
return new ManagedReference() {
public void release() {
}
public Object getInstance() {
return service;
}
};
} | Used by the {@link MscRuntimeContainerDelegate} to create the jndi bindings
@author Daniel Meyer | getReference | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/PlatformServiceReferenceFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/PlatformServiceReferenceFactory.java | Apache-2.0 |
public Object getInstance() {
return service;
} | Used by the {@link MscRuntimeContainerDelegate} to create the jndi bindings
@author Daniel Meyer | getInstance | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/PlatformServiceReferenceFactory.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/PlatformServiceReferenceFactory.java | Apache-2.0 |
@Override
public void transition(ServiceController< ? extends S> controller, Transition transition) {
if(transition.getAfter().equals(Substate.UP)) {
serviceAvailable();
synchronized(this) {
this.notifyAll();
}
} else if(transition.getAfter().equals(Substate.CANCELLED)){
synch... | <p>A {@link Future} implementation backed by a {@link ServiceListener}</p>
@author Daniel Meyer | transition | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | Apache-2.0 |
public boolean cancel(boolean mayInterruptIfRunning) {
// unsupported
return false;
} | <p>A {@link Future} implementation backed by a {@link ServiceListener}</p>
@author Daniel Meyer | cancel | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | Apache-2.0 |
public boolean isCancelled() {
// unsupported
return cancelled;
} | <p>A {@link Future} implementation backed by a {@link ServiceListener}</p>
@author Daniel Meyer | isCancelled | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | Apache-2.0 |
public boolean isDone() {
return value != null;
} | <p>A {@link Future} implementation backed by a {@link ServiceListener}</p>
@author Daniel Meyer | isDone | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | Apache-2.0 |
public V get() throws InterruptedException, ExecutionException {
if (!failed && !cancelled && value == null) {
synchronized (this) {
if (!failed && !cancelled && value == null) {
this.wait();
}
}
}
return value;
} | <p>A {@link Future} implementation backed by a {@link ServiceListener}</p>
@author Daniel Meyer | get | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | Apache-2.0 |
public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException {
if (!failed && !cancelled && value == null) {
synchronized (this) {
if (!failed && !cancelled && value == null) {
this.wait(unit.convert(timeout, TimeUnit.MILLISECONDS));
}
... | <p>A {@link Future} implementation backed by a {@link ServiceListener}</p>
@author Daniel Meyer | get | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java | Apache-2.0 |
@SuppressWarnings({ "rawtypes", "unchecked" })
public void transition(ServiceController controller, Transition transition) {
if(!typeToTrack.isParentOf(controller.getName())) {
return;
}
if(transition.getAfter().getState().equals(State.UP)) {
serviceCollection.add((S) controller.getV... | <p>Service Listener that adds / removes services to / from a collection as they
are added / removed to the service controller.</p>
@author Daniel Meyer
@param <S>
the type of the service to track | transition | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceTracker.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceTracker.java | Apache-2.0 |
public static <T> T runUnderClassloader(final Operation<T> operation, final ClassLoader classLoader) {
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
return AccessController.doPrivileged(new PrivilegedAction<T>() {
public T run() {
try {
return runWithTcc... | Utility methods to manipulate the Current Thread Context Classloader
@author Daniel Meyer | runUnderClassloader | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/Tccl.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/Tccl.java | Apache-2.0 |
public T run() {
try {
return runWithTccl(operation, classLoader);
} catch (Exception e) {
throw new RuntimeException(e);
}
} | Utility methods to manipulate the Current Thread Context Classloader
@author Daniel Meyer | run | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/Tccl.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/Tccl.java | Apache-2.0 |
private static <T> T runWithTccl(Operation<T> operation, ClassLoader classLoader) {
ClassLoader cl = Thread.currentThread().getContextClassLoader();
Thread.currentThread().setContextClassLoader(classLoader);
try {
return operation.run();
} finally {
Thread.currentThread().setContextClassLoad... | Utility methods to manipulate the Current Thread Context Classloader
@author Daniel Meyer | runWithTccl | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/Tccl.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/Tccl.java | Apache-2.0 |
@Override
protected String getSubsystemXsdPath() throws Exception {
return "schema/camundaPlatformSubsystem.xsd";
} | Method is only used by WF-10 to validate the subsystem schema. Isn't executed when running WF8. | getSubsystemXsdPath | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/BpmPlatformSubsystemTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/BpmPlatformSubsystemTest.java | Apache-2.0 |
@Test
public void testParseSubsystemXml() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_PROCESS_ENGINES_ELEMENT_ONLY);
List<ModelNode> operations = parse(subsystemXml);
assertEquals(1, operations.size());
//The add subsystem operation will happen first
ModelNode addS... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseSubsystemXml | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testParseSubsystemXmlWithEngines() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_ENGINES);
List<ModelNode> operations = parse(subsystemXml);
assertEquals(3, operations.size());
} | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseSubsystemXmlWithEngines | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testParseSubsystemXmlWithEnginesAndProperties() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_ENGINES_AND_PROPERTIES);
List<ModelNode> operations = parse(subsystemXml);
assertEquals(5, operations.size());
} | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseSubsystemXmlWithEnginesAndProperties | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testParseSubsystemXmlWithEnginesPropertiesPlugins() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_ENGINES_PROPERTIES_PLUGINS);
List<ModelNode> operations = parse(subsystemXml);
assertEquals(3, operations.size());
} | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseSubsystemXmlWithEnginesPropertiesPlugins | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemWithEnginesPropertiesPlugins() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_ENGINES_PROPERTIES_PLUGINS);
KernelServices services = createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
ServiceContain... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemWithEnginesPropertiesPlugins | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemXml() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_PROCESS_ENGINES_ELEMENT_ONLY);
KernelServices services = createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
ServiceContainer container = services... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemXml | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemXmlPlatformPlugins() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_PROCESS_ENGINES_ELEMENT_ONLY);
KernelServices services = createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
ServiceContainer conta... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemXmlPlatformPlugins | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemWithEnginesXml() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_ENGINES);
KernelServices services = createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
ServiceContainer container = services.getConta... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemWithEnginesXml | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemWithEnginesAndPropertiesXml() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_ENGINES_AND_PROPERTIES);
KernelServices services = createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
ServiceContainer con... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemWithEnginesAndPropertiesXml | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemWithDuplicateEngineNamesXml() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_DUPLICATE_ENGINE_NAMES);
try {
createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
} catch (XMLStreamException f... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemWithDuplicateEngineNamesXml | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemWithSingleEngineXml() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_SINGLE_ENGINE);
KernelServices services = createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
ServiceContainer container = services... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemWithSingleEngineXml | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testParseSubsystemWithJobExecutorXml() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_JOB_EXECUTOR);
// System.out.println(normalizeXML(subsystemXml));
List<ModelNode> operations = parse(subsystemXml);
// System.out.println(operations);
assertEquals(4, ... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseSubsystemWithJobExecutorXml | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemWithJobExecutorXml() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_JOB_EXECUTOR);
KernelServices services = createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
ServiceContainer container = services.ge... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemWithJobExecutorXml | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testParseSubsystemWithJobExecutorAndPropertiesXml() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_JOB_EXECUTOR_AND_PROPERTIES);
List<ModelNode> operations = parse(subsystemXml);
assertEquals(5, operations.size());
// "default" job acquisition //////////... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseSubsystemWithJobExecutorAndPropertiesXml | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemWithJobExecutorAndPropertiesXml() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_JOB_EXECUTOR_AND_PROPERTIES);
KernelServices services = createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
ServiceCont... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemWithJobExecutorAndPropertiesXml | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testJobAcquisitionStrategyOptional() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_JOB_EXECUTOR_WITHOUT_ACQUISITION_STRATEGY);
KernelServices services = createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
ServiceContaine... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testJobAcquisitionStrategyOptional | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testParseSubsystemXmlWithEnginesAndJobExecutor() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_PROCESS_ENGINES_AND_JOB_EXECUTOR);
List<ModelNode> operations = parse(subsystemXml);
System.out.println(operations);
assertEquals(6, operations.size());
} | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseSubsystemXmlWithEnginesAndJobExecutor | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testInstallSubsystemXmlWithEnginesAndJobExecutor() throws Exception {
String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_PROCESS_ENGINES_AND_JOB_EXECUTOR);
KernelServices services = createKernelServicesBuilder(null)
.setSubsystemXml(subsystemXml)
.build();
ServiceCo... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testInstallSubsystemXmlWithEnginesAndJobExecutor | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testParseAndMarshalModelWithAllAvailableOptions() throws Exception {
parseAndMarshalSubsystemModelFromFile(SUBSYSTEM_WITH_ALL_OPTIONS);
} | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseAndMarshalModelWithAllAvailableOptions | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testParseAndMarshalModelWithRequiredOptionsOnly() throws Exception {
parseAndMarshalSubsystemModelFromFile(SUBSYSTEM_WITH_REQUIRED_OPTIONS);
} | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseAndMarshalModelWithRequiredOptionsOnly | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
@Test
public void testParseAndMarshalModelWithAllAvailableOptionsWithExpressions() throws Exception {
System.getProperties().putAll(EXPRESSION_PROPERTIES);
try {
parseAndMarshalSubsystemModelFromFile(SUBSYSTEM_WITH_ALL_OPTIONS_WITH_EXPRESSIONS);
} finally {
for (String key : EXPRESSION_PROPERT... | @author nico.rehwaldt@camunda.com
@author christian.lipphardt@camunda.com | testParseAndMarshalModelWithAllAvailableOptionsWithExpressions | java | camunda/camunda-bpm-platform | distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.