use of org.kie.server.services.api.KieServerApplicationComponentsService in project droolsjbpm-integration by kiegroup.
the class JBPMClusterKieServerExtension method getAppComponents.
@Override
public List<Object> getAppComponents(SupportedTransports type) {
List<Object> appComponentsList = new ArrayList<>();
Object[] services = { clusterService };
ServiceLoader<KieServerApplicationComponentsService> appComponentsServices = ServiceLoader.load(KieServerApplicationComponentsService.class);
for (KieServerApplicationComponentsService appComponentsService : appComponentsServices) {
appComponentsList.addAll(appComponentsService.getAppComponents(EXTENSION_NAME, type, services));
}
return appComponentsList;
}
use of org.kie.server.services.api.KieServerApplicationComponentsService in project droolsjbpm-integration by kiegroup.
the class DroolsKieServerExtension method getAppComponents.
@Override
public List<Object> getAppComponents(SupportedTransports type) {
ServiceLoader<KieServerApplicationComponentsService> appComponentsServices = ServiceLoader.load(KieServerApplicationComponentsService.class);
List<Object> appComponentsList = new ArrayList<Object>();
Object[] services = { batchCommandService, rulesExecutionService, registry };
for (KieServerApplicationComponentsService appComponentsService : appComponentsServices) {
appComponentsList.addAll(appComponentsService.getAppComponents(EXTENSION_NAME, type, services));
}
return appComponentsList;
}
use of org.kie.server.services.api.KieServerApplicationComponentsService in project droolsjbpm-integration by kiegroup.
the class CaseKieServerExtension method getAppComponents.
@Override
public List<Object> getAppComponents(SupportedTransports type) {
List<Object> appComponentsList = new ArrayList<Object>();
if (!initialized) {
return appComponentsList;
}
ServiceLoader<KieServerApplicationComponentsService> appComponentsServices = ServiceLoader.load(KieServerApplicationComponentsService.class);
Object[] services = { caseManagementServiceBase, caseManagementRuntimeDataService, caseAdminServiceBase, registry, advanceCaseRuntimeDataService };
for (KieServerApplicationComponentsService appComponentsService : appComponentsServices) {
appComponentsList.addAll(appComponentsService.getAppComponents(EXTENSION_NAME, type, services));
}
return appComponentsList;
}
use of org.kie.server.services.api.KieServerApplicationComponentsService in project droolsjbpm-integration by kiegroup.
the class OptaplannerKieServerExtension method getAppComponents.
@Override
public List<Object> getAppComponents(SupportedTransports type) {
ServiceLoader<KieServerApplicationComponentsService> appComponentsServices = ServiceLoader.load(KieServerApplicationComponentsService.class);
List<Object> appComponentsList = new ArrayList<>();
Object[] services = { solverServiceBase, registry };
for (KieServerApplicationComponentsService appComponentsService : appComponentsServices) {
appComponentsList.addAll(appComponentsService.getAppComponents(EXTENSION_NAME, type, services));
}
return appComponentsList;
}
use of org.kie.server.services.api.KieServerApplicationComponentsService in project droolsjbpm-integration by kiegroup.
the class ScenarioSimulationKieServerExtension method getAppComponents.
@Override
public List<Object> getAppComponents(SupportedTransports type) {
ServiceLoader<KieServerApplicationComponentsService> appComponentsServices = ServiceLoader.load(KieServerApplicationComponentsService.class);
List<Object> appComponentsList = new ArrayList<>();
Object[] services = { context, scenarioSimulationService };
for (KieServerApplicationComponentsService appComponentsService : appComponentsServices) {
appComponentsList.addAll(appComponentsService.getAppComponents(EXTENSION_NAME, type, services));
}
return appComponentsList;
}
Aggregations