if (componentModel.getName().equals(componentName)) { componentModel.addReference(reference); userConfig.getComposite().addComponent(componentModel); break;
return; switchYard.getSwitchYardConfig().getComposite().addComponent(c); component = c; break;
/** * {@inheritDoc} */ @Override public ScannerOutput<SwitchYardModel> scan(ScannerInput<SwitchYardModel> input) throws IOException { SwitchYardNamespace switchyardNamespace = input.getSwitchyardNamespace(); SwitchYardModel switchyardModel = new V1SwitchYardModel(switchyardNamespace.uri()); CompositeModel compositeModel = new V1CompositeModel(); compositeModel.setName(input.getCompositeName()); ClasspathScanner bpmScanner = new ClasspathScanner(_bpmFilter); for (URL url : input.getURLs()) { bpmScanner.scan(url); } List<Class<?>> bpmClasses = _bpmFilter.getMatchedTypes(); for (Class<?> bpmClass : bpmClasses) { compositeModel.addComponent(scan(bpmClass, switchyardNamespace)); } if (!compositeModel.getModelChildren().isEmpty()) { switchyardModel.setComposite(compositeModel); } return new ScannerOutput<SwitchYardModel>().setModel(switchyardModel); }
/** * {@inheritDoc} */ @Override public ScannerOutput<SwitchYardModel> scan(ScannerInput<SwitchYardModel> input) throws IOException { SwitchYardNamespace switchyardNamespace = input.getSwitchyardNamespace(); SwitchYardModel switchyardModel = new V1SwitchYardModel(switchyardNamespace.uri()); CompositeModel compositeModel = new V1CompositeModel(); compositeModel.setName(input.getCompositeName()); ClasspathScanner bpmScanner = new ClasspathScanner(_bpmFilter); for (URL url : input.getURLs()) { bpmScanner.scan(url); } List<Class<?>> bpmClasses = _bpmFilter.getMatchedTypes(); for (Class<?> bpmClass : bpmClasses) { compositeModel.addComponent(scan(bpmClass, switchyardNamespace)); } if (!compositeModel.getModelChildren().isEmpty()) { switchyardModel.setComposite(compositeModel); } return new ScannerOutput<SwitchYardModel>().setModel(switchyardModel); }
/** * {@inheritDoc} */ @Override public ScannerOutput<SwitchYardModel> scan(ScannerInput<SwitchYardModel> input) throws IOException { SwitchYardNamespace switchyardNamespace = input.getSwitchyardNamespace(); SwitchYardModel switchyardModel = new V1SwitchYardModel(switchyardNamespace.uri()); CompositeModel compositeModel = new V1CompositeModel(); compositeModel.setName(input.getCompositeName()); ClasspathScanner rulesScanner = new ClasspathScanner(_rulesFilter); for (URL url : input.getURLs()) { rulesScanner.scan(url); } List<Class<?>> rulesClasses = _rulesFilter.getMatchedTypes(); for (Class<?> rulesClass : rulesClasses) { compositeModel.addComponent(scan(rulesClass, switchyardNamespace)); } if (!compositeModel.getModelChildren().isEmpty()) { switchyardModel.setComposite(compositeModel); } return new ScannerOutput<SwitchYardModel>().setModel(switchyardModel); }
/** * {@inheritDoc} */ @Override public ScannerOutput<SwitchYardModel> scan(ScannerInput<SwitchYardModel> input) throws IOException { SwitchYardNamespace switchyardNamespace = input.getSwitchyardNamespace(); SwitchYardModel switchyardModel = new V1SwitchYardModel(switchyardNamespace.uri()); CompositeModel compositeModel = new V1CompositeModel(); compositeModel.setName(input.getCompositeName()); ClasspathScanner bpmScanner = new ClasspathScanner(_bpmFilter); for (URL url : input.getURLs()) { bpmScanner.scan(url); } List<Class<?>> bpmClasses = _bpmFilter.getMatchedTypes(); for (Class<?> bpmClass : bpmClasses) { compositeModel.addComponent(scan(bpmClass, switchyardNamespace)); } if (!compositeModel.getModelChildren().isEmpty()) { switchyardModel.setComposite(compositeModel); } return new ScannerOutput<SwitchYardModel>().setModel(switchyardModel); }
camelModel.setJavaClass(routeClass.getName()); componentModel.setImplementation(camelModel); compositeModel.addComponent(componentModel);
compositeModel.addComponent(componentModel); componentModel.setName(getComponentName(name, service)); compositeModel.addComponent(componentModel);
compositeModel.addComponent(componentModel); componentModel.setName(getComponentName(name, service)); compositeModel.addComponent(componentModel);