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
@Override public void stop(StopContext context) { provider.accept(null); ManagedReference reference = null; try { // get the process application component ProcessApplicationInterface processApplication = null; if (paComponentViewSupplier != null) { ComponentView componentView =...
Supplier for the default process engine
stop
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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 != ...
Supplier for the default process engine
invokePostDeploy
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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; }
Supplier for the default process engine
call
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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...
Supplier for the default process engine
invokePreUndeploy
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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; }
Supplier for the default process engine
call
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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<>(); for (Type parameterType : parameterTypes) { boolean injectionResolved = false; if(parameterType instanceof Cl...
Supplier for the default process engine
getInjections
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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; }
Supplier for the default process engine
getPaClass
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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...
Supplier for the default process engine
getDeploymentService
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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; }
Supplier for the default process engine
getValue
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStartService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java
Apache-2.0
@Override public void start(StartContext arg0) throws StartException { provider.accept(this); }
Responsible for invoking {@link BpmPlatformPlugin#postProcessApplicationUndeploy(ProcessApplicationInterface)} @author Daniel Meyer
start
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java
Apache-2.0
@Override public void stop(StopContext arg0) { provider.accept(null); ManagedReference reference = null; try { // get the process application component ProcessApplicationInterface processApplication = null; if(paComponentViewSupplier != null) { ComponentView componentView = paC...
Responsible for invoking {@link BpmPlatformPlugin#postProcessApplicationUndeploy(ProcessApplicationInterface)} @author Daniel Meyer
stop
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ProcessApplicationStopService.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/service/ServiceNames.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/CustomMarshaller.java
Apache-2.0
public static Supplier<ExecutorService> addServerExecutorDependency(ServiceBuilder<?> serviceBuilder) { return serviceBuilder.requires(JBOSS_SERVER_EXECUTOR); }
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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/JBossCompatibilityExtension.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/PlatformServiceReferenceFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/PlatformServiceReferenceFactory.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/PlatformServiceReferenceFactory.java
Apache-2.0
@Override public void handleEvent(final ServiceController<?> controller, final LifecycleEvent event) { if(event.equals(LifecycleEvent.UP)) { serviceAvailable(); synchronized(this) { this.notifyAll(); } } else if(event.equals(LifecycleEvent.FAILED)) { synchronized (this) { ...
<p>A {@link Future} implementation backed by a {@link LifecycleListener}</p> @author Daniel Meyer
handleEvent
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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 LifecycleListener}</p> @author Daniel Meyer
cancel
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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 LifecycleListener}</p> @author Daniel Meyer
isCancelled
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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 LifecycleListener}</p> @author Daniel Meyer
isDone
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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 LifecycleListener}</p> @author Daniel Meyer
get
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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 LifecycleListener}</p> @author Daniel Meyer
get
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceListenerFuture.java
Apache-2.0
@Override @SuppressWarnings({ "unchecked" }) public void handleEvent(final ServiceController<?> controller, final LifecycleEvent event) { if(!typeToTrack.isParentOf(controller.getName())) { return; } if(event.equals(LifecycleEvent.UP)) { serviceCollection.add((S) controller.getValue()); ...
<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
handleEvent
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/ServiceTracker.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/Tccl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/Tccl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/util/Tccl.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/BpmPlatformSubsystemTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/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/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
@Test public void testParseSubsystemXmlWithAllOptionsWithExpressions() throws Exception { String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_ALL_OPTIONS_WITH_EXPRESSIONS); List<ModelNode> operations = parse(subsystemXml); assertEquals(4, operations.size()); // all elements with expression allow...
@author nico.rehwaldt@camunda.com @author christian.lipphardt@camunda.com
testParseSubsystemXmlWithAllOptionsWithExpressions
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
@Test public void testInstallSubsystemXmlWithAllOptionsWithExpressions() throws Exception { System.getProperties().putAll(EXPRESSION_PROPERTIES); try { String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_ALL_OPTIONS_WITH_EXPRESSIONS); KernelServices services = createKernelServicesBuilder(null)...
@author nico.rehwaldt@camunda.com @author christian.lipphardt@camunda.com
testInstallSubsystemXmlWithAllOptionsWithExpressions
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
protected void parseAndMarshalSubsystemModelFromFile(String subsystemXmlFile) throws Exception { String subsystemXml = FileUtils.readFile(subsystemXmlFile); // Parse the subsystem xml and install into the first controller KernelServices servicesA = createKernelServicesBuilder(null).setSubsystemXml(subsystem...
Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one. Compares the models afterwards. @param subsystemXmlFile the name of the subsystem xml file @throws Exception
parseAndMarshalSubsystemModelFromFile
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
protected void commonSubsystemServicesAreInstalled(ServiceContainer container) { assertNotNull("platform service should be installed", container.getService(PLATFORM_SERVICE_NAME)); assertNotNull("process engine service should be bound in JNDI", container.getService(PROCESS_ENGINE_SERVICE_BINDING_SERVICE_NAME));...
Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one. Compares the models afterwards. @param subsystemXmlFile the name of the subsystem xml file @throws Exception
commonSubsystemServicesAreInstalled
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
protected static Comparator<PathAddress> getSubsystemRemoveOrderComparator() { final List<PathAddress> REMOVE_ORDER_OF_SUBSYSTEM = Arrays.asList( PathAddress.pathAddress(BpmPlatformExtension.SUBSYSTEM_PATH), PathAddress.pathAddress(BpmPlatformExtension.JOB_EXECUTOR_PATH), PathAddress.pathAdd...
Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one. Compares the models afterwards. @param subsystemXmlFile the name of the subsystem xml file @throws Exception
getSubsystemRemoveOrderComparator
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
protected PathAddress normalizePathAddress(PathAddress pathAddress) { if (pathAddress.size() == 1 && pathAddress.equals(REMOVE_ORDER_OF_SUBSYSTEM.get(0))) { return pathAddress; } else { // strip subsystem parentAddress return pathAddress.subAddress(1, pathAddress.size()); ...
Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one. Compares the models afterwards. @param subsystemXmlFile the name of the subsystem xml file @throws Exception
normalizePathAddress
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
protected int getOrder(PathAddress pathAddress) { for (PathAddress orderedAddress : REMOVE_ORDER_OF_SUBSYSTEM) { if (orderedAddress.getLastElement().getKey().equals(pathAddress.getLastElement().getKey())) { return REMOVE_ORDER_OF_SUBSYSTEM.indexOf(orderedAddress); } } ...
Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one. Compares the models afterwards. @param subsystemXmlFile the name of the subsystem xml file @throws Exception
getOrder
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
@Override public int compare(PathAddress o1, PathAddress o2) { int orderO1 = getOrder(normalizePathAddress(o1)); int orderO2 = getOrder(normalizePathAddress(o2)); if (orderO1 < orderO2) { return -1; } else if (orderO1 > orderO2) { return 1; } else { ...
Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one. Compares the models afterwards. @param subsystemXmlFile the name of the subsystem xml file @throws Exception
compare
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
private void assertExpressionType(ModelNode operation, String... elements) { assertModelType(ModelType.EXPRESSION, operation, elements); }
Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one. Compares the models afterwards. @param subsystemXmlFile the name of the subsystem xml file @throws Exception
assertExpressionType
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
private void assertStringType(ModelNode operation, String... elements) { assertModelType(ModelType.STRING, operation, elements); }
Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one. Compares the models afterwards. @param subsystemXmlFile the name of the subsystem xml file @throws Exception
assertStringType
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
private void assertModelType(ModelType type, ModelNode operation, String... elements) { for (String element : elements) { assertEquals(type, operation.get(element).getType()); } }
Parses and marshall the given subsystemXmlFile into one controller, then reads the model into second one. Compares the models afterwards. @param subsystemXmlFile the name of the subsystem xml file @throws Exception
assertModelType
java
camunda/camunda-bpm-platform
distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly/subsystem/src/test/java/org/camunda/bpm/container/impl/jboss/test/JBossSubsystemXMLTest.java
Apache-2.0
public boolean isDefault() { return isDefault; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
isDefault
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public void setDefault(boolean isDefault) { this.isDefault = isDefault; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
setDefault
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public String getEngineName() { return engineName; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
getEngineName
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public void setEngineName(String engineName) { this.engineName = engineName; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
setEngineName
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public String getDatasourceJndiName() { return datasourceJndiName; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
getDatasourceJndiName
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public void setDatasourceJndiName(String datasourceJndiName) { this.datasourceJndiName = datasourceJndiName; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
setDatasourceJndiName
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public String getHistoryLevel() { return historyLevel; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
getHistoryLevel
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public void setHistoryLevel(String historyLevel) { this.historyLevel = historyLevel; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
setHistoryLevel
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public String getConfiguration() { return configuration; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
getConfiguration
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public void setConfiguration(String configuration) { this.configuration = configuration; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
setConfiguration
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public Map<String, String> getConfigurationProperties() { return configurationProperties; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
getConfigurationProperties
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public void setConfigurationProperties(Map<String, String> properties) { this.configurationProperties = properties; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
setConfigurationProperties
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public Map<String, String> getFoxLegacyProperties() { return foxLegacyProperties; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
getFoxLegacyProperties
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public void setFoxLegacyProperties(Map<String, String> foxLegacyProperties) { this.foxLegacyProperties = foxLegacyProperties; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
setFoxLegacyProperties
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public List<ProcessEnginePluginXml> getPluginConfigurations() { return pluginConfigurations; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
getPluginConfigurations
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public void setPluginConfigurations(List<ProcessEnginePluginXml> pluginConfigurations) { this.pluginConfigurations = pluginConfigurations; }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
setPluginConfigurations
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public boolean isIdentityUsed() { Object object = getFoxLegacyProperties().get(PROP_IS_IDENTITY_USED); if(object == null) { return true; } else { return Boolean.parseBoolean((String) object); } }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
isIdentityUsed
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public boolean isAutoSchemaUpdate() { Object object = getFoxLegacyProperties().get(PROP_IS_AUTO_SCHEMA_UPDATE); if(object == null) { return true; } else { return Boolean.parseBoolean((String) object); } }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
isAutoSchemaUpdate
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public boolean isActivateJobExecutor() { Object object = getFoxLegacyProperties().get(PROP_IS_ACTIVATE_JOB_EXECUTOR); if(object == null) { return true; } else { return Boolean.parseBoolean((String) object); } }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
isActivateJobExecutor
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public String getDbTablePrefix() { Object object = getFoxLegacyProperties().get(PROP_DB_TABLE_PREFIX); if(object == null) { return null; } else { return (String) object; } }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
getDbTablePrefix
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public String getJobExecutorAcquisitionName() { Object object = getFoxLegacyProperties().get(PROP_JOB_EXECUTOR_ACQUISITION_NAME); if(object == null) { return "default"; } else { return (String) object; } }
@param isDefault @param engineName @param datasourceJndiName @param historyLevel @param configuration @param properties @param pluginConfigurations
getJobExecutorAcquisitionName
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
public void validate() { StringBuilder validationErrorBuilder = new StringBuilder("Process engine configuration is invalid: \n"); boolean isValid = true; if(datasourceJndiName == null || datasourceJndiName.isEmpty()) { isValid = false; validationErrorBuilder.append(" property 'datasourc...
validates the configuration and throws {@link ProcessEngineException} if the configuration is invalid.
validate
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0
private Map<String, String> selectProperties(Map<String, String> allProperties, boolean selectFoxProperties) { Map<String, String> result = null; if (selectFoxProperties) { result = new HashMap<String, String>(); String isAutoSchemaUpdate = allProperties.get(PROP_IS_AUTO_SCHEMA_UPDATE); String...
validates the configuration and throws {@link ProcessEngineException} if the configuration is invalid.
selectProperties
java
camunda/camunda-bpm-platform
distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
https://github.com/camunda/camunda-bpm-platform/blob/master/distro/wildfly26/subsystem/src/main/java/org/camunda/bpm/container/impl/jboss/config/ManagedProcessEngineMetadata.java
Apache-2.0