release version 1.10.0

This commit is contained in:
2024-12-14 04:07:49 +03:00
parent a5088587f7
commit c6b3d793c4
1916 changed files with 254306 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{
"component": {
"kind": "model",
"name": "redeliveryPolicy",
"title": "Redelivery Policy",
"description": "To configure re-delivery for error handling",
"deprecated": false,
"label": "configuration",
"javaType": "org.apache.camel.model.RedeliveryPolicyDefinition",
"artifactId": "camel-core-engine",
"input": false,
"output": false
},
"componentProperties": {},
"properties": {
"maximumRedeliveries": { "kind": "attribute", "displayName": "Maximum Redeliveries", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": false, "description": "Sets the maximum redeliveries x = redeliver at most x times 0 = no redeliveries -1 = redeliver forever" },
"redeliveryDelay": { "kind": "attribute", "displayName": "Redelivery Delay", "required": false, "type": "duration", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Sets the initial redelivery delay" },
"asyncDelayedRedelivery": { "kind": "attribute", "displayName": "Async Delayed Redelivery", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Allow synchronous delayed redelivery. The route, in particular the consumer's component, must support the Asynchronous Routing Engine (e.g. seda)." },
"backOffMultiplier": { "kind": "attribute", "displayName": "Back Off Multiplier", "required": false, "type": "number", "javaType": "java.lang.Double", "deprecated": false, "secret": false, "description": "Sets the back off multiplier" },
"useExponentialBackOff": { "kind": "attribute", "displayName": "Use Exponential Back Off", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Turn on exponential backk off" },
"collisionAvoidanceFactor": { "kind": "attribute", "displayName": "Collision Avoidance Factor", "required": false, "type": "number", "javaType": "java.lang.Double", "deprecated": false, "secret": false, "description": "Sets the collision avoidance factor" },
"useCollisionAvoidance": { "kind": "attribute", "displayName": "Use Collision Avoidance", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Turn on collision avoidance." },
"maximumRedeliveryDelay": { "kind": "attribute", "displayName": "Maximum Redelivery Delay", "required": false, "type": "duration", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Sets the maximum delay between redelivery" },
"retriesExhaustedLogLevel": { "kind": "attribute", "displayName": "Retries Exhausted Log Level", "required": false, "type": "object", "javaType": "org.apache.camel.LoggingLevel", "deprecated": false, "secret": false, "description": "Sets the logging level to use when retries has exhausted" },
"retryAttemptedLogLevel": { "kind": "attribute", "displayName": "Retry Attempted Log Level", "required": false, "type": "object", "javaType": "org.apache.camel.LoggingLevel", "deprecated": false, "secret": false, "description": "Sets the logging level to use for logging retry attempts" },
"retryAttemptedLogInterval": { "kind": "attribute", "displayName": "Retry Attempted Log Interval", "required": false, "type": "integer", "javaType": "java.lang.Integer", "deprecated": false, "secret": false, "description": "Sets the interval to use for logging retry attempts" },
"logRetryAttempted": { "kind": "attribute", "displayName": "Log Retry Attempted", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether retry attempts should be logged or not. Can be used to include or reduce verbose." },
"logStackTrace": { "kind": "attribute", "displayName": "Log Stack Trace", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether stack traces should be logged. Can be used to include or reduce verbose." },
"logRetryStackTrace": { "kind": "attribute", "displayName": "Log Retry Stack Trace", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether stack traces should be logged when an retry attempt failed. Can be used to include or reduce verbose." },
"logHandled": { "kind": "attribute", "displayName": "Log Handled", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether handled exceptions should be logged or not. Can be used to include or reduce verbose." },
"logNewException": { "kind": "attribute", "displayName": "Log New Exception", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether new exceptions should be logged or not. Can be used to include or reduce verbose. A new exception is an exception that was thrown while handling a previous exception." },
"logContinued": { "kind": "attribute", "displayName": "Log Continued", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether continued exceptions should be logged or not. Can be used to include or reduce verbose." },
"logExhausted": { "kind": "attribute", "displayName": "Log Exhausted", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether exhausted exceptions should be logged or not. Can be used to include or reduce verbose." },
"logExhaustedMessageHistory": { "kind": "attribute", "displayName": "Log Exhausted Message History", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether exhausted exceptions should be logged including message history or not (supports property placeholders). Can be used to include or reduce verbose." },
"logExhaustedMessageBody": { "kind": "attribute", "displayName": "Log Exhausted Message Body", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Sets whether exhausted message body should be logged including message history or not (supports property placeholders). Can be used to include or reduce verbose. Requires logExhaustedMessageHistory to be enabled." },
"disableRedelivery": { "kind": "attribute", "displayName": "Disable Redelivery", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Disables redelivery (same as setting maximum redeliveries to 0)" },
"delayPattern": { "kind": "attribute", "displayName": "Delay Pattern", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Sets the delay pattern with delay intervals." },
"allowRedeliveryWhileStopping": { "kind": "attribute", "displayName": "Allow Redelivery While Stopping", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "secret": false, "defaultValue": false, "description": "Controls whether to allow redelivery while stopping\/shutting down a route that uses error handling." },
"exchangeFormatterRef": { "kind": "attribute", "displayName": "Exchange Formatter Ref", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "secret": false, "description": "Sets the reference of the instance of org.apache.camel.spi.ExchangeFormatter to generate the log message from exchange." }
}
}

View File

@ -0,0 +1,95 @@
/*-
* ~~~~~~licensing~~~~~~
* route-producing
* ==========
* Copyright (C) 2020 - 2024 EmDev LLC
* ==========
* You may not use this file except in accordance with the License Terms of the Copyright
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
* rights to the Software and any copies are the property of the Copyright Holder. Unless
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
* Software for commercial purposes to provide services to third parties.
*
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
* Under no circumstances does the Copyright Holder guarantee or promise that the
* Software provided by him will be suitable or not suitable for the specific purposes
* of the User, that the Software will meet all commercial and personal subjective
* expectations of the User, that the Software will work properly, without technical
* errors, quickly and uninterruptedly.
*
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
* to the User for any direct or indirect losses of the User, his expenses or actual
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
* or damage to data, property, etc.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.platform.routes.design.library;
import java.util.List;
import org.osgi.framework.Filter;
public interface ComponentLibrary {
String COMPONENT_LIBRARY_PROVIDER_HEADER = "Entaxy-Component-Library-Provider";
String COMPONENT_LIBRARY_RESOURCE_PROTOCOL = "component-library";
String getName();
String getUrl();
List<Schema> getSchemas();
default Filter getObjectFilter() {
return null;
};
public interface Schema {
String getRoot();
default String getRootUrl() {
return getRoot();
}
String getNamespace();
String getPrefix();
boolean isPublic();
default ComponentLibrary getLibrary() {
return null;
};
default Filter getObjectFilter() {
return null;
};
List<Transformation> getTransformations();
String getUiDescriptor();
}
public interface Transformation {
String getProcessor();
String getSource();
default String getSourceUrl() {
return getSource();
}
default Filter getObjectFilter() {
return null;
};
default ComponentLibrary.Schema getSchema() {
return null;
}
}
}

View File

@ -0,0 +1,49 @@
/*-
* ~~~~~~licensing~~~~~~
* route-producing
* ==========
* Copyright (C) 2020 - 2024 EmDev LLC
* ==========
* You may not use this file except in accordance with the License Terms of the Copyright
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
* rights to the Software and any copies are the property of the Copyright Holder. Unless
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
* Software for commercial purposes to provide services to third parties.
*
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
* Under no circumstances does the Copyright Holder guarantee or promise that the
* Software provided by him will be suitable or not suitable for the specific purposes
* of the User, that the Software will meet all commercial and personal subjective
* expectations of the User, that the Software will work properly, without technical
* errors, quickly and uninterruptedly.
*
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
* to the User for any direct or indirect losses of the User, his expenses or actual
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
* or damage to data, property, etc.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.platform.routes.design.library;
import java.util.List;
import java.util.Map;
public interface ComponentLibraryManager {
List<ComponentLibrary> getLibraries();
List<ComponentLibrary> getLibrariesForContext(Map<String, Object> context);
List<ComponentLibrary.Schema> getSchemasForNamespace(String namespace);
List<ComponentLibrary.Schema> getSchemasForPrefix(String prefix);
List<ComponentLibrary.Schema> getSchemasForContext(Map<String, Object> context);
List<ComponentLibrary.Schema> getAllSchemas();
List<ComponentLibrary.Schema> getAllSchemasWithUiDescriptor();
List<ComponentLibrary.Transformation> getTransformationsForContext(Map<String, Object> context);
}

View File

@ -0,0 +1,108 @@
/*-
* ~~~~~~licensing~~~~~~
* route-producing
* ==========
* Copyright (C) 2020 - 2024 EmDev LLC
* ==========
* You may not use this file except in accordance with the License Terms of the Copyright
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
* rights to the Software and any copies are the property of the Copyright Holder. Unless
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
* Software for commercial purposes to provide services to third parties.
*
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
* Under no circumstances does the Copyright Holder guarantee or promise that the
* Software provided by him will be suitable or not suitable for the specific purposes
* of the User, that the Software will meet all commercial and personal subjective
* expectations of the User, that the Software will work properly, without technical
* errors, quickly and uninterruptedly.
*
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
* to the User for any direct or indirect losses of the User, his expenses or actual
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
* or damage to data, property, etc.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.platform.routes.design.library;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.entaxy.platform.core.producer.resources.EntaxyResourceProducingProcessor;
import ru.entaxy.platform.core.producer.resources.EntaxyResourceProducingProcessorService;
@Component(service = EntaxyResourceProducingProcessor.class, immediate = true)
public class ComponentLibraryResourceProcessor implements EntaxyResourceProducingProcessor {
private static final Logger LOG = LoggerFactory.getLogger(ComponentLibraryResourceProcessor.class);
@Reference(cardinality = ReferenceCardinality.MANDATORY)
EntaxyResourceProducingProcessorService producingProcessorService;
@Reference(cardinality = ReferenceCardinality.MANDATORY)
ComponentLibraryManager componentLibraryManager;
@Override
public String getName() {
return "component-library";
}
@SuppressWarnings("unchecked")
@Override
public Object process(Object value, Map<String, Object> properties) throws Exception {
LOG.debug("\n\t ComponentLibraryResourceProcessor:");
LOG.debug("\n\t" + properties.toString());
Map<String, Object> parameters;
if (properties.containsKey("resourceContext") && (properties.get("resourceContext") instanceof Map))
parameters = new HashMap<>((Map<String, Object>) properties.get("resourceContext"));
else
parameters = new HashMap<>(properties);
if (properties.containsKey("parameters") && (properties.get("parameters") instanceof Map))
parameters.putAll((Map<String, Object>) properties.get("parameters"));
// List<ComponentLibrary> libraries =
// componentLibraryManager.getLibrariesForContext(parameters);
// List<ComponentLibrary.Schema> schemas =
// componentLibraryManager.getSchemasForContext(parameters);
List<ComponentLibrary.Transformation> transformations =
componentLibraryManager.getTransformationsForContext(parameters);
LOG.info("\n\t TO APPLY:"
+ "\n\tTRANSFORMATIONS:\n\t"
+ transformations.stream().map(t -> "[" + t.getProcessor() + "] " + t.getSource())
.collect(Collectors.joining("\n\t")));
Object result = value;
for (ComponentLibrary.Transformation transformation : transformations) {
Map<String, Object> processorProperties = new HashMap<>();
processorProperties.put(PROP_PROCESSOR, transformation.getProcessor());
processorProperties.put("source", transformation.getSourceUrl());
processorProperties.put("parameters", parameters);
LOG.info("\n EXEC TRANSFORM: [{}]/[{}]/[{}]/[{}]\nWITH PROPERTIES:\n{}", transformation.getSourceUrl(),
transformation.getProcessor(), transformation.getSchema().getRoot(),
transformation.getSchema().getLibrary().getName(),
processorProperties);
result = producingProcessorService.process(result, processorProperties);
}
return result;
}
}

View File

@ -0,0 +1,326 @@
/*-
* ~~~~~~licensing~~~~~~
* route-producing
* ==========
* Copyright (C) 2020 - 2024 EmDev LLC
* ==========
* You may not use this file except in accordance with the License Terms of the Copyright
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
* rights to the Software and any copies are the property of the Copyright Holder. Unless
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
* Software for commercial purposes to provide services to third parties.
*
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
* Under no circumstances does the Copyright Holder guarantee or promise that the
* Software provided by him will be suitable or not suitable for the specific purposes
* of the User, that the Software will meet all commercial and personal subjective
* expectations of the User, that the Software will work properly, without technical
* errors, quickly and uninterruptedly.
*
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
* to the User for any direct or indirect losses of the User, his expenses or actual
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
* or damage to data, property, etc.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.platform.routes.design.library.impl;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.osgi.framework.Filter;
import org.osgi.service.component.ComponentContext;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Deactivate;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.entaxy.esb.resources.EntaxyResourceURLFactory;
import ru.entaxy.platform.base.support.CommonUtils;
import ru.entaxy.platform.routes.design.library.ComponentLibrary;
import ru.entaxy.platform.routes.design.library.ComponentLibrary.Schema;
import ru.entaxy.platform.routes.design.library.ComponentLibrary.Transformation;
import ru.entaxy.platform.routes.design.library.ComponentLibraryManager;
import ru.entaxy.platform.routes.design.library.storage.ComponentLibraryStorage;
@Component(service = ComponentLibraryManager.class, immediate = true)
public class ComponentLibraryManagerImpl implements ComponentLibraryManager, ComponentLibraryStorage.StorageListener {
private static final Logger LOG = LoggerFactory.getLogger(ComponentLibraryManagerImpl.class);
@Reference(cardinality = ReferenceCardinality.MANDATORY)
ComponentLibraryStorage libraryStorage;
protected List<ComponentLibrary> libraries = new ArrayList<>();
protected List<ComponentLibrary.Schema> schemas = new ArrayList<>();
protected List<ComponentLibrary.Transformation> transformations = new ArrayList<>();
protected Object librariesLock = new Object();
@Activate
public void activate(ComponentContext componentContext) {
initialize();
this.libraryStorage.registerListener(this);
}
@Deactivate
public void deactivate(ComponentContext componentContext) {
this.libraryStorage.unregisterListener(this);
}
protected void initialize() {
synchronized (librariesLock) {
this.libraries = wrap(libraryStorage.getLibraries());
for (ComponentLibrary lib : libraries)
for (ComponentLibrary.Schema schema : lib.getSchemas()) {
schemas.add(schema);
for (ComponentLibrary.Transformation transformation : schema.getTransformations()) {
transformations.add(transformation);
}
}
}
}
protected void reload() {
synchronized (librariesLock) {
libraries.clear();
schemas.clear();
transformations.clear();
}
initialize();
}
@Override
public List<ComponentLibrary> getLibraries() {
return this.libraries;
}
@Override
public List<ComponentLibrary> getLibrariesForContext(Map<String, Object> context) {
return this.libraries.stream().filter(l -> l.getObjectFilter() == null || l.getObjectFilter().matches(context))
.collect(Collectors.toList());
}
@Override
public List<Schema> getSchemasForNamespace(String namespace) {
return this.schemas.stream().filter(s -> s.getNamespace().equals(namespace))
.collect(Collectors.toList());
}
@Override
public List<Schema> getSchemasForPrefix(String prefix) {
return this.schemas.stream().filter(s -> s.getPrefix().equals(prefix))
.collect(Collectors.toList());
}
@Override
public List<Schema> getSchemasForContext(Map<String, Object> context) {
return this.schemas.stream().filter(s -> s.getObjectFilter() == null || s.getObjectFilter().matches(context))
.collect(Collectors.toList());
}
@Override
public List<Schema> getAllSchemas() {
return this.schemas;
}
@Override
public List<Schema> getAllSchemasWithUiDescriptor() {
return this.schemas.stream().filter(s -> CommonUtils.isValid(s.getUiDescriptor())).collect(Collectors.toList());
}
@Override
public List<Transformation> getTransformationsForContext(Map<String, Object> context) {
return this.transformations.stream()
.filter(t -> t.getObjectFilter() == null || t.getObjectFilter().matches(context))
.collect(Collectors.toList());
}
/* ComponentLibraryStorage.StorageListener */
@Override
public void storageUpdated() {
reload();
}
protected URL resolve(ComponentLibrary library, String relative) {
try {
URL libraryUrl = new URL(library.getUrl() + "/");
URI uri = libraryUrl.toURI().resolve(relative);
return uri.toURL();
} catch (URISyntaxException | MalformedURLException e) {
LOG.error(String.format("Error resolving url [%s] for library [%s]", relative, library.getName()), e);
return null;
}
}
/* wrappers */
protected List<ComponentLibrary> wrap(List<ComponentLibrary> originList) {
return originList.stream().map(l -> new LibraryWrapper(l)).collect(Collectors.toList());
}
protected class LibraryWrapper implements ComponentLibrary {
ComponentLibrary origin;
List<ComponentLibrary.Schema> wrappedSchemas = null;
public LibraryWrapper(ComponentLibrary origin) {
this.origin = origin;
}
@Override
public String getName() {
return origin.getName();
}
@Override
public String getUrl() {
try {
return EntaxyResourceURLFactory.getGlobalUrl(origin.getUrl()).toString();
} catch (MalformedURLException e) {
LOG.error("Error getting global URL for [{}]", origin.getUrl());
return origin.getUrl();
}
}
@Override
public List<Schema> getSchemas() {
if (wrappedSchemas == null) {
wrappedSchemas = new ArrayList<>();
for (ComponentLibrary.Schema schema : origin.getSchemas())
wrappedSchemas.add(new SchemaWrapper(schema, this));
}
return wrappedSchemas;
}
@Override
public Filter getObjectFilter() {
return origin.getObjectFilter();
}
}
protected class SchemaWrapper implements ComponentLibrary.Schema {
ComponentLibrary library;
ComponentLibrary.Schema origin;
List<ComponentLibrary.Transformation> wrappedTransformations = null;
public SchemaWrapper(ComponentLibrary.Schema origin, ComponentLibrary library) {
this.library = library;
this.origin = origin;
}
@Override
public String getRoot() {
return origin.getRoot();
}
@Override
public String getRootUrl() {
URL resolved = resolve(library, getRoot());
if (resolved != null)
return resolved.toString();
return getRoot();
}
@Override
public String getNamespace() {
return origin.getNamespace();
}
@Override
public String getPrefix() {
return origin.getPrefix();
}
@Override
public boolean isPublic() {
return origin.isPublic();
}
@Override
public List<Transformation> getTransformations() {
if (wrappedTransformations == null) {
wrappedTransformations = new ArrayList<>();
for (ComponentLibrary.Transformation transformation : origin.getTransformations())
wrappedTransformations.add(new TransformationWrapper(transformation, this));
}
return wrappedTransformations;
}
@Override
public ComponentLibrary getLibrary() {
return this.library;
}
@Override
public Filter getObjectFilter() {
Filter originFilter = origin.getObjectFilter();
return originFilter == null ? library.getObjectFilter() : originFilter;
}
@Override
public String getUiDescriptor() {
return origin.getUiDescriptor();
}
}
protected class TransformationWrapper implements ComponentLibrary.Transformation {
ComponentLibrary.Transformation origin;
ComponentLibrary.Schema schema;
public TransformationWrapper(ComponentLibrary.Transformation origin, ComponentLibrary.Schema schema) {
this.origin = origin;
this.schema = schema;
}
@Override
public String getProcessor() {
return origin.getProcessor();
}
@Override
public String getSource() {
return origin.getSource();
}
@Override
public String getSourceUrl() {
if (!CommonUtils.isValid(getSource()))
return null;
URL resolved = resolve(schema.getLibrary(), getSource());
if (resolved != null)
return resolved.toString();
return getSource();
}
@Override
public Schema getSchema() {
return this.schema;
}
@Override
public Filter getObjectFilter() {
Filter originFilter = origin.getObjectFilter();
return originFilter == null ? schema.getObjectFilter() : originFilter;
}
}
}

View File

@ -0,0 +1,65 @@
/*-
* ~~~~~~licensing~~~~~~
* route-producing
* ==========
* Copyright (C) 2020 - 2024 EmDev LLC
* ==========
* You may not use this file except in accordance with the License Terms of the Copyright
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
* rights to the Software and any copies are the property of the Copyright Holder. Unless
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
* Software for commercial purposes to provide services to third parties.
*
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
* Under no circumstances does the Copyright Holder guarantee or promise that the
* Software provided by him will be suitable or not suitable for the specific purposes
* of the User, that the Software will meet all commercial and personal subjective
* expectations of the User, that the Software will work properly, without technical
* errors, quickly and uninterruptedly.
*
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
* to the User for any direct or indirect losses of the User, his expenses or actual
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
* or damage to data, property, etc.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.platform.routes.design.library.shell;
import java.util.stream.Collectors;
import org.apache.karaf.shell.api.action.Action;
import org.apache.karaf.shell.api.action.Command;
import org.apache.karaf.shell.api.action.lifecycle.Service;
import ru.entaxy.platform.base.support.karaf.shell.ShellTableExt;
import ru.entaxy.platform.routes.design.library.ComponentLibrary;
@Service
@Command(scope = ComponentLibraryCommandSupport.COMMAND_SCOPE, name = "component-library-list")
public class CommandLibraryList extends ComponentLibraryCommandSupport implements Action {
@Override
public Object execute() throws Exception {
ShellTableExt tableExt = new ShellTableExt();
tableExt.column("Name");
tableExt.column("Url");
tableExt.column("Filter");
tableExt.column("Schemas");
for (ComponentLibrary library : componentLibraryManager.getLibraries()) {
tableExt.addRow().addContent(
library.getName(),
library.getUrl(),
library.getObjectFilter() == null ? "" : library.getObjectFilter().toString(),
library.getSchemas().stream().map(s -> s.getRoot() + " [" + s.getRootUrl() + "]")
.collect(Collectors.joining("\n")));
}
// output to console
tableExt.print(System.out);
return null;
}
}

View File

@ -0,0 +1,39 @@
/*-
* ~~~~~~licensing~~~~~~
* route-producing
* ==========
* Copyright (C) 2020 - 2024 EmDev LLC
* ==========
* You may not use this file except in accordance with the License Terms of the Copyright
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
* rights to the Software and any copies are the property of the Copyright Holder. Unless
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
* Software for commercial purposes to provide services to third parties.
*
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
* Under no circumstances does the Copyright Holder guarantee or promise that the
* Software provided by him will be suitable or not suitable for the specific purposes
* of the User, that the Software will meet all commercial and personal subjective
* expectations of the User, that the Software will work properly, without technical
* errors, quickly and uninterruptedly.
*
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
* to the User for any direct or indirect losses of the User, his expenses or actual
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
* or damage to data, property, etc.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.platform.routes.design.library.shell;
import org.apache.karaf.shell.api.action.lifecycle.Reference;
import ru.entaxy.platform.routes.design.library.ComponentLibraryManager;
public class ComponentLibraryCommandSupport {
public static final String COMMAND_SCOPE = "entaxy";
@Reference
ComponentLibraryManager componentLibraryManager;
}

View File

@ -0,0 +1,55 @@
/*-
* ~~~~~~licensing~~~~~~
* route-producing
* ==========
* Copyright (C) 2020 - 2024 EmDev LLC
* ==========
* You may not use this file except in accordance with the License Terms of the Copyright
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
* rights to the Software and any copies are the property of the Copyright Holder. Unless
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
* Software for commercial purposes to provide services to third parties.
*
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
* Under no circumstances does the Copyright Holder guarantee or promise that the
* Software provided by him will be suitable or not suitable for the specific purposes
* of the User, that the Software will meet all commercial and personal subjective
* expectations of the User, that the Software will work properly, without technical
* errors, quickly and uninterruptedly.
*
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
* to the User for any direct or indirect losses of the User, his expenses or actual
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
* or damage to data, property, etc.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.platform.routes.design.library.storage;
import java.util.ArrayList;
import java.util.List;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import ru.entaxy.esb.resources.EntaxyResourceProcessor;
import ru.entaxy.esb.resources.EntaxyResourceProviderProxy;
import ru.entaxy.esb.resources.impl.AbstractResourceProviderProxy;
import ru.entaxy.platform.routes.design.library.ComponentLibrary;
@Component(service = EntaxyResourceProviderProxy.class, immediate = true)
public class ComponentLibraryResourceProvider extends AbstractResourceProviderProxy {
@Activate
public void activate() {
setProtocol(ComponentLibrary.COMPONENT_LIBRARY_RESOURCE_PROTOCOL);
setTargetProtocol("entaxy-file-internal");
setTargetPath(".component-library");
List<EntaxyResourceProcessor> processors = new ArrayList<>();
setProcessors(processors);
}
}

View File

@ -0,0 +1,392 @@
/*-
* ~~~~~~licensing~~~~~~
* route-producing
* ==========
* Copyright (C) 2020 - 2024 EmDev LLC
* ==========
* You may not use this file except in accordance with the License Terms of the Copyright
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
* rights to the Software and any copies are the property of the Copyright Holder. Unless
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
* Software for commercial purposes to provide services to third parties.
*
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
* Under no circumstances does the Copyright Holder guarantee or promise that the
* Software provided by him will be suitable or not suitable for the specific purposes
* of the User, that the Software will meet all commercial and personal subjective
* expectations of the User, that the Software will work properly, without technical
* errors, quickly and uninterruptedly.
*
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
* to the User for any direct or indirect losses of the User, his expenses or actual
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
* or damage to data, property, etc.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.platform.routes.design.library.storage;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import org.osgi.framework.BundleContext;
import org.osgi.framework.Filter;
import org.osgi.framework.FrameworkUtil;
import org.osgi.framework.InvalidSyntaxException;
import org.osgi.service.component.ComponentContext;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Deactivate;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.reflect.TypeToken;
import ru.entaxy.esb.resources.EntaxyResource;
import ru.entaxy.esb.resources.EntaxyResourceProvider;
import ru.entaxy.platform.base.support.CommonUtils;
import ru.entaxy.platform.base.support.JSONUtils;
import ru.entaxy.platform.routes.design.library.ComponentLibrary;
import ru.entaxy.platform.routes.design.library.storage.ProvidedLibraryDescriptor.ProvidedLibraryResource;
@Component(service = ComponentLibraryStorage.class, immediate = true)
public class ComponentLibraryStorage {
private static final Logger LOG = LoggerFactory.getLogger(ComponentLibraryStorage.class);
protected static final String PROVIDER_FILTER =
"(protocol=" + ComponentLibrary.COMPONENT_LIBRARY_RESOURCE_PROTOCOL + ")";
public static final String LIBRARY_DESCRIPTOR_NAME = "library.json";
protected static final String LIBRARIES_RESOURCE = "libraries.json";
@Reference(cardinality = ReferenceCardinality.MANDATORY, target = PROVIDER_FILTER)
EntaxyResourceProvider resourceProvider;
protected BundleContext bundleContext;
// protected ComponentLibraryTracker libraryTracker;
protected EntaxyResource librariesResource;
protected Libraries libraries;
protected Object librariesLock = new Object();
@Activate
public void activate(ComponentContext componentContext) {
this.bundleContext = componentContext.getBundleContext();
reload();
/*
if (libraryTracker != null)
libraryTracker.close();
libraryTracker = ComponentLibraryTracker.create(this, this.bundleContext);
libraryTracker.open();
*/
}
@Deactivate
public void deactivate() {
/*
if (libraryTracker != null)
libraryTracker.close();
*/
}
protected void load() {
librariesResource = resourceProvider.getResource(LIBRARIES_RESOURCE);
if (!librariesResource.exists()) {
libraries = new Libraries();
try {
updateLibrariesResource();
} catch (IOException e) {
LOG.error("Error saving [" + LIBRARIES_RESOURCE + "]", e);
}
} else {
libraries = new Libraries(librariesResource.getAsString());
}
}
protected void updateLibrariesResource() throws IOException {
try (InputStream is = new ByteArrayInputStream(libraries.toJson().toString().getBytes())) {
librariesResource.save(is);
}
}
public void reload() {
load();
}
synchronized public void addLibrary(ProvidedLibraryDescriptor descriptor, Library library) {
Library existing = libraries.get(library.getName());
long bundleLastModified = descriptor.bundle.getLastModified();
if (existing != null) {
if (existing.lastModified != bundleLastModified) {
LOG.info("Library [{}] must be updated", library.getName());
synchronized (librariesLock) {
try {
uploadLibraryResources(descriptor);
} catch (Exception e) {
LOG.error(String.format("Error uploading resources for library [%s]", library.getName()), e);
}
libraries.update(library, bundleLastModified);
try {
updateLibrariesResource();
LOG.info("Updated library [{}]", library.getName());
notifyListeners();
} catch (IOException e) {
LOG.error("Error updating libraries", e);
}
}
} else {
LOG.info("Library [{}] not changed", library.getName());
}
} else {
LOG.info("Adding new library [{}]", library.getName());
library.lastModified = descriptor.bundle.getLastModified();
synchronized (librariesLock) {
try {
uploadLibraryResources(descriptor);
} catch (Exception e) {
LOG.error(String.format("Error uploading resources for library [%s]", library.getName()), e);
}
libraries.add(library);
try {
updateLibrariesResource();
LOG.info("Added new library [{}]", library.getName());
notifyListeners();
} catch (IOException e) {
LOG.error("Error updating libraries", e);
}
}
}
}
protected void uploadLibraryResources(ProvidedLibraryDescriptor descriptor) throws Exception {
for (ProvidedLibraryResource provided : descriptor.getLibraryResources()) {
String targetPath = descriptor.libraryName + "/" + provided.path;
EntaxyResource resource = resourceProvider.getResource(targetPath);
try (InputStream is = provided.url.openStream()) {
resource.save(is);
} catch (IOException e) {
LOG.error(String.format("Error uploading resource [%s]", targetPath), e);
throw e;
}
}
}
public List<ComponentLibrary> getLibraries() {
return libraries.librariesMap.values().stream().map(l -> (ComponentLibrary) l).collect(Collectors.toList());
}
protected class Libraries {
Map<String, Library> librariesMap;
Object librariesMapLock = new Object();
public Libraries() {
librariesMap = new HashMap<>();
}
public Libraries(String jsonOrigin) {
JsonObject jo = JSONUtils.getJsonRootObject(jsonOrigin);
Type type = new TypeToken<HashMap<String, Library>>() {}.getType();
librariesMap = JSONUtils.GSON.fromJson(jo, type);
for (Library lib : librariesMap.values())
lib.libraryUrl = resourceProvider.getResource(lib.getName()).getURL();
}
public JsonElement toJson() {
return JSONUtils.GSON.toJsonTree(librariesMap);
}
public Library get(String libraryName) {
return librariesMap.get(libraryName);
}
public void add(Library library) {
synchronized (librariesMapLock) {
library.libraryUrl = resourceProvider.getResource(library.getName()).getURL();
this.librariesMap.put(library.getName(), library);
}
}
public void update(Library library, long lastModified) {
this.librariesMap.get(library.getName()).update(library);
this.librariesMap.get(library.getName()).lastModified = lastModified;
}
}
public static abstract class ObjectFilterAware {
public String objectFilter;
transient Filter targetFilter = null;
public Filter getObjectFilter() {
if (!CommonUtils.isValid(objectFilter))
return null;
if (targetFilter == null) {
try {
return FrameworkUtil.createFilter(objectFilter);
} catch (InvalidSyntaxException e) {
LOG.error(String.format("Error creating filter for [%s]", objectFilter), e);
}
}
return targetFilter;
}
}
public static class Library extends ObjectFilterAware implements ComponentLibrary {
public String library;
public long lastModified = -1;
public List<IncludedSchema> schemas;
transient public String libraryUrl;
@Override
public String getName() {
return library;
}
@Override
public String getUrl() {
return libraryUrl;
}
public void update(Library library) {
this.lastModified = library.lastModified;
if (this.schemas == null) {
this.schemas = new ArrayList<>();
} else {
this.schemas.clear();
}
if (library.schemas != null)
this.schemas.addAll(library.schemas);
}
@Override
public List<ComponentLibrary.Schema> getSchemas() {
return this.schemas.stream().map(s -> (ComponentLibrary.Schema) s).collect(Collectors.toList());
}
public static class IncludedSchema extends ObjectFilterAware implements ComponentLibrary.Schema {
public String root;
public String namespace;
public String prefix;
public boolean isPublic;
public List<Map<String, Object>> transform;
public String uiDescriptor;
transient List<IncludedTransformation> transformations = null;
@Override
public String getRoot() {
return root;
}
@Override
public String getNamespace() {
return namespace;
}
@Override
public String getPrefix() {
return prefix;
}
@Override
public boolean isPublic() {
return isPublic;
}
@Override
public List<Transformation> getTransformations() {
if (this.transformations == null) {
this.transformations = new ArrayList<>();
for (Map<String, Object> transformationData : transform) {
transformations.add(new IncludedTransformation(transformationData));
}
}
return this.transformations.stream().map(t -> (ComponentLibrary.Transformation) t)
.collect(Collectors.toList());
}
@Override
public String getUiDescriptor() {
return uiDescriptor;
}
}
public static class IncludedTransformation extends ObjectFilterAware
implements ComponentLibrary.Transformation {
protected Map<String, Object> data;
public IncludedTransformation(Map<String, Object> data) {
this.data = new HashMap<>(data);
this.objectFilter = data.getOrDefault("objectFilter", "").toString();
}
@Override
public String getProcessor() {
return data.getOrDefault("processor", "unknown").toString();
}
@Override
public String getSource() {
return data.getOrDefault("source", "unknown").toString();
}
}
}
protected List<StorageListener> listeners = new ArrayList<>();
protected Object listenersLock = new Object();
public void registerListener(StorageListener listener) {
synchronized (listenersLock) {
if (!listeners.contains(listener))
listeners.add(listener);
}
}
public void unregisterListener(StorageListener listener) {
synchronized (listenersLock) {
listeners.remove(listener);
}
}
protected void notifyListeners() {
synchronized (listenersLock) {
for (StorageListener listener : listeners)
listener.storageUpdated();
}
}
public interface StorageListener {
void storageUpdated();
}
}

View File

@ -0,0 +1,107 @@
/*-
* ~~~~~~licensing~~~~~~
* route-producing
* ==========
* Copyright (C) 2020 - 2024 EmDev LLC
* ==========
* You may not use this file except in accordance with the License Terms of the Copyright
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
* rights to the Software and any copies are the property of the Copyright Holder. Unless
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
* Software for commercial purposes to provide services to third parties.
*
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
* Under no circumstances does the Copyright Holder guarantee or promise that the
* Software provided by him will be suitable or not suitable for the specific purposes
* of the User, that the Software will meet all commercial and personal subjective
* expectations of the User, that the Software will work properly, without technical
* errors, quickly and uninterruptedly.
*
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
* to the User for any direct or indirect losses of the User, his expenses or actual
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
* or damage to data, property, etc.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.platform.routes.design.library.storage;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import org.osgi.framework.Bundle;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import ru.entaxy.platform.routes.design.library.ComponentLibrary;
public class ProvidedLibraryDescriptor {
private static final Logger LOG = LoggerFactory.getLogger(ProvidedLibraryDescriptor.class);
public static final String LIBRARY_PATH = "/ru/entaxy/" + ComponentLibrary.COMPONENT_LIBRARY_RESOURCE_PROTOCOL;
public Bundle bundle;
public String libraryPath;
public String libraryName;
protected List<ProvidedLibraryResource> libraryResources = null;
public ProvidedLibraryDescriptor(Bundle bundle, String path, String name) {
this.bundle = bundle;
this.libraryPath = path;
this.libraryName = name;
}
public List<ProvidedLibraryResource> getLibraryResources() {
if (libraryResources == null) {
libraryResources = new ArrayList<>();
Enumeration<URL> entries = bundle.findEntries(libraryPath, "*.*", true);
if (entries != null) {
while (entries.hasMoreElements()) {
URL entry = entries.nextElement();
String entryUrl = entry.toString();
if (entryUrl.endsWith("/"))
continue;
String resourcePath = entryUrl.substring(entryUrl.indexOf(libraryPath) + libraryPath.length());
/*
if (resourcePath.equals(ComponentLibraryStorage.LIBRARY_DESCRIPTOR_NAME))
continue;
*/
String resourceName = null;
int index = resourcePath.lastIndexOf('/');
if (index < 0)
resourceName = resourcePath;
else
resourceName = resourcePath.substring(index + 1);
ProvidedLibraryResource resource = new ProvidedLibraryResource();
resource.url = entry;
resource.path = resourcePath;
resource.name = resourceName;
libraryResources.add(resource);
}
}
}
return libraryResources;
}
public static class ProvidedLibraryResource {
URL url;
String name;
String path;
}
}

View File

@ -0,0 +1,223 @@
/*-
* ~~~~~~licensing~~~~~~
* route-producing
* ==========
* Copyright (C) 2020 - 2024 EmDev LLC
* ==========
* You may not use this file except in accordance with the License Terms of the Copyright
* Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
* rights to the Software and any copies are the property of the Copyright Holder. Unless
* it is explicitly allowed the Copyright Holder, the User is prohibited from using the
* Software for commercial purposes to provide services to third parties.
*
* The Copyright Holder hereby declares that the Software is provided on an "AS IS".
* Under no circumstances does the Copyright Holder guarantee or promise that the
* Software provided by him will be suitable or not suitable for the specific purposes
* of the User, that the Software will meet all commercial and personal subjective
* expectations of the User, that the Software will work properly, without technical
* errors, quickly and uninterruptedly.
*
* Under no circumstances shall the Copyright Holder or its Affiliates is not liable
* to the User for any direct or indirect losses of the User, his expenses or actual
* damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
* or damage to data, property, etc.
* ~~~~~~/licensing~~~~~~
*/
package ru.entaxy.platform.routes.design.library.tracker;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Enumeration;
import java.util.List;
import java.util.Map;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleEvent;
import org.osgi.service.component.ComponentContext;
import org.osgi.service.component.annotations.Activate;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Deactivate;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.osgi.util.tracker.BundleTracker;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.gson.JsonObject;
import ru.entaxy.platform.base.support.CommonUtils;
import ru.entaxy.platform.base.support.JSONUtils;
import ru.entaxy.platform.base.support.osgi.tracker.BundleTrackerCustomizerListener;
import ru.entaxy.platform.base.support.osgi.tracker.BundleTrackerUtils;
import ru.entaxy.platform.base.support.osgi.tracker.UniformBundleTrackerCustomizer;
import ru.entaxy.platform.base.support.osgi.tracker.filter.BundleHeaderFilter;
import ru.entaxy.platform.routes.design.library.ComponentLibrary;
import ru.entaxy.platform.routes.design.library.storage.ComponentLibraryStorage;
import ru.entaxy.platform.routes.design.library.storage.ComponentLibraryStorage.Library;
import ru.entaxy.platform.routes.design.library.storage.ProvidedLibraryDescriptor;
@Component(service = ComponentLibraryTracker.class, immediate = true)
public class ComponentLibraryTracker {
private static final Logger LOG = LoggerFactory.getLogger(ComponentLibraryTracker.class);
public static ComponentLibraryTracker create(ComponentLibraryStorage storage, BundleContext bundleContext) {
return new ComponentLibraryTracker(storage, bundleContext);
}
@Reference(cardinality = ReferenceCardinality.MANDATORY)
protected ComponentLibraryStorage storage;
protected BundleContext bundleContext;
protected BundleTracker<List<ProvidedLibraryDescriptor>> tracker;
public ComponentLibraryTracker() {
super();
}
@Activate
public void activate(ComponentContext componentContext) {
this.bundleContext = componentContext.getBundleContext();
tracker = BundleTrackerUtils.<List<ProvidedLibraryDescriptor>>createBuilder()
.addFilter(
(new BundleHeaderFilter()).header(ComponentLibrary.COMPONENT_LIBRARY_PROVIDER_HEADER))
.customizer(
(new LibraryTrackerCusomizer())
.listener(new LibraryTrackerCusomizerListener()))
.bundleState(Bundle.ACTIVE | Bundle.INSTALLED | Bundle.RESOLVED)
.get();
tracker.open();
}
@Deactivate
public void deactivate() {
if (tracker != null)
tracker.close();
}
protected ComponentLibraryTracker(ComponentLibraryStorage storage, BundleContext bundleContext) {
this.storage = storage;
this.bundleContext = bundleContext;
}
public void open() {
if (tracker != null)
tracker.open();
}
public void close() {
if (tracker != null)
tracker.close();
}
protected class LibraryTrackerCusomizer extends UniformBundleTrackerCustomizer<List<ProvidedLibraryDescriptor>> {
@Override
protected List<ProvidedLibraryDescriptor> createManagedObject(Bundle bundle, BundleEvent event,
Map<String, List<?>> filterResults) {
Enumeration<URL> foundEntries = bundle.findEntries(ProvidedLibraryDescriptor.LIBRARY_PATH, "*", false);
if (foundEntries == null) {
LOG.warn("Bundle [{}] marked as library provider but contains no libraries", bundle.getSymbolicName());
return null;
}
List<ProvidedLibraryDescriptor> result = new ArrayList<>();
while (foundEntries.hasMoreElements()) {
URL entry = foundEntries.nextElement();
String entryUrl = entry.toString();
if (!entryUrl.endsWith("/"))
continue;
int index = entryUrl.indexOf(ProvidedLibraryDescriptor.LIBRARY_PATH);
String libraryPath = entryUrl.substring(index);
String libraryName = libraryPath.substring(ProvidedLibraryDescriptor.LIBRARY_PATH.length() + 1,
libraryPath.length() - 1);
LOG.info("Found library [{}] in bundle [{}]", libraryName, bundle.getSymbolicName());
result.add(new ProvidedLibraryDescriptor(bundle, libraryPath, libraryName));
}
return result;
}
}
protected class LibraryTrackerCusomizerListener
implements BundleTrackerCustomizerListener<List<ProvidedLibraryDescriptor>> {
@Override
public void added(List<ProvidedLibraryDescriptor> managedObject) {
for (ProvidedLibraryDescriptor descriptor : managedObject) {
URL entry = descriptor.bundle
.getEntry(descriptor.libraryPath + ComponentLibraryStorage.LIBRARY_DESCRIPTOR_NAME);
if (entry == null) {
LOG.warn("Descrptor not found for library [{}] in bundle [{}]", descriptor.libraryName,
descriptor.bundle.getSymbolicName());
continue;
}
String content = null;
try (InputStream is = entry.openStream()) {
content = new String(is.readAllBytes());
} catch (IOException e) {
LOG.error(String.format("Error reading library descriptor [%s] in bundle [%s]",
descriptor.libraryPath + ComponentLibraryStorage.LIBRARY_DESCRIPTOR_NAME,
descriptor.bundle.getSymbolicName()), e);
continue;
}
if (!CommonUtils.isValid(content)) {
LOG.error(String.format("Library descriptor is empty: [%s] in bundle [%s]",
descriptor.libraryPath + ComponentLibraryStorage.LIBRARY_DESCRIPTOR_NAME,
descriptor.bundle.getSymbolicName()));
continue;
}
JsonObject jo = JSONUtils.getJsonRootObject(content);
if ((jo == null) || jo.keySet().isEmpty()) {
LOG.error(String.format("Invalid library descriptor: [%s] in bundle [%s]",
descriptor.libraryPath + ComponentLibraryStorage.LIBRARY_DESCRIPTOR_NAME,
descriptor.bundle.getSymbolicName()));
continue;
}
Library library = JSONUtils.GSON.fromJson(jo, Library.class);
if ((library == null) || !CommonUtils.isValid(library.library)) {
LOG.error(String.format("Invalid library descriptor content: [%s] in bundle [%s]",
descriptor.libraryPath + ComponentLibraryStorage.LIBRARY_DESCRIPTOR_NAME,
descriptor.bundle.getSymbolicName()));
continue;
}
LOG.info("Recognized library [{}] having [{}] schemas", library.library,
library.schemas == null ? -1 : library.schemas.size());
storage.addLibrary(descriptor, library);
}
}
@Override
public void modified(List<ProvidedLibraryDescriptor> managedObject) {
// ignore
}
@Override
public void removed(List<ProvidedLibraryDescriptor> managedObject) {
// ignore
}
}
}

View File

@ -0,0 +1,993 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
/*
* $Id: 2b09558a5a4a6cf1633def5e13fb5737c30a1a8f $
*
* Copyright (c) OSGi Alliance (2008, 2013). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<xsd:schema xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.osgi.org/xmlns/blueprint/v1.0.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.1">
<xsd:annotation>
<xsd:documentation><![CDATA[
This is the XML Schema for the OSGi Blueprint service 1.0.0
development descriptor. Blueprint configuration files
using this schema must indicate the schema using the
blueprint/v1.0.0 namespace. For example,
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
if used as a qualified namespace, "bp" is the recommended
namespace prefix.
]]></xsd:documentation>
</xsd:annotation>
<!-- Schema elements for core component declarations -->
<xsd:complexType name="Tcomponent" abstract="true">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tcomponent type is the base type for top-level
Blueprint components. The <bean> <reference>, <service>,
and <reference-list> elements are all derived from
the Tcomponent type. This type defines an id attribute
that is used create references between different components.
Component elements can also be inlined within other component
definitions. The id attribute is not valid when inlined.
]]></xsd:documentation>
</xsd:annotation>
<xsd:attribute name="id" type="xsd:ID"/>
<xsd:attribute name="activation" type="Tactivation">
<xsd:annotation>
<xsd:documentation><![CDATA[
The activation attribute for this component. This can either
be "eager" or "lazy". If not specified, it
defaults to default-activation attribute of the enclosing
<blueprint> element.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="depends-on" type="TdependsOn">
<xsd:annotation>
<xsd:documentation><![CDATA[
depends-on identifies (by id) other components that this component
depends on. The component only be activated after the
depends-on components are successfully activated. Also, if there
are <reference> or <reference-list> elements with unstatisfied
manadatory references, then the depends-on relationship will also
be used to determine whether this service is enabled or not.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:element name="blueprint" type="Tblueprint">
<xsd:annotation>
<xsd:documentation><![CDATA[
The <blueprint> element is the root element for a blueprint
configuration file. A blueprint configuration has two sections.
The first section (contained within the <type-converters> element)
identifies components that are used for converting values into
different target types. The type converters are optional, so
the file does not need to specify a type converter section.
Following the type converters are the component definitions.
Components are <bean>, <service>, <reference>, and
<reference-list> elements that identify the bundle components that will
be managed by the blueprint service.
]]></xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="Tblueprint">
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<xsd:element name="type-converters" type="Ttype-converters" minOccurs="0" maxOccurs="1"/>
<!-- top-level components -->
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="service" type="Tservice"/>
<xsd:element name="reference-list" type="Treference-list"/>
<xsd:element ref="bean"/>
<xsd:element ref="reference"/>
<xsd:any namespace="##other" processContents="lax"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="default-activation" type="Tactivation" default="eager">
<xsd:annotation>
<xsd:documentation><![CDATA[
Specifies the default activation setting that will be defined
for components. If not specified, the global default is "eager".
Individual components may override the default value.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="default-timeout" type="Ttimeout" default="300000">
<xsd:annotation>
<xsd:documentation><![CDATA[
Specifies the default timeout value to be used when operations
are invoked on unstatisfied service references. If the
reference does not change to a satisfied state within the timeout
window, an error is raised on the method invocation. The
default timeout value is 300000 milliseconds and individual
<reference> element can override the specified configuration
default.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="default-availability" type="Tavailability" default="mandatory">
<xsd:annotation>
<xsd:documentation><![CDATA[
Specifies the default availability value to be used for
<reference>, and <reference-list> components. The
normal default is "mandatory", and can be changed by individual
service reference components.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
<!-- Defaults-->
</xsd:complexType>
<xsd:complexType name="Ttype-converters">
<xsd:annotation>
<xsd:documentation><![CDATA[
The type used for the <type-converters> element. The
<type-converters> section is a set of <bean>, <ref>, or
<reference> elements that identify the type converter components.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="bean" type="Tbean"/>
<xsd:element name="reference" type="Treference"/>
<xsd:element name="ref" type="Tref"/>
<xsd:any namespace="##other" processContents="lax"/>
</xsd:choice>
</xsd:complexType>
<!--
Components that provide a reasonable target for injection used for
listeners, etc.
-->
<xsd:group name="GtargetComponent">
<xsd:annotation>
<xsd:documentation><![CDATA[
A target component is one that can be a target for a
listener, registration-listener or service elements.
This is used in contexts where the requirement is a single
provided object that will implement a particular interface.
The provided object is obtained either from a <ref> element
or an inlined <bean> or <reference>.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="bean" type="Tinlined-bean"/>
<xsd:element name="reference" type="Tinlined-reference"/>
<xsd:element name="ref" type="Tref"/>
<xsd:any namespace="##other" processContents="lax"/>
</xsd:choice>
</xsd:group>
<xsd:group name="GallComponents">
<xsd:annotation>
<xsd:documentation><![CDATA[
An all components is used in contexts where all component element
types are values. The set of component elements contains
<bean>, <service>, <reference>, <reference-list> and <ref>.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="service" type="Tinlined-service"/>
<xsd:element name="reference-list" type="Tinlined-reference-list"/>
<xsd:group ref="GtargetComponent"/>
</xsd:choice>
</xsd:group>
<xsd:group name="GbeanElements">
<xsd:annotation>
<xsd:documentation><![CDATA[
A bean elements is a reusable definition of the elements allowed on
a <bean> element.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="argument" type="Targument"/>
<xsd:element name="property" type="Tproperty"/>
<xsd:any namespace="##other" processContents="lax"/>
</xsd:choice>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="Tbean">
<xsd:annotation>
<xsd:documentation><![CDATA[
The type definition for a <bean> component. The <bean>
attributes provide the characteristics for how to create a
bean instance. Constructor arguments and injected properties
are specified via child <argument> and <property> elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="Tcomponent">
<xsd:group ref="GbeanElements"/>
<xsd:attribute name="class" type="Tclass"/>
<xsd:attribute name="init-method" type="Tmethod"/>
<xsd:attribute name="destroy-method" type="Tmethod"/>
<xsd:attribute name="factory-method" type="Tmethod"/>
<xsd:attribute name="factory-ref" type="Tidref"/>
<xsd:attribute name="scope" type="Tscope"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Tinlined-bean">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tinlined-bean type is used for inlined (i.e. non top level)
<bean> elements. Those elements have some restrictions on
the attributes that can be used to define them.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:restriction base="Tbean">
<xsd:group ref="GbeanElements"/>
<xsd:attribute name="id" use="prohibited"/>
<xsd:attribute name="depends-on" type="TdependsOn"/>
<xsd:attribute name="activation" use="prohibited" fixed="lazy"/>
<xsd:attribute name="class" type="Tclass"/>
<xsd:attribute name="init-method" type="Tmethod"/>
<xsd:attribute name="destroy-method" use="prohibited"/>
<xsd:attribute name="factory-method" type="Tmethod"/>
<xsd:attribute name="factory-ref" type="Tidref"/>
<xsd:attribute name="scope" use="prohibited"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Targument">
<xsd:annotation>
<xsd:documentation><![CDATA[
An argument used to create an object defined by a <bean>
component. The <argument> elements are the arguments for the
bean class constructor or passed to the bean factory method.
The type, if specified, is used to disambiguate the constructor
or method signature. Arguments may also be matched up with
arguments by explicitly specifying the index position. If the
index is used, then all <argument> elements for the bean must
also specify the index.
The value and ref attributes are convenience shortcuts to make
the <argument> tag easier to code. A fuller set of injected
values and types can be specified using one of the "value"
type elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<xsd:group ref="Gvalue" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="index" type="xsd:nonNegativeInteger"/>
<xsd:attribute name="type" type="Ttype"/>
<xsd:attribute name="ref" type="Tidref"/>
<xsd:attribute name="value" type="TstringValue"/>
</xsd:complexType>
<xsd:complexType name="Tproperty">
<xsd:annotation>
<xsd:documentation><![CDATA[
A property that will be injected into a created <bean>
component. The <property> elements correspond to named
JavaBean setting methods for a created bean object.
The value and ref attributes are convenience shortcuts to make
the <argument> tag easier to code. A fuller set of injected
values and types can be specified using one of the "value"
type elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<xsd:group ref="Gvalue" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" type="Tmethod" use="required"/>
<xsd:attribute name="ref" type="Tidref"/>
<xsd:attribute name="value" type="TstringValue"/>
</xsd:complexType>
<xsd:complexType name="Tkey">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tkey type defines the element types that are permitted
for Map key situations. These can be any of the "value"
types other than the <null> element.
]]></xsd:documentation>
</xsd:annotation>
<xsd:group ref="GnonNullValue"/>
</xsd:complexType>
<!-- reference -->
<xsd:complexType name="Treference">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Treference type defines the <reference> element. These
are instances of the TserviceReference type, with the addition
of a timeout attribute. If the timeout is not specified,
the default-timeout value is inherited from the encapsulating
<blueprint> definition.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="TserviceReference">
<xsd:sequence>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="timeout" type="Ttimeout"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Tinlined-reference">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tinlined-reference type is used for inlined (i.e. non top level)
<reference> elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:restriction base="Treference">
<xsd:sequence>
<xsd:group ref="GserviceReferenceElements"/>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="id" use="prohibited"/>
<xsd:attribute name="depends-on" type="TdependsOn"/>
<xsd:attribute name="activation" use="prohibited" fixed="lazy"/>
<xsd:attribute name="interface" type="Tclass"/>
<xsd:attribute name="filter" type="xsd:normalizedString"/>
<xsd:attribute name="component-name" type="Tidref"/>
<xsd:attribute name="availability" type="Tavailability"/>
<xsd:attribute name="timeout" type="Ttimeout"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<!-- reference-list -->
<xsd:complexType name="Treference-list">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Treference-list builds in the characteristics of the
TserviceReference type to define characteristics of the
<reference-list>. This adds in the characteristics that
only apply to collections of references (e.g., member-type).
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="TserviceReference">
<xsd:sequence>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="member-type" type="Tservice-use" default="service-object"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Tinlined-reference-list">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tinlined-reference-list type is used for inlined (i.e. non top level)
<reference-list> elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:restriction base="Treference-list">
<xsd:sequence>
<xsd:group ref="GserviceReferenceElements"/>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="id" use="prohibited"/>
<xsd:attribute name="depends-on" type="TdependsOn"/>
<xsd:attribute name="activation" use="prohibited" fixed="lazy"/>
<xsd:attribute name="interface" type="Tclass"/>
<xsd:attribute name="filter" type="xsd:normalizedString"/>
<xsd:attribute name="component-name" type="Tidref"/>
<xsd:attribute name="availability" type="Tavailability"/>
<xsd:attribute name="member-type" type="Tservice-use" default="service-object"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<!-- Reference base class -->
<xsd:complexType name="TserviceReference">
<xsd:annotation>
<xsd:documentation><![CDATA[
TserviceReference is the base element type used for <reference>
and <reference-list> elements. This type defines all of the
characteristics common to both sorts of references.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="Tcomponent">
<xsd:sequence>
<xsd:group ref="GserviceReferenceElements"/>
</xsd:sequence>
<xsd:attribute name="interface" type="Tclass">
<xsd:annotation>
<xsd:documentation><![CDATA[
The interface that the OSGi service must implement and that will be
implemented by the proxy object.
This attribute is optional.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="filter" type="xsd:normalizedString">
<xsd:annotation>
<xsd:documentation><![CDATA[
A filter string used to narrow the search for a matching service
reference.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="component-name" type="Tidref">
<xsd:annotation>
<xsd:documentation><![CDATA[
An optional specifier that can be used to match a service definition
to one created by a specific blueprint component.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="availability" type="Tavailability">
<xsd:annotation>
<xsd:documentation><![CDATA[
Use to control the initial processing of service references at
blueprint context startup. "mandatory" indicates the context
should not start unless the service is available within the
specified context startup period. "optional" indicates availability
of this service is not a requirement at bundle startup.
NOTE: No default is specified because this can be overridden
by the default-availability attribute of the <blueprint> element.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:group name="GserviceReferenceElements">
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<!-- listener -->
<xsd:element name="reference-listener" type="TreferenceListener" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation><![CDATA[
A definition of a listener that will watch for bind/unbind events
associated with the service reference. The targetted listener can
be a <ref> to a <bean> or <reference> element, or an inline
<bean> or <reference>.
]]></xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="TreferenceListener">
<xsd:annotation>
<xsd:documentation><![CDATA[
TReferenceListener defines a reference listener that is attached
to a <reference> or <reference-list> element. The listener
object can be specified as a <ref> or as an inline <bean> or
<reference> component. Listener events are mapped to the indicated
bind or unbind methods.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="GtargetComponent" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="ref" type="Tidref"/>
<xsd:attribute name="bind-method" type="Tmethod"/>
<xsd:attribute name="unbind-method" type="Tmethod"/>
</xsd:complexType>
<xsd:simpleType name="Tactivation">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tactivation defines the activation type for components. This is used in this
schema by the <blueprint> default-activation attribute and the
activation attribute.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="eager"/>
<xsd:enumeration value="lazy"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Tavailability">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tavailability defines an availability attribute type. This is used in this
schema by the <blueprint> default-availability attribute and the
<reference> and <reference-list> availability attribute.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="mandatory"/>
<xsd:enumeration value="optional"/>
</xsd:restriction>
</xsd:simpleType>
<!-- service -->
<xsd:complexType name="Tservice">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tservice is the type for services exported by this blueprint bundle.
Services are sourced by either a <ref> to a <bean> component or an
<inline> bean component.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="Tcomponent">
<xsd:sequence>
<xsd:group ref="GserviceElements"/>
</xsd:sequence>
<xsd:attribute name="interface" type="Tclass">
<xsd:annotation>
<xsd:documentation><![CDATA[
The interface that this OSGi service will provide.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="ref" type="Tidref">
<xsd:annotation>
<xsd:documentation><![CDATA[
The ref attribute can be used to specify the component that provides
the object exported as an OSGi service.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="auto-export" type="TautoExportModes" default="disabled">
<xsd:annotation>
<xsd:documentation><![CDATA[
If set to a value different from "disabled", the Blueprint Container
will introspect the target to discover the set of interfaces or classes
that the service will be registered under.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="ranking" type="xsd:int" default="0">
<xsd:annotation>
<xsd:documentation><![CDATA[
A service ranking value that is added to the service properties
the service will be published with.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Tinlined-service">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tinlined-service type is used for inlined (i.e. non top level)
<service> elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:restriction base="Tservice">
<xsd:sequence>
<xsd:group ref="GserviceElements"/>
</xsd:sequence>
<xsd:attribute name="id" use="prohibited"/>
<xsd:attribute name="depends-on" type="TdependsOn"/>
<xsd:attribute name="activation" use="prohibited" fixed="lazy"/>
<xsd:attribute name="interface" type="Tclass"/>
<xsd:attribute name="ref" type="Tidref"/>
<xsd:attribute name="auto-export" type="TautoExportModes" default="disabled"/>
<xsd:attribute name="ranking" type="xsd:int" default="0"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:group name="GbaseServiceElements">
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<xsd:element name="interfaces" type="Tinterfaces" minOccurs="0">
<xsd:annotation>
<xsd:documentation><![CDATA[
A collection of one or more interface class names this service
will be registered under. The <service> element also has
a shortcut interface attribute for the usual case of just
a single interface being used. This also cannot be used if
the auto-export attribute is used.
]]></xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="service-properties" type="TserviceProperties" minOccurs="0">
<xsd:annotation>
<xsd:documentation><![CDATA[
The service provided when the service is registered. The service
properties are similar to map elements, but the keys must always
be strings, and the values are required to be in a narrower range.
]]></xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="registration-listener" type="TregistrationListener" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation><![CDATA[
A set of 0 or more registration listeners attached to this service
component. The registration listeners will be notified whenever the
service is registered or unregistered from the framework service
registry.
]]></xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:group>
<xsd:group name="GserviceElements">
<xsd:annotation>
<xsd:documentation><![CDATA[
A set of service elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="GbaseServiceElements"/>
<xsd:group ref="GtargetComponent" minOccurs="0">
<xsd:annotation>
<xsd:documentation><![CDATA[
A service definition can use any of the target types as an inline element
as well.
]]></xsd:documentation>
</xsd:annotation>
</xsd:group>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="TregistrationListener">
<xsd:annotation>
<xsd:documentation><![CDATA[
A registration listener definition. The target registration listener
can be either a <ref> to a <bean> or <service> component, or an inline
<bean> or <service> component definition. The registration-method and
unregistration-method attributes define the methods that will be called
for the respective events.
For the very common case of using a <ref> to a listener component, the
ref attribute may also be used as a shortcut.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="GtargetComponent" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="ref" type="Tidref"/>
<xsd:attribute name="registration-method" type="Tmethod"/>
<xsd:attribute name="unregistration-method" type="Tmethod"/>
</xsd:complexType>
<!-- Values -->
<xsd:group name="Gvalue">
<xsd:annotation>
<xsd:documentation><![CDATA[
The set of "value" types that can be used in any place a value
can be specified. This set includes the <ref> and <idref> elements, any of the
component types (<bean>, <service>, etc.) as inline components, the
generic <value> element for types sourced from string values, any of the
collection types (<set>, <list>, <array>, <map>, <props>), and the
<null> type to inject a null value.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:group ref="GnonNullValue"/>
<xsd:element name="null" type="Tnull"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="Tnull">
<xsd:annotation>
<xsd:documentation><![CDATA[
The definition for a <null> value type.
]]></xsd:documentation>
</xsd:annotation>
</xsd:complexType>
<xsd:group name="GnonNullValue">
<xsd:annotation>
<xsd:documentation><![CDATA[
The set of "value" types that can be used in any place a non-null value
can be specified. This set includes the <ref> and <idref> elements, any of the
component types (<bean>, <service>, etc.) as inline components, the
generic <value> element for types sourced from string values, and any of the
collection types (<set>, <list>, <array>, <map>, <props>).
The <null> type is NOT a member of this group.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:group ref="GallComponents"/>
<xsd:element name="idref" type="Tref"/>
<xsd:element name="value" type="Tvalue"/>
<xsd:element name="list" type="Tcollection"/>
<xsd:element name="set" type="Tcollection"/>
<xsd:element name="map" type="Tmap"/>
<xsd:element name="array" type="Tcollection"/>
<xsd:element name="props" type="Tprops"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="Tref">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tref is the type used for <ref> elements. This specifies a required
component id for the reference component.
]]></xsd:documentation>
</xsd:annotation>
<xsd:attribute name="component-id" type="Tidref" use="required"/>
</xsd:complexType>
<xsd:complexType name="Tvalue" mixed="true">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tvalue is the type used for <value> elements. The <value> element
is used for types that can be created from a single string value.
The string value is the data value for the element. The optional
type attribute allows a target conversion value to be explicitly
specified.
]]></xsd:documentation>
</xsd:annotation>
<xsd:attribute name="type" type="Ttype"/>
</xsd:complexType>
<!-- Collection Values -->
<xsd:complexType name="TtypedCollection">
<xsd:annotation>
<xsd:documentation><![CDATA[
TtypeCollection defines comment attributes shared among different
collection types that allow a default value type to be specified.
]]></xsd:documentation>
</xsd:annotation>
<xsd:attribute name="value-type" type="Ttype"/>
</xsd:complexType>
<xsd:complexType name="Tcollection">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tcollection is the base schema type for different ordered collection
types. This is shared between the <array>, <list>, and <set> elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="TtypedCollection">
<xsd:group ref="Gvalue" minOccurs="0" maxOccurs="unbounded"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Tprops">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tprops is the type used by the <props> value element. The prop elements
are pairs of string-valued keys and values.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="prop" type="Tprop" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Tprop" mixed="true">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tprop is a single property element for a <props> value type. The property
value can be specified using either the attribute, or as value data for
the property element.
]]></xsd:documentation>
</xsd:annotation>
<xsd:attribute name="key" type="TstringValue" use="required"/>
<xsd:attribute name="value" type="TstringValue"/>
</xsd:complexType>
<!-- 'map' element type -->
<xsd:complexType name="Tmap">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tmap is the base type used for <map> elements. A map may have a
default value type specified, so it inherits from the TtypeCollection
type. A key type can also be specified, and the map members are
created from the entry elements, which require a key/value pair.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="TtypedCollection">
<xsd:sequence>
<xsd:element name="entry" type="TmapEntry" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="key-type" type="Ttype"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- 'entry' element type -->
<xsd:complexType name="TmapEntry">
<xsd:annotation>
<xsd:documentation><![CDATA[
TmapEntry is used for <entry> elements nested inside of a <map> element.
Each <entry> instance defines a key/value pair that will be added to the
Map. Both the keys and values may be arbitrary types. Keys must not
be <null> but <null> is permitted for entry values. A default type
can be specified for both the keys and the values, but individual keys
or values can override the default.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="key" type="Tkey" minOccurs="0"/>
<xsd:group ref="Gvalue" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="key" type="TstringValue"/>
<xsd:attribute name="key-ref" type="Tidref"/>
<xsd:attribute name="value" type="TstringValue"/>
<xsd:attribute name="value-ref" type="Tidref"/>
</xsd:complexType>
<!-- 'service property' element type -->
<xsd:complexType name="TserviceProperties">
<xsd:annotation>
<xsd:documentation><![CDATA[
TserviceProperty is used for <service-properties> elements.
The syntax is similar to what is defined for <map>, but keys must be
string values and there are no type defaults that can be specified.
created from the entry elements, which require a key/value pair.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="entry" type="TservicePropertyEntry" minOccurs="0" maxOccurs="unbounded"/>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<!-- 'entry' element type -->
<xsd:complexType name="TservicePropertyEntry">
<xsd:annotation>
<xsd:documentation><![CDATA[
TservicePropertyEntry is an entry value used for the <service-properties>
element. This does not allow a child <key> element and there are no
key-ref or value-ref attributes.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="Gvalue" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="key" type="TstringValue" use="required"/>
<xsd:attribute name="value" type="TstringValue"/>
</xsd:complexType>
<!-- General types -->
<xsd:complexType name="Tdescription" mixed="true">
<xsd:annotation>
<xsd:documentation><![CDATA[
A generic <description> element type to allow documentation to added to the
blueprint configuration.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded"/>
</xsd:complexType>
<xsd:complexType name="Tinterfaces">
<xsd:annotation>
<xsd:documentation><![CDATA[
The type definition for the <interfaces> element used for <service>
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element name="value" type="TinterfaceValue"/>
</xsd:choice>
</xsd:complexType>
<xsd:simpleType name="TinterfaceValue">
<xsd:annotation>
<xsd:documentation><![CDATA[
TinterfaceValue is used for subelements of the <interfaces> element.
This is just a <value>xxxxx</value> element where the contained
value is the name of an interface class.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="Tclass"/>
</xsd:simpleType>
<xsd:simpleType name="Tclass">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tclass is a base type that should be used for all attributes that
refer to java class names.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NCName"/>
</xsd:simpleType>
<xsd:simpleType name="Ttype">
<xsd:annotation>
<xsd:documentation><![CDATA[
Ttype is a base type that refer to java types such as classes or
arrays.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:pattern value="[\i-[:]][\c-[:]]*(\[\])*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Tmethod">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tmethod is a base type that should be used for all attributes that
refer to java method names.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NCName"/>
</xsd:simpleType>
<!--
Should be used for all attributes and elements that refer to method
names
-->
<xsd:simpleType name="Tidref">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tidref is a base type that should be used for all attributes that
refer to component ids.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NCName"/>
</xsd:simpleType>
<xsd:simpleType name="TstringValue">
<xsd:annotation>
<xsd:documentation><![CDATA[
TstringValue is a base type that should be used for all attributes that
refer to raw string values
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:normalizedString"/>
</xsd:simpleType>
<xsd:simpleType name="TautoExportModes">
<xsd:annotation>
<xsd:documentation><![CDATA[
TautoExportModes is a base type that should be used for export-mode
attributes.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="disabled"/>
<xsd:enumeration value="interfaces"/>
<xsd:enumeration value="class-hierarchy"/>
<xsd:enumeration value="all-classes"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Ttimeout">
<xsd:annotation>
<xsd:documentation><![CDATA[
Ttimeout is a base type that should be used for all attributes that
specify timeout values
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedLong"/>
</xsd:simpleType>
<xsd:simpleType name="TdependsOn">
<xsd:annotation>
<xsd:documentation><![CDATA[
TdependsOn is a base type that should be used for all attributes that
specify depends-on relationships
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction>
<xsd:simpleType>
<xsd:list itemType="Tidref"/>
</xsd:simpleType>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Tscope">
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="singleton"/>
<xsd:enumeration value="prototype"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="xsd:QName">
<xsd:pattern value=".+:.+"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
<xsd:simpleType name="Tservice-use">
<xsd:annotation>
<xsd:documentation><![CDATA[
Indicates the type of object that will be placed within the
reference collection. "service-object" indicates the
collection contains blueprint proxies for imported services.
"service-reference" indicates the collection contains
ServiceReference objects matching the target service type.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="service-object"/>
<xsd:enumeration value="service-reference"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="bean" type="Tbean"/>
<xsd:element name="reference" type="Treference"/>
</xsd:schema>

View File

@ -0,0 +1,991 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
/*
* $Id: 2b09558a5a4a6cf1633def5e13fb5737c30a1a8f $
*
* Copyright (c) OSGi Alliance (2008, 2013). All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<xsd:schema xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.osgi.org/xmlns/blueprint/v1.0.0" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0.1">
<xsd:annotation>
<xsd:documentation><![CDATA[
This is the XML Schema for the OSGi Blueprint service 1.0.0
development descriptor. Blueprint configuration files
using this schema must indicate the schema using the
blueprint/v1.0.0 namespace. For example,
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
if used as a qualified namespace, "bp" is the recommended
namespace prefix.
]]></xsd:documentation>
</xsd:annotation>
<!-- Schema elements for core component declarations -->
<xsd:complexType name="Tcomponent" abstract="true">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tcomponent type is the base type for top-level
Blueprint components. The <bean> <reference>, <service>,
and <reference-list> elements are all derived from
the Tcomponent type. This type defines an id attribute
that is used create references between different components.
Component elements can also be inlined within other component
definitions. The id attribute is not valid when inlined.
]]></xsd:documentation>
</xsd:annotation>
<xsd:attribute name="id" type="xsd:ID"/>
<xsd:attribute name="activation" type="Tactivation">
<xsd:annotation>
<xsd:documentation><![CDATA[
The activation attribute for this component. This can either
be "eager" or "lazy". If not specified, it
defaults to default-activation attribute of the enclosing
<blueprint> element.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="depends-on" type="TdependsOn">
<xsd:annotation>
<xsd:documentation><![CDATA[
depends-on identifies (by id) other components that this component
depends on. The component only be activated after the
depends-on components are successfully activated. Also, if there
are <reference> or <reference-list> elements with unstatisfied
manadatory references, then the depends-on relationship will also
be used to determine whether this service is enabled or not.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:element name="blueprint" type="Tblueprint">
<xsd:annotation>
<xsd:documentation><![CDATA[
The <blueprint> element is the root element for a blueprint
configuration file. A blueprint configuration has two sections.
The first section (contained within the <type-converters> element)
identifies components that are used for converting values into
different target types. The type converters are optional, so
the file does not need to specify a type converter section.
Following the type converters are the component definitions.
Components are <bean>, <service>, <reference>, and
<reference-list> elements that identify the bundle components that will
be managed by the blueprint service.
]]></xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:complexType name="Tblueprint">
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<xsd:element name="type-converters" type="Ttype-converters" minOccurs="0" maxOccurs="1"/>
<!-- top-level components -->
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="service" type="Tservice"/>
<xsd:element name="reference-list" type="Treference-list"/>
<xsd:element name="bean" type="Tbean"/>
<xsd:element name="reference" type="Treference"/>
<xsd:any namespace="##other" processContents="lax"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="default-activation" type="Tactivation" default="eager">
<xsd:annotation>
<xsd:documentation><![CDATA[
Specifies the default activation setting that will be defined
for components. If not specified, the global default is "eager".
Individual components may override the default value.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="default-timeout" type="Ttimeout" default="300000">
<xsd:annotation>
<xsd:documentation><![CDATA[
Specifies the default timeout value to be used when operations
are invoked on unstatisfied service references. If the
reference does not change to a satisfied state within the timeout
window, an error is raised on the method invocation. The
default timeout value is 300000 milliseconds and individual
<reference> element can override the specified configuration
default.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="default-availability" type="Tavailability" default="mandatory">
<xsd:annotation>
<xsd:documentation><![CDATA[
Specifies the default availability value to be used for
<reference>, and <reference-list> components. The
normal default is "mandatory", and can be changed by individual
service reference components.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
<!-- Defaults-->
</xsd:complexType>
<xsd:complexType name="Ttype-converters">
<xsd:annotation>
<xsd:documentation><![CDATA[
The type used for the <type-converters> element. The
<type-converters> section is a set of <bean>, <ref>, or
<reference> elements that identify the type converter components.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="bean" type="Tbean"/>
<xsd:element name="reference" type="Treference"/>
<xsd:element name="ref" type="Tref"/>
<xsd:any namespace="##other" processContents="lax"/>
</xsd:choice>
</xsd:complexType>
<!--
Components that provide a reasonable target for injection used for
listeners, etc.
-->
<xsd:group name="GtargetComponent">
<xsd:annotation>
<xsd:documentation><![CDATA[
A target component is one that can be a target for a
listener, registration-listener or service elements.
This is used in contexts where the requirement is a single
provided object that will implement a particular interface.
The provided object is obtained either from a <ref> element
or an inlined <bean> or <reference>.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="bean" type="Tinlined-bean"/>
<xsd:element name="reference" type="Tinlined-reference"/>
<xsd:element name="ref" type="Tref"/>
<xsd:any namespace="##other" processContents="lax"/>
</xsd:choice>
</xsd:group>
<xsd:group name="GallComponents">
<xsd:annotation>
<xsd:documentation><![CDATA[
An all components is used in contexts where all component element
types are values. The set of component elements contains
<bean>, <service>, <reference>, <reference-list> and <ref>.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:element name="service" type="Tinlined-service"/>
<xsd:element name="reference-list" type="Tinlined-reference-list"/>
<xsd:group ref="GtargetComponent"/>
</xsd:choice>
</xsd:group>
<xsd:group name="GbeanElements">
<xsd:annotation>
<xsd:documentation><![CDATA[
A bean elements is a reusable definition of the elements allowed on
a <bean> element.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="argument" type="Targument"/>
<xsd:element name="property" type="Tproperty"/>
<xsd:any namespace="##other" processContents="lax"/>
</xsd:choice>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="Tbean">
<xsd:annotation>
<xsd:documentation><![CDATA[
The type definition for a <bean> component. The <bean>
attributes provide the characteristics for how to create a
bean instance. Constructor arguments and injected properties
are specified via child <argument> and <property> elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="Tcomponent">
<xsd:group ref="GbeanElements"/>
<xsd:attribute name="class" type="Tclass"/>
<xsd:attribute name="init-method" type="Tmethod"/>
<xsd:attribute name="destroy-method" type="Tmethod"/>
<xsd:attribute name="factory-method" type="Tmethod"/>
<xsd:attribute name="factory-ref" type="Tidref"/>
<xsd:attribute name="scope" type="Tscope"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Tinlined-bean">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tinlined-bean type is used for inlined (i.e. non top level)
<bean> elements. Those elements have some restrictions on
the attributes that can be used to define them.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:restriction base="Tbean">
<xsd:group ref="GbeanElements"/>
<xsd:attribute name="id" use="prohibited"/>
<xsd:attribute name="depends-on" type="TdependsOn"/>
<xsd:attribute name="activation" use="prohibited" fixed="lazy"/>
<xsd:attribute name="class" type="Tclass"/>
<xsd:attribute name="init-method" type="Tmethod"/>
<xsd:attribute name="destroy-method" use="prohibited"/>
<xsd:attribute name="factory-method" type="Tmethod"/>
<xsd:attribute name="factory-ref" type="Tidref"/>
<xsd:attribute name="scope" use="prohibited"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Targument">
<xsd:annotation>
<xsd:documentation><![CDATA[
An argument used to create an object defined by a <bean>
component. The <argument> elements are the arguments for the
bean class constructor or passed to the bean factory method.
The type, if specified, is used to disambiguate the constructor
or method signature. Arguments may also be matched up with
arguments by explicitly specifying the index position. If the
index is used, then all <argument> elements for the bean must
also specify the index.
The value and ref attributes are convenience shortcuts to make
the <argument> tag easier to code. A fuller set of injected
values and types can be specified using one of the "value"
type elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<xsd:group ref="Gvalue" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="index" type="xsd:nonNegativeInteger"/>
<xsd:attribute name="type" type="Ttype"/>
<xsd:attribute name="ref" type="Tidref"/>
<xsd:attribute name="value" type="TstringValue"/>
</xsd:complexType>
<xsd:complexType name="Tproperty">
<xsd:annotation>
<xsd:documentation><![CDATA[
A property that will be injected into a created <bean>
component. The <property> elements correspond to named
JavaBean setting methods for a created bean object.
The value and ref attributes are convenience shortcuts to make
the <argument> tag easier to code. A fuller set of injected
values and types can be specified using one of the "value"
type elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<xsd:group ref="Gvalue" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="name" type="Tmethod" use="required"/>
<xsd:attribute name="ref" type="Tidref"/>
<xsd:attribute name="value" type="TstringValue"/>
</xsd:complexType>
<xsd:complexType name="Tkey">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tkey type defines the element types that are permitted
for Map key situations. These can be any of the "value"
types other than the <null> element.
]]></xsd:documentation>
</xsd:annotation>
<xsd:group ref="GnonNullValue"/>
</xsd:complexType>
<!-- reference -->
<xsd:complexType name="Treference">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Treference type defines the <reference> element. These
are instances of the TserviceReference type, with the addition
of a timeout attribute. If the timeout is not specified,
the default-timeout value is inherited from the encapsulating
<blueprint> definition.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="TserviceReference">
<xsd:sequence>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="timeout" type="Ttimeout"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Tinlined-reference">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tinlined-reference type is used for inlined (i.e. non top level)
<reference> elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:restriction base="Treference">
<xsd:sequence>
<xsd:group ref="GserviceReferenceElements"/>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="id" use="prohibited"/>
<xsd:attribute name="depends-on" type="TdependsOn"/>
<xsd:attribute name="activation" use="prohibited" fixed="lazy"/>
<xsd:attribute name="interface" type="Tclass"/>
<xsd:attribute name="filter" type="xsd:normalizedString"/>
<xsd:attribute name="component-name" type="Tidref"/>
<xsd:attribute name="availability" type="Tavailability"/>
<xsd:attribute name="timeout" type="Ttimeout"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<!-- reference-list -->
<xsd:complexType name="Treference-list">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Treference-list builds in the characteristics of the
TserviceReference type to define characteristics of the
<reference-list>. This adds in the characteristics that
only apply to collections of references (e.g., member-type).
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="TserviceReference">
<xsd:sequence>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="member-type" type="Tservice-use" default="service-object"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Tinlined-reference-list">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tinlined-reference-list type is used for inlined (i.e. non top level)
<reference-list> elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:restriction base="Treference-list">
<xsd:sequence>
<xsd:group ref="GserviceReferenceElements"/>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="id" use="prohibited"/>
<xsd:attribute name="depends-on" type="TdependsOn"/>
<xsd:attribute name="activation" use="prohibited" fixed="lazy"/>
<xsd:attribute name="interface" type="Tclass"/>
<xsd:attribute name="filter" type="xsd:normalizedString"/>
<xsd:attribute name="component-name" type="Tidref"/>
<xsd:attribute name="availability" type="Tavailability"/>
<xsd:attribute name="member-type" type="Tservice-use" default="service-object"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<!-- Reference base class -->
<xsd:complexType name="TserviceReference">
<xsd:annotation>
<xsd:documentation><![CDATA[
TserviceReference is the base element type used for <reference>
and <reference-list> elements. This type defines all of the
characteristics common to both sorts of references.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="Tcomponent">
<xsd:sequence>
<xsd:group ref="GserviceReferenceElements"/>
</xsd:sequence>
<xsd:attribute name="interface" type="Tclass">
<xsd:annotation>
<xsd:documentation><![CDATA[
The interface that the OSGi service must implement and that will be
implemented by the proxy object.
This attribute is optional.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="filter" type="xsd:normalizedString">
<xsd:annotation>
<xsd:documentation><![CDATA[
A filter string used to narrow the search for a matching service
reference.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="component-name" type="Tidref">
<xsd:annotation>
<xsd:documentation><![CDATA[
An optional specifier that can be used to match a service definition
to one created by a specific blueprint component.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="availability" type="Tavailability">
<xsd:annotation>
<xsd:documentation><![CDATA[
Use to control the initial processing of service references at
blueprint context startup. "mandatory" indicates the context
should not start unless the service is available within the
specified context startup period. "optional" indicates availability
of this service is not a requirement at bundle startup.
NOTE: No default is specified because this can be overridden
by the default-availability attribute of the <blueprint> element.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:group name="GserviceReferenceElements">
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<!-- listener -->
<xsd:element name="reference-listener" type="TreferenceListener" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation><![CDATA[
A definition of a listener that will watch for bind/unbind events
associated with the service reference. The targetted listener can
be a <ref> to a <bean> or <reference> element, or an inline
<bean> or <reference>.
]]></xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="TreferenceListener">
<xsd:annotation>
<xsd:documentation><![CDATA[
TReferenceListener defines a reference listener that is attached
to a <reference> or <reference-list> element. The listener
object can be specified as a <ref> or as an inline <bean> or
<reference> component. Listener events are mapped to the indicated
bind or unbind methods.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="GtargetComponent" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="ref" type="Tidref"/>
<xsd:attribute name="bind-method" type="Tmethod"/>
<xsd:attribute name="unbind-method" type="Tmethod"/>
</xsd:complexType>
<xsd:simpleType name="Tactivation">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tactivation defines the activation type for components. This is used in this
schema by the <blueprint> default-activation attribute and the
activation attribute.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="eager"/>
<xsd:enumeration value="lazy"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Tavailability">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tavailability defines an availability attribute type. This is used in this
schema by the <blueprint> default-availability attribute and the
<reference> and <reference-list> availability attribute.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="mandatory"/>
<xsd:enumeration value="optional"/>
</xsd:restriction>
</xsd:simpleType>
<!-- service -->
<xsd:complexType name="Tservice">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tservice is the type for services exported by this blueprint bundle.
Services are sourced by either a <ref> to a <bean> component or an
<inline> bean component.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="Tcomponent">
<xsd:sequence>
<xsd:group ref="GserviceElements"/>
</xsd:sequence>
<xsd:attribute name="interface" type="Tclass">
<xsd:annotation>
<xsd:documentation><![CDATA[
The interface that this OSGi service will provide.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="ref" type="Tidref">
<xsd:annotation>
<xsd:documentation><![CDATA[
The ref attribute can be used to specify the component that provides
the object exported as an OSGi service.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="auto-export" type="TautoExportModes" default="disabled">
<xsd:annotation>
<xsd:documentation><![CDATA[
If set to a value different from "disabled", the Blueprint Container
will introspect the target to discover the set of interfaces or classes
that the service will be registered under.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="ranking" type="xsd:int" default="0">
<xsd:annotation>
<xsd:documentation><![CDATA[
A service ranking value that is added to the service properties
the service will be published with.
]]></xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Tinlined-service">
<xsd:annotation>
<xsd:documentation><![CDATA[
The Tinlined-service type is used for inlined (i.e. non top level)
<service> elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:restriction base="Tservice">
<xsd:sequence>
<xsd:group ref="GserviceElements"/>
</xsd:sequence>
<xsd:attribute name="id" use="prohibited"/>
<xsd:attribute name="depends-on" type="TdependsOn"/>
<xsd:attribute name="activation" use="prohibited" fixed="lazy"/>
<xsd:attribute name="interface" type="Tclass"/>
<xsd:attribute name="ref" type="Tidref"/>
<xsd:attribute name="auto-export" type="TautoExportModes" default="disabled"/>
<xsd:attribute name="ranking" type="xsd:int" default="0"/>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:group name="GbaseServiceElements">
<xsd:sequence>
<xsd:element name="description" type="Tdescription" minOccurs="0"/>
<xsd:element name="interfaces" type="Tinterfaces" minOccurs="0">
<xsd:annotation>
<xsd:documentation><![CDATA[
A collection of one or more interface class names this service
will be registered under. The <service> element also has
a shortcut interface attribute for the usual case of just
a single interface being used. This also cannot be used if
the auto-export attribute is used.
]]></xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="service-properties" type="TserviceProperties" minOccurs="0">
<xsd:annotation>
<xsd:documentation><![CDATA[
The service provided when the service is registered. The service
properties are similar to map elements, but the keys must always
be strings, and the values are required to be in a narrower range.
]]></xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="registration-listener" type="TregistrationListener" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation><![CDATA[
A set of 0 or more registration listeners attached to this service
component. The registration listeners will be notified whenever the
service is registered or unregistered from the framework service
registry.
]]></xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:group>
<xsd:group name="GserviceElements">
<xsd:annotation>
<xsd:documentation><![CDATA[
A set of service elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="GbaseServiceElements"/>
<xsd:group ref="GtargetComponent" minOccurs="0">
<xsd:annotation>
<xsd:documentation><![CDATA[
A service definition can use any of the target types as an inline element
as well.
]]></xsd:documentation>
</xsd:annotation>
</xsd:group>
</xsd:sequence>
</xsd:group>
<xsd:complexType name="TregistrationListener">
<xsd:annotation>
<xsd:documentation><![CDATA[
A registration listener definition. The target registration listener
can be either a <ref> to a <bean> or <service> component, or an inline
<bean> or <service> component definition. The registration-method and
unregistration-method attributes define the methods that will be called
for the respective events.
For the very common case of using a <ref> to a listener component, the
ref attribute may also be used as a shortcut.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="GtargetComponent" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="ref" type="Tidref"/>
<xsd:attribute name="registration-method" type="Tmethod"/>
<xsd:attribute name="unregistration-method" type="Tmethod"/>
</xsd:complexType>
<!-- Values -->
<xsd:group name="Gvalue">
<xsd:annotation>
<xsd:documentation><![CDATA[
The set of "value" types that can be used in any place a value
can be specified. This set includes the <ref> and <idref> elements, any of the
component types (<bean>, <service>, etc.) as inline components, the
generic <value> element for types sourced from string values, any of the
collection types (<set>, <list>, <array>, <map>, <props>), and the
<null> type to inject a null value.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:group ref="GnonNullValue"/>
<xsd:element name="null" type="Tnull"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="Tnull">
<xsd:annotation>
<xsd:documentation><![CDATA[
The definition for a <null> value type.
]]></xsd:documentation>
</xsd:annotation>
</xsd:complexType>
<xsd:group name="GnonNullValue">
<xsd:annotation>
<xsd:documentation><![CDATA[
The set of "value" types that can be used in any place a non-null value
can be specified. This set includes the <ref> and <idref> elements, any of the
component types (<bean>, <service>, etc.) as inline components, the
generic <value> element for types sourced from string values, and any of the
collection types (<set>, <list>, <array>, <map>, <props>).
The <null> type is NOT a member of this group.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice>
<xsd:group ref="GallComponents"/>
<xsd:element name="idref" type="Tref"/>
<xsd:element name="value" type="Tvalue"/>
<xsd:element name="list" type="Tcollection"/>
<xsd:element name="set" type="Tcollection"/>
<xsd:element name="map" type="Tmap"/>
<xsd:element name="array" type="Tcollection"/>
<xsd:element name="props" type="Tprops"/>
</xsd:choice>
</xsd:group>
<xsd:complexType name="Tref">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tref is the type used for <ref> elements. This specifies a required
component id for the reference component.
]]></xsd:documentation>
</xsd:annotation>
<xsd:attribute name="component-id" type="Tidref" use="required"/>
</xsd:complexType>
<xsd:complexType name="Tvalue" mixed="true">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tvalue is the type used for <value> elements. The <value> element
is used for types that can be created from a single string value.
The string value is the data value for the element. The optional
type attribute allows a target conversion value to be explicitly
specified.
]]></xsd:documentation>
</xsd:annotation>
<xsd:attribute name="type" type="Ttype"/>
</xsd:complexType>
<!-- Collection Values -->
<xsd:complexType name="TtypedCollection">
<xsd:annotation>
<xsd:documentation><![CDATA[
TtypeCollection defines comment attributes shared among different
collection types that allow a default value type to be specified.
]]></xsd:documentation>
</xsd:annotation>
<xsd:attribute name="value-type" type="Ttype"/>
</xsd:complexType>
<xsd:complexType name="Tcollection">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tcollection is the base schema type for different ordered collection
types. This is shared between the <array>, <list>, and <set> elements.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="TtypedCollection">
<xsd:group ref="Gvalue" minOccurs="0" maxOccurs="unbounded"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="Tprops">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tprops is the type used by the <props> value element. The prop elements
are pairs of string-valued keys and values.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="prop" type="Tprop" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Tprop" mixed="true">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tprop is a single property element for a <props> value type. The property
value can be specified using either the attribute, or as value data for
the property element.
]]></xsd:documentation>
</xsd:annotation>
<xsd:attribute name="key" type="TstringValue" use="required"/>
<xsd:attribute name="value" type="TstringValue"/>
</xsd:complexType>
<!-- 'map' element type -->
<xsd:complexType name="Tmap">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tmap is the base type used for <map> elements. A map may have a
default value type specified, so it inherits from the TtypeCollection
type. A key type can also be specified, and the map members are
created from the entry elements, which require a key/value pair.
]]></xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="TtypedCollection">
<xsd:sequence>
<xsd:element name="entry" type="TmapEntry" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="key-type" type="Ttype"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<!-- 'entry' element type -->
<xsd:complexType name="TmapEntry">
<xsd:annotation>
<xsd:documentation><![CDATA[
TmapEntry is used for <entry> elements nested inside of a <map> element.
Each <entry> instance defines a key/value pair that will be added to the
Map. Both the keys and values may be arbitrary types. Keys must not
be <null> but <null> is permitted for entry values. A default type
can be specified for both the keys and the values, but individual keys
or values can override the default.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="key" type="Tkey" minOccurs="0"/>
<xsd:group ref="Gvalue" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="key" type="TstringValue"/>
<xsd:attribute name="key-ref" type="Tidref"/>
<xsd:attribute name="value" type="TstringValue"/>
<xsd:attribute name="value-ref" type="Tidref"/>
</xsd:complexType>
<!-- 'service property' element type -->
<xsd:complexType name="TserviceProperties">
<xsd:annotation>
<xsd:documentation><![CDATA[
TserviceProperty is used for <service-properties> elements.
The syntax is similar to what is defined for <map>, but keys must be
string values and there are no type defaults that can be specified.
created from the entry elements, which require a key/value pair.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="entry" type="TservicePropertyEntry" minOccurs="0" maxOccurs="unbounded"/>
<xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<!-- 'entry' element type -->
<xsd:complexType name="TservicePropertyEntry">
<xsd:annotation>
<xsd:documentation><![CDATA[
TservicePropertyEntry is an entry value used for the <service-properties>
element. This does not allow a child <key> element and there are no
key-ref or value-ref attributes.
]]></xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:group ref="Gvalue" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="key" type="TstringValue" use="required"/>
<xsd:attribute name="value" type="TstringValue"/>
</xsd:complexType>
<!-- General types -->
<xsd:complexType name="Tdescription" mixed="true">
<xsd:annotation>
<xsd:documentation><![CDATA[
A generic <description> element type to allow documentation to added to the
blueprint configuration.
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded"/>
</xsd:complexType>
<xsd:complexType name="Tinterfaces">
<xsd:annotation>
<xsd:documentation><![CDATA[
The type definition for the <interfaces> element used for <service>
]]></xsd:documentation>
</xsd:annotation>
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element name="value" type="TinterfaceValue"/>
</xsd:choice>
</xsd:complexType>
<xsd:simpleType name="TinterfaceValue">
<xsd:annotation>
<xsd:documentation><![CDATA[
TinterfaceValue is used for subelements of the <interfaces> element.
This is just a <value>xxxxx</value> element where the contained
value is the name of an interface class.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="Tclass"/>
</xsd:simpleType>
<xsd:simpleType name="Tclass">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tclass is a base type that should be used for all attributes that
refer to java class names.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NCName"/>
</xsd:simpleType>
<xsd:simpleType name="Ttype">
<xsd:annotation>
<xsd:documentation><![CDATA[
Ttype is a base type that refer to java types such as classes or
arrays.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:token">
<xsd:pattern value="[\i-[:]][\c-[:]]*(\[\])*"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Tmethod">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tmethod is a base type that should be used for all attributes that
refer to java method names.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NCName"/>
</xsd:simpleType>
<!--
Should be used for all attributes and elements that refer to method
names
-->
<xsd:simpleType name="Tidref">
<xsd:annotation>
<xsd:documentation><![CDATA[
Tidref is a base type that should be used for all attributes that
refer to component ids.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NCName"/>
</xsd:simpleType>
<xsd:simpleType name="TstringValue">
<xsd:annotation>
<xsd:documentation><![CDATA[
TstringValue is a base type that should be used for all attributes that
refer to raw string values
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:normalizedString"/>
</xsd:simpleType>
<xsd:simpleType name="TautoExportModes">
<xsd:annotation>
<xsd:documentation><![CDATA[
TautoExportModes is a base type that should be used for export-mode
attributes.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="disabled"/>
<xsd:enumeration value="interfaces"/>
<xsd:enumeration value="class-hierarchy"/>
<xsd:enumeration value="all-classes"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Ttimeout">
<xsd:annotation>
<xsd:documentation><![CDATA[
Ttimeout is a base type that should be used for all attributes that
specify timeout values
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:unsignedLong"/>
</xsd:simpleType>
<xsd:simpleType name="TdependsOn">
<xsd:annotation>
<xsd:documentation><![CDATA[
TdependsOn is a base type that should be used for all attributes that
specify depends-on relationships
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction>
<xsd:simpleType>
<xsd:list itemType="Tidref"/>
</xsd:simpleType>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Tscope">
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="singleton"/>
<xsd:enumeration value="prototype"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="xsd:QName">
<xsd:pattern value=".+:.+"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
<xsd:simpleType name="Tservice-use">
<xsd:annotation>
<xsd:documentation><![CDATA[
Indicates the type of object that will be placed within the
reference collection. "service-object" indicates the
collection contains blueprint proxies for imported services.
"service-reference" indicates the collection contains
ServiceReference objects matching the target service type.
]]></xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:NMTOKEN">
<xsd:enumeration value="service-object"/>
<xsd:enumeration value="service-reference"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>

View File

@ -0,0 +1,38 @@
{
"m:connector-selector": {
"topChild": true,
"children": [
"m:properties-to-use",
"m:patterns",
"m:options"
]
},
"m:properties-to-use": {
"children": [
"m:property"
]
},
"m:property": {"children": []},
"m:patterns": {
"children": [
"m:pattern"
]
},
"m:pattern": {"children": []},
"m:options": {
"children": [
"m:fail-back-to-legacy-router",
"m:use-the-only-connector",
"m:use-default-connector",
"m:connector-preferred-as-mandatory",
"m:allow-all-stars-pattern",
"m:treat-no-property-as-any"
]
},
"m:fail-back-to-legacy-router": {"children": []},
"m:use-the-only-connector": {"children": []},
"m:use-default-connector": {"children": []},
"m:connector-preferred-as-mandatory": {"children": []},
"m:allow-all-stars-pattern": {"children": []},
"m:treat-no-property-as-any": {"children": []}
}

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" targetNamespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="connector-selector" type="m:Tconnector-selector">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="Tconnector-selector">
<xs:sequence>
<xs:element name="properties-to-use" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="property" type="xs:string" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="patterns" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="pattern" type="xs:string" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="options" minOccurs="0">
<xs:complexType>
<xs:all>
<xs:element name="fail-back-to-legacy-router" type="xs:boolean" minOccurs="0"/>
<xs:element name="use-the-only-connector" type="xs:boolean" minOccurs="0"/>
<xs:element name="use-default-connector" type="xs:boolean" minOccurs="0"/>
<xs:element name="connector-preferred-as-mandatory" type="xs:boolean" minOccurs="0"/>
<xs:element name="allow-all-stars-pattern" type="xs:boolean" minOccurs="0"/>
<xs:element name="treat-no-property-as-any" type="xs:boolean" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>

View File

@ -0,0 +1,148 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2024 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:entaxy="http://www.entaxy.ru/schemas/1.0"
xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:local="http://www.entaxy.ru/schemas/entaxy-mediators/connector-selector/1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="context.type" select="'entaxy.runtime.profile'"/>
<xsl:param name="context.fieldName" select="'in-flow-pre-route'"/>
<xsl:param name="context.objectId" select="'sys-13'"/>
<xsl:template match="/">
<xsl:variable name="processed">
<xsl:sequence select="local:add-ids(./element()[1])"/>
</xsl:variable>
<fragment>
<xsl:for-each select="$processed//m:connector-selector">
<xsl:call-template name="create-selector-bean"/>
</xsl:for-each>
<xsl:apply-templates select="$processed/element()[1]"/>
</fragment>
</xsl:template>
<xsl:function name="local:add-ids" as="element()*">
<xsl:param name="root"/>
<xsl:apply-templates select="$root"/>
</xsl:function>
<xsl:template match="//m:connector-selector[not(@*)]" exclude-result-prefixes="xsl fn xs local">
<m:connector-selector>
<xsl:attribute name="id" select="replace(generate-id(), ':', '') "/>
<xsl:apply-templates select="child::node()"/>
</m:connector-selector>
</xsl:template>
<xsl:template match="//m:connector-selector[@id]" exclude-result-prefixes="xsl fn xs local">
<xsl:comment>generated from 'connector-selector'</xsl:comment>
<to xmlns="http://camel.apache.org/schema/blueprint">
<xsl:attribute name="uri">
<xsl:text>bean:selector-</xsl:text><xsl:value-of select="./@id"/>
</xsl:attribute> <!-- select="concat('bean',':','selector-', ./@id)" /-->
</to>
</xsl:template>
<xsl:template name="create-selector-bean">
<blueprint:bean class="ru.entaxy.platform.profiles.runtime.support.ConnectorSelector" activation="eager">
<xsl:attribute name="id">
<xsl:text>selector-</xsl:text><xsl:value-of select="./@id"/>
</xsl:attribute>
<!-- select="concat('selector-', ./@id)" / -->
<blueprint:property name="config">
<xsl:attribute name="value" select="local:generate-config(.)"/>
</blueprint:property>
<blueprint:property name="profile">
<xsl:attribute name="ref" select="concat('profile-', $context.objectId)"/>
</blueprint:property>
</blueprint:bean>
</xsl:template>
<xsl:function name="local:generate-config">
<xsl:param name="selector-node"/>
<xsl:text>{</xsl:text>
<xsl:apply-templates select="$selector-node/node()"/>
<xsl:text>"_end":true}</xsl:text>
</xsl:function>
<xsl:template match="//m:connector-selector[@id]/m:properties-to-use">
<xsl:text>"properties":[</xsl:text>
<xsl:for-each select="./m:property">
<xsl:text>"</xsl:text><xsl:value-of select="./text()"/><xsl:text>"</xsl:text>
<xsl:if test="./following-sibling::m:property">
<xsl:text>,</xsl:text>
</xsl:if>
</xsl:for-each>
<xsl:text>],</xsl:text>
</xsl:template>
<xsl:template match="//m:connector-selector[@id]/m:patterns">
<xsl:text>"patterns":[</xsl:text>
<xsl:for-each select="./m:pattern">
<xsl:text>"</xsl:text><xsl:value-of select="./text()"/><xsl:text>"</xsl:text>
<xsl:if test="./following-sibling::m:pattern">
<xsl:text>,</xsl:text>
</xsl:if>
</xsl:for-each>
<xsl:text>],</xsl:text>
</xsl:template>
<xsl:template match="//m:connector-selector[@id]/m:options">
<xsl:text>"options":{</xsl:text>
<xsl:for-each select="./element()">
<xsl:text>"</xsl:text><xsl:value-of select="./local-name()"/><xsl:text>":</xsl:text>
<xsl:choose>
<xsl:when test="string-length(./text()) > 0">
<xsl:variable name="value" select="./text()"/>
<xsl:choose>
<xsl:when test="($value = 'true') or ($value = 'false')">
<xsl:value-of select="./text()"/><xsl:text>,</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>"</xsl:text><xsl:value-of select="./text()"/><xsl:text>",</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:text>true,</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<xsl:text>"_end":true},</xsl:text>
</xsl:template>
<xsl:template name="default-copy" match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,194 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2024 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:entaxy="http://www.entaxy.ru/schemas/1.0"
xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="context.type" select="'entaxy.runtime.profile'"/>
<xsl:param name="context.fieldName" select="'in-flow-pre-route'"/>
<xsl:param name="context.objectId" select="'sys-13'"/>
<xsl:param name="profileName" select="'sys-00'"/>
<xsl:variable name="dot">
<xsl:text>.</xsl:text>
</xsl:variable>
<xsl:template match="//entaxy:object-route" exclude-result-prefixes="fn xs">
<xsl:choose>
<xsl:when test="$context.type = 'entaxy.runtime.connector'">
<!-- connector route fields processing -->
<xsl:choose>
<xsl:when test="$context.fieldName = 'responseRoute'">
<route id="custom.response-route" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:variable name="uri">
<xsl:text>direct:connector-</xsl:text><xsl:value-of select="$context.objectId"/><xsl:text>-response-route</xsl:text>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of
select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of
select="$context.fieldName"/>
</xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri"/>
</from>
<xsl:apply-templates select="node()"/>
</route>
</xsl:when>
<xsl:when test="$context.fieldName = 'pre-route'">
<route id="custom.pre-route" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:variable name="uri">
<xsl:text>direct:connector-</xsl:text><xsl:value-of select="$context.objectId"/><xsl:text>-pre-route</xsl:text>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of
select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of
select="$context.fieldName"/>
</xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri"/>
</from>
<xsl:apply-templates select="node()"/>
</route>
</xsl:when>
<xsl:when test="$context.fieldName = 'pre-output'">
<route id="custom.pre-output" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:variable name="uri">
<xsl:text>direct:connector-</xsl:text><xsl:value-of select="$context.objectId"/><xsl:text>-pre-output</xsl:text>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of
select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of
select="$context.fieldName"/>
</xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri"/>
</from>
<xsl:apply-templates select="node()"/>
</route>
</xsl:when>
<!-- custom-connector-out/customOutputRoute -->
<xsl:when test="$context.fieldName = 'customOutputRoute'">
<route xmlns="http://camel.apache.org/schema/blueprint">
<xsl:attribute name="id">
<xsl:value-of select="concat($context.objectId,$dot,'output-route')"/>
</xsl:attribute>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of
select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of
select="$context.fieldName"/>
</xsl:comment>
<from>
<xsl:attribute name="uri">
<xsl:value-of select="'direct:entry-cascade-finish'"/>
</xsl:attribute>
</from>
<xsl:apply-templates select="node()"/>
</route>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="//entaxy:object-input-route" exclude-result-prefixes="fn xs">
<xsl:choose>
<xsl:when test="$context.type = 'entaxy.runtime.connector'">
<!-- connector route fields processing -->
<xsl:choose>
<!-- custom-connector-in/customInputRoute -->
<xsl:when test="$context.fieldName = 'customInputRoute'">
<route xmlns="http://camel.apache.org/schema/blueprint">
<xsl:attribute name="id">
<xsl:value-of select="concat($context.objectId,$dot,'input-route')"/>
</xsl:attribute>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of
select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of
select="$context.fieldName"/>
</xsl:comment>
<xsl:apply-templates select="node()"/>
<to>
<xsl:attribute name="uri">
<xsl:value-of select="'direct:exit-cascade-start'"/>
</xsl:attribute>
</to>
</route>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="/">
<xsl:apply-templates select="child::node()"/>
</xsl:template>
<xsl:template name="default-copy" match="node()|@*" exclude-result-prefixes="fn xs xsi">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,325 @@
{
"m:standard-router": {
"topChild": true,
"children": []
},
"m:set-destination": {
"topChild": true,
"children": []
},
"m:default-destination": {
"topChild": true,
"children": []
},
"m:prefer-connector": {
"topChild": true,
"children": ["protocol", "classifier", "type"]
},
"protocol": {
"children": []
},
"classifier": {
"children": []
},
"type": {
"children": []
},
"m:next-route": {
"topChild": true,
"attrs": {
"local": null,
"async": null
},
"children": []
},
"m:respond": {
"topChild": true,
"attrs": {
"now": null,
"continue": null,
"continueAsync": null
},
"children": []
},
"m:xslt": {
"topChild": true,
"attrs": {
"resource": null,
"params": null
},
"children": []
},
"m:xslt-xalan": {
"topChild": true,
"attrs": {
"resource": null,
"params": null
},
"children": []
},
"m:atlasmap": {
"topChild": true,
"attrs": {
"resource": null,
"params": null
},
"children": []
},
"m:read-secret": {
"topChild": true,
"attrs": {
"vault": null,
"property": null,
"alias": null
},
"children": []
},
"m:to-connection": {
"topChild": true,
"attrs": {
"name": null,
"path": null,
"dynamic": null
},
"children": []
},
"m:entaxy-trace": {
"topChild": true,
"attrs": {
"reset": null
},
"children": [
"expressionDefinition",
"constant",
"exchangeProperty",
"groovy",
"header",
"hl7terser",
"jsonpath",
"language",
"method",
"mvel",
"ognl",
"ref",
"simple",
"spel",
"tokenize",
"xtokenize",
"xpath",
"xquery"
]
},
"m:call-route": {
"topChild": true,
"attrs": {
"name": null,
"library": null,
"async": null
},
"children": []
},
"m:set-log-key": {
"topChild": true,
"children": [
"m:service",
"m:operation",
"m:objectId",
"m:parameter",
"m:sender",
"m:receiver",
"m:custom"
]
},
"m:service": {
"attrs": {
"reset": null
},
"children": [
"expressionDefinition",
"constant",
"exchangeProperty",
"groovy",
"header",
"hl7terser",
"jsonpath",
"language",
"method",
"mvel",
"ognl",
"ref",
"simple",
"spel",
"tokenize",
"xtokenize",
"xpath",
"xquery"
]
},
"m:operation": {
"attrs": {
"reset": null
},
"children": [
"expressionDefinition",
"constant",
"exchangeProperty",
"groovy",
"header",
"hl7terser",
"jsonpath",
"language",
"method",
"mvel",
"ognl",
"ref",
"simple",
"spel",
"tokenize",
"xtokenize",
"xpath",
"xquery"
]
},
"m:objectId": {
"attrs": {
"reset": null
},
"children": [
"expressionDefinition",
"constant",
"exchangeProperty",
"groovy",
"header",
"hl7terser",
"jsonpath",
"language",
"method",
"mvel",
"ognl",
"ref",
"simple",
"spel",
"tokenize",
"xtokenize",
"xpath",
"xquery"
]
},
"m:parameter": {
"attrs": {
"reset": null
},
"children": [
"expressionDefinition",
"constant",
"exchangeProperty",
"groovy",
"header",
"hl7terser",
"jsonpath",
"language",
"method",
"mvel",
"ognl",
"ref",
"simple",
"spel",
"tokenize",
"xtokenize",
"xpath",
"xquery"
]
},
"m:sender": {
"attrs": {
"reset": null
},
"children": [
"expressionDefinition",
"constant",
"exchangeProperty",
"groovy",
"header",
"hl7terser",
"jsonpath",
"language",
"method",
"mvel",
"ognl",
"ref",
"simple",
"spel",
"tokenize",
"xtokenize",
"xpath",
"xquery"
]
},
"m:receiver": {
"attrs": {
"reset": null
},
"children": [
"expressionDefinition",
"constant",
"exchangeProperty",
"groovy",
"header",
"hl7terser",
"jsonpath",
"language",
"method",
"mvel",
"ognl",
"ref",
"simple",
"spel",
"tokenize",
"xtokenize",
"xpath",
"xquery"
]
},
"m:custom": {
"attrs": {
"name": null,
"reset": null
},
"children": [
"expressionDefinition",
"constant",
"exchangeProperty",
"groovy",
"header",
"hl7terser",
"jsonpath",
"language",
"method",
"mvel",
"ognl",
"ref",
"simple",
"spel",
"tokenize",
"xtokenize",
"xpath",
"xquery"
]
},
"m:log": {
"topChild": true,
"attrs": {
"message": null,
"loggingLevel": null,
"logName": null,
"marker": null,
"loggerRef": null,
"inheritErrorHandler": null,
"customId": null,
"id": null
},
"children": [
"description"
]
}
}

View File

@ -0,0 +1,163 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mediators="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" xmlns:camel="http://camel.apache.org/schema/blueprint" targetNamespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://camel.apache.org/schema/blueprint" schemaLocation="camel-entaxy.xsd"/>
<xs:element name="standard-router"/>
<xs:element name="set-destination" type="mediators:Tdestination"/>
<xs:element name="default-destination" type="mediators:Tdestination"/>
<xs:element name="prefer-connector">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:any namespace="##any"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="next-route">
<xs:complexType>
<xs:attribute name="local" type="xs:boolean"/>
<xs:attribute name="async" type="xs:boolean"/>
</xs:complexType>
</xs:element>
<xs:element name="respond">
<xs:complexType>
<xs:attribute name="now" type="xs:boolean" default="true"/>
<xs:attribute name="continue" type="xs:boolean" default="true"/>
<xs:attribute name="continueAsync" type="xs:boolean" default="true"/>
</xs:complexType>
</xs:element>
<xs:element name="xslt">
<xs:complexType>
<xs:attribute name="resource" use="required"/>
<xs:attribute name="params"/>
</xs:complexType>
</xs:element>
<xs:element name="xslt-xalan">
<xs:complexType>
<xs:attribute name="resource" use="required"/>
<xs:attribute name="params"/>
</xs:complexType>
</xs:element>
<xs:element name="atlasmap">
<xs:complexType>
<xs:attribute name="resource" use="required"/>
<xs:attribute name="params"/>
</xs:complexType>
</xs:element>
<xs:element name="read-secret">
<xs:complexType>
<xs:attribute name="vault" type="xs:string" use="required"/>
<xs:attribute name="property" type="xs:string" default="__SECRET__"/>
<xs:attribute name="alias" type="xs:string" default="secret"/>
</xs:complexType>
</xs:element>
<xs:element name="to-connection">
<xs:complexType>
<xs:sequence>
<xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="path" type="xs:string"/>
<xs:attribute name="dynamic" type="xs:boolean" default="true"/>
</xs:complexType>
</xs:element>
<xs:element name="entaxy-trace" type="mediators:TEntaxyTrace"/>
<xs:element name="call-route">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="library" type="xs:string"/>
<xs:attribute name="async" type="xs:boolean" default="false"/>
</xs:complexType>
</xs:element>
<xs:element name="set-log-key">
<xs:complexType>
<xs:sequence>
<xs:element name="service" type="mediators:TEntaxyTrace" minOccurs="0"/>
<xs:element name="operation" type="mediators:TEntaxyTrace" minOccurs="0"/>
<xs:element name="objectId" type="mediators:TEntaxyTrace" minOccurs="0"/>
<xs:element name="parameter" type="mediators:TEntaxyTrace" minOccurs="0"/>
<xs:element name="sender" type="mediators:TEntaxyTrace" minOccurs="0"/>
<xs:element name="receiver" type="mediators:TEntaxyTrace" minOccurs="0"/>
<xs:element name="custom" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:complexContent>
<xs:extension base="mediators:TEntaxyTrace">
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="log">
<xs:complexType>
<xs:complexContent>
<xs:extension base="camel:noOutputDefinition">
<xs:sequence/>
<xs:attribute name="message" type="xs:string" use="required">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Sets the log message (uses simple language).
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="loggingLevel" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Sets the logging level. The default value is INFO. Default value: INFO
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="logName" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Sets the name of the logger.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="marker" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
To use slf4j marker.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="loggerRef" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
To refer to a custom logger instance to lookup from the registry.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:simpleType name="Tdestination">
<xs:restriction base="xs:string">
<xs:pattern value="[0-9a-zA-Z\-_.]+(:(system.name|system-group.name|queue.name|topic.name)){0,1}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="TEntaxyTrace">
<xs:choice>
<xs:element ref="camel:expressionDefinition"/>
<xs:element ref="camel:constant"/>
<xs:element ref="camel:exchangeProperty"/>
<xs:element ref="camel:groovy"/>
<xs:element ref="camel:header"/>
<xs:element ref="camel:hl7terser"/>
<xs:element ref="camel:jsonpath"/>
<xs:element ref="camel:language"/>
<xs:element ref="camel:method"/>
<xs:element ref="camel:mvel"/>
<xs:element ref="camel:ognl"/>
<xs:element ref="camel:ref"/>
<xs:element ref="camel:simple"/>
<xs:element ref="camel:spel"/>
<xs:element ref="camel:tokenize"/>
<xs:element ref="camel:xtokenize"/>
<xs:element ref="camel:xpath"/>
<xs:element ref="camel:xquery"/>
</xs:choice>
<xs:attribute name="reset" type="xs:boolean"/>
</xs:complexType>
</xs:schema>

View File

@ -0,0 +1,763 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2024 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions"
xmlns:entaxy="http://www.entaxy.ru/schemas/1.0"
xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:camel="http://camel.apache.org/schema/blueprint"
xmlns="http://camel.apache.org/schema/blueprint">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="context.type" select="'entaxy.runtime.profile'"/>
<xsl:param name="context.fieldName" select="'in-flow-pre-route'"/>
<xsl:param name="context.objectId" select="'sys-13'"/>
<!-- only for inner routes -->
<xsl:param name="context.properties.__routeOwner" select="'unknown:'"/>
<!-- aliases -->
<xsl:param name="routeOwnerId" select="substring-before($context.properties.__routeOwner,':')"/>
<!--
BEGIN components
-->
<!-- standard-router -->
<xsl:template match="//m:standard-router">
<xsl:text>&#10;</xsl:text>
<xsl:comment>BEGIN standard-router</xsl:comment>
<choice>
<when>
<simple>${headers.ENTAXY_Destination} == null</simple>
<log>
<xsl:attribute name="message">${header.NTX_loggingKey} Destination isn't set</xsl:attribute>
<xsl:attribute name="loggingLevel">ERROR</xsl:attribute>
</log>
<throwException exceptionType="java.lang.IllegalArgumentException"
message="Destination isn't set"/>
</when>
<when>
<simple>${headers.ENTAXY_DestinationType} == 'system.name'</simple>
<toD>
<xsl:attribute name="uri">system:${headers.ENTAXY_Destination}</xsl:attribute>
</toD>
</when>
<when>
<simple>${headers.ENTAXY_DestinationType} == 'system-group.name'</simple>
<toD>
<xsl:attribute name="uri">system-group:${headers.ENTAXY_Destination}</xsl:attribute>
</toD>
</when>
<when>
<simple>${headers.ENTAXY_DestinationType} == 'queue.name'</simple>
<toD>
<xsl:attribute name="uri">entaxy-broker:queue:${headers.ENTAXY_Destination}</xsl:attribute>
</toD>
</when>
<when>
<simple>${headers.ENTAXY_DestinationType} == 'topic.name'</simple>
<toD>
<xsl:attribute name="uri">entaxy-broker:topic:${headers.ENTAXY_Destination}</xsl:attribute>
</toD>
</when>
<otherwise>
<toD>
<xsl:attribute name="uri">system:${headers.ENTAXY_Destination}</xsl:attribute>
</toD>
</otherwise>
</choice>
<xsl:text>&#10;</xsl:text>
<xsl:comment>END standard-router</xsl:comment>
</xsl:template>
<!-- set-destination -->
<xsl:template match="//m:set-destination" exclude-result-prefixes="xsl fn xs camel">
<xsl:variable name="full" select="./text()"/>
<xsl:variable name="name">
<xsl:choose>
<xsl:when test="contains($full, ':')">
<xsl:value-of select="substring-before($full, ':')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$full"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="type" select="substring-after($full, ':')"/>
<xsl:comment>generated from 'set-destination'</xsl:comment>
<setHeader name="ENTAXY_Destination">
<constant>
<xsl:value-of select="$name"/>
</constant>
</setHeader>
<xsl:choose>
<xsl:when test="string-length($type) > 0">
<setHeader name="ENTAXY_DestinationType">
<constant>
<xsl:value-of select="$type"/>
</constant>
</setHeader>
</xsl:when>
<xsl:otherwise>
<removeHeader headerName="ENTAXY_DestinationType"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- default-destination -->
<xsl:template match="//m:default-destination" exclude-result-prefixes="xsl fn xs camel">
<xsl:variable name="full" select="./text()"/>
<xsl:variable name="name">
<xsl:choose>
<xsl:when test="contains($full, ':')">
<xsl:value-of select="substring-before($full, ':')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$full"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="type" select="substring-after($full, ':')"/>
<xsl:comment>generated from 'default-destination'</xsl:comment>
<choice>
<when>
<simple>${headers.ENTAXY_Destination} == null || ${headers.ENTAXY_Destination} == ''</simple>
<removeHeader headerName="ENTAXY_DestinationType"/>
<setHeader name="ENTAXY_Destination">
<constant>
<xsl:value-of select="$name"/>
</constant>
</setHeader>
<xsl:if test="string-length($type) > 0">
<setHeader name="ENTAXY_DestinationType">
<constant>
<xsl:value-of select="$type"/>
</constant>
</setHeader>
</xsl:if>
</when>
</choice>
</xsl:template>
<!-- prefer-connector -->
<!--
USAGE:
<prefer-connector>
<protocol>file</protocol>
<classifier></classifier>
<type></type>
</prefer-connector>
-->
<xsl:template match="//m:prefer-connector" exclude-result-prefixes="xsl fn xs camel">
<xsl:variable name="nodes" select="child::element()"/>
<setHeader name="NTX_preferred_connector">
<constant>
<xsl:text>{</xsl:text>
<xsl:for-each select="$nodes">
<xsl:text>"</xsl:text><xsl:value-of select="local-name(.)"/><xsl:text>": "</xsl:text><xsl:value-of
select="."/><xsl:text>"</xsl:text>
<xsl:variable name="i" select="position()"/>
<xsl:choose>
<xsl:when test="$nodes[$i + 1]!=''">
<xsl:text>,</xsl:text>
</xsl:when>
</xsl:choose>
</xsl:for-each>
<xsl:text>}</xsl:text>
</constant>
</setHeader>
</xsl:template>
<!-- log -->
<xsl:template match="//m:log" exclude-result-prefixes="xsl fn xs camel">
<xsl:variable name="nodes" select="child::element()"/>
<log>
<xsl:variable name="message">
<xsl:value-of select="@message"/>
</xsl:variable>
<xsl:if test="string-length($message) > 0">
<xsl:attribute name="message"
select="concat('${headers.NTX_loggingKey} ', $message)"/>
</xsl:if>
<xsl:variable name="loggingLevel">
<xsl:value-of select="@loggingLevel"/>
</xsl:variable>
<xsl:if test="string-length($loggingLevel) > 0">
<xsl:attribute name="loggingLevel" select="$loggingLevel"/>
</xsl:if>
<xsl:variable name="logName">
<xsl:value-of select="@logName"/>
</xsl:variable>
<xsl:if test="string-length($logName) > 0">
<xsl:attribute name="logName" select="$logName"/>
</xsl:if>
<xsl:variable name="marker">
<xsl:value-of select="@marker"/>
</xsl:variable>
<xsl:if test="string-length($marker) > 0">
<xsl:attribute name="marker" select="$marker"/>
</xsl:if>
<xsl:variable name="loggerRef">
<xsl:value-of select="@loggerRef"/>
</xsl:variable>
<xsl:if test="string-length($loggerRef) > 0">
<xsl:attribute name="loggerRef" select="$loggerRef"/>
</xsl:if>
</log>
</xsl:template>
<xsl:template match="//m:set-log-key" exclude-result-prefixes="xsl fn xs camel">
<xsl:for-each select="./*">
<xsl:choose>
<xsl:when test="local-name() = 'custom'">
<setProperty>
<xsl:attribute name="name" select="@name"/>
<xsl:copy-of select="node()"/>
</setProperty>
</xsl:when>
<xsl:otherwise>
<setProperty>
<xsl:attribute name="name" select="local-name()"/>
<xsl:copy-of select="node()"/>
</setProperty>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
<to uri="direct-vm:fill-logging-key"/>
</xsl:template>
<!-- next-route -->
<xsl:template match="//m:next-route" exclude-result-prefixes="xsl fn xs camel">
<xsl:variable name="local">
<xsl:choose>
<xsl:when test="./@local">
<xsl:value-of select="./@local"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>false</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="async">
<xsl:choose>
<xsl:when test="./@async">
<xsl:value-of select="./@async"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>false</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="component">
<xsl:choose>
<xsl:when test="$async = 'false'">
<xsl:text>direct</xsl:text>
<xsl:if test="$local = 'false'">
<xsl:text>-vm</xsl:text>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$local = 'true'">
<xsl:text>seda</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>vm</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="name">
<xsl:value-of select="./text()"/>
</xsl:variable>
<xsl:comment>generated from 'next-route'</xsl:comment>
<setHeader name="NTX_NextPoint">
<constant>
<xsl:value-of select="$component"/><xsl:text>:</xsl:text><xsl:value-of select="$name"/>
</constant>
</setHeader>
</xsl:template>
<!-- xslt-xalan with resources -->
<xsl:template match="//m:xslt-xalan" exclude-result-prefixes="xsl fn xs camel">
<blueprint:reference id="xslUrlResolver" interface="javax.xml.transform.URIResolver" filter="(type=xslt)"/>
<to>
<xsl:variable name="resource">
<xsl:value-of select="@resource"/>
</xsl:variable>
<xsl:variable name="params">
<xsl:value-of select="@params"/>
</xsl:variable>
<xsl:variable name="resultResource">
<xsl:choose>
<xsl:when test="contains($resource, ':')">
<xsl:value-of select="translate($resource,':','/')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$resource"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="resultParams">
<xsl:choose>
<xsl:when test="string-length($params) > 0">
<xsl:value-of select="concat('&amp;', $params)"/>
</xsl:when>
<xsl:otherwise>
<xsl:text/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:attribute name="uri"
select="concat('xslt:entaxy-resource://', $resultResource, '?uriResolver=#xslUrlResolver', $resultParams)"/>
</to>
</xsl:template>
<!-- xslt with resources -->
<xsl:template match="//m:xslt" exclude-result-prefixes="xsl fn xs camel">
<blueprint:reference id="xslUrlResolver" interface="javax.xml.transform.URIResolver" filter="(type=xslt)"/>
<to>
<xsl:variable name="resource">
<xsl:value-of select="@resource"/>
</xsl:variable>
<xsl:variable name="params">
<xsl:value-of select="@params"/>
</xsl:variable>
<xsl:variable name="resultResource">
<xsl:choose>
<xsl:when test="contains($resource, ':')">
<xsl:value-of select="translate($resource,':','/')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$resource"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="resultParams">
<xsl:choose>
<xsl:when test="string-length($params) > 0">
<xsl:value-of select="concat('&amp;', $params)"/>
</xsl:when>
<xsl:otherwise>
<xsl:text/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:attribute name="uri"
select="concat('xslt-saxon:entaxy-resource://', $resultResource, '?uriResolver=#xslUrlResolver', $resultParams)"/>
</to>
</xsl:template>
<!-- atlasmap with resources -->
<xsl:template match="//m:atlasmap" exclude-result-prefixes="xsl fn xs camel">
<to>
<xsl:variable name="resource">
<xsl:value-of select="@resource"/>
</xsl:variable>
<xsl:variable name="params">
<xsl:value-of select="@params"/>
</xsl:variable>
<xsl:variable name="resultParams">
<xsl:choose>
<xsl:when test="string-length($params) > 0">
<xsl:value-of select="concat( '?', $params)"/>
</xsl:when>
<xsl:otherwise>
<xsl:text/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:attribute name="uri" select="concat('atlas:', $resource, $resultParams)"/>
</to>
</xsl:template>
<!-- read-secret -->
<xsl:template match="//m:read-secret" exclude-result-prefixes="xsl fn xs camel">
<xsl:choose>
<xsl:when test="@vault">
<xsl:variable name="vault">
<xsl:value-of select="@vault"/>
</xsl:variable>
<xsl:variable name="property">
<xsl:choose>
<xsl:when test="@property">
<xsl:value-of select="@property"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>__SECRET__</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="secretName">
<xsl:choose>
<xsl:when test="@alias">
<xsl:value-of select="@alias"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>secret</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="dollar">
<xsl:text>$</xsl:text>
</xsl:variable>
<reference interface="ru.entaxy.security.vault.runtime.EntaxyVault"
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<xsl:attribute name="id" select="concat('vault-ref-',$vault)"/>
<xsl:attribute name="filter" select="concat('(name=', $vault, ')')"/>
</reference>
<bean class="ru.entaxy.security.vault.runtime.camel.EntaxyVaultHelperBean" activation="eager"
xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<xsl:attribute name="id" select="concat('vault-wrapper-',$vault)"/>
<property name="entaxyVault">
<xsl:attribute name="ref" select="concat('vault-ref-',$vault)"/>
</property>
</bean>
<to>
<xsl:attribute name="uri"
select="concat('bean:vault-wrapper-',$vault,'?method=getValue(', $dollar, '{exchange}, ''', $secretName, ''',''', $property, ''')' )"/>
</to>
</xsl:when>
</xsl:choose>
</xsl:template>
<!-- respond -->
<xsl:template match="//m:respond" exclude-result-prefixes="xsl fn xs camel">
<xsl:variable name="respondNow">
<xsl:choose>
<xsl:when test="@now">
<xsl:value-of select="@now"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>true</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="respondContinue">
<xsl:choose>
<xsl:when test="@continue">
<xsl:value-of select="@continue"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>true</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="respondContinueAsync">
<xsl:choose>
<xsl:when test="@continueAsync">
<xsl:value-of select="@continueAsync"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>true</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<setHeader name="NTX_RESPOND_exec">
<constant>true</constant>
</setHeader>
<setHeader name="NTX_RESPOND_now">
<constant>
<xsl:value-of select="$respondNow"/>
</constant>
</setHeader>
<setHeader name="NTX_RESPOND_continue">
<constant>
<xsl:value-of select="$respondContinue"/>
</constant>
</setHeader>
<setHeader name="NTX_RESPOND_continueAsync">
<constant>
<xsl:value-of select="$respondContinueAsync"/>
</constant>
</setHeader>
</xsl:template>
<!-- to-connection -->
<xsl:template match="//m:to-connection" exclude-result-prefixes="xsl fn xs camel">
<reference interface="org.apache.camel.Component" xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<xsl:attribute name="id" select="@name"/>
<xsl:attribute name="filter" select="concat('(connection.name=', @name, ')')"/>
</reference>
<xsl:variable name="dir">
<xsl:choose>
<xsl:when test="@path">
<xsl:value-of select="@path"/>
</xsl:when>
<xsl:otherwise>
<xsl:text></xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:choose>
<xsl:when test="@dynamic = 'true'">
<toD>
<xsl:variable name="queryString">
<xsl:for-each select="./element()">
<xsl:call-template name="convert-to-query"/>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="resultQS">
<xsl:choose>
<xsl:when test="string-length($queryString) > 0">
<xsl:value-of select="concat('?', $queryString)"/>
</xsl:when>
<xsl:otherwise>
<xsl:text/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:attribute name="uri" select="concat(@name,':' ,$dir , $resultQS)"/>
</toD>
</xsl:when>
<xsl:otherwise>
<to>
<xsl:variable name="queryString">
<xsl:for-each select="./element()">
<xsl:call-template name="convert-to-query"/>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="resultQS">
<xsl:choose>
<xsl:when test="string-length($queryString) > 0">
<xsl:value-of select="concat('?', $queryString)"/>
</xsl:when>
<xsl:otherwise>
<xsl:text/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:attribute name="uri" select="concat(@name,':' ,$dir , $resultQS)"/>
</to>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- call-route -->
<xsl:template match="//m:call-route" exclude-result-prefixes="xsl fn xs camel">
<xsl:variable name="finalRouteId" select="@name"/>
<xsl:variable name="finalOwner">
<xsl:choose>
<xsl:when test="$routeOwnerId != 'unknown'">
<xsl:value-of select="$routeOwnerId"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$context.objectId"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="finalLocal">
<xsl:choose>
<xsl:when test="@library and not(@library = '')">
<xsl:value-of select="'false'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'true'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="finalLibrary">
<xsl:choose>
<xsl:when test="@library and not(@library = '')">
<xsl:value-of select="@library"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$finalOwner"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="finalAsync">
<xsl:choose>
<xsl:when test="@async">
<xsl:value-of select="@async"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'false'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="finalSchema">
<xsl:choose>
<xsl:when test="$finalLocal = 'true'">
<xsl:choose>
<xsl:when test="$finalAsync = 'true'">
<xsl:value-of select="'seda'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'direct'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$finalAsync = 'true'">
<xsl:value-of select="'vm'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'direct-vm'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="finalUri">
<xsl:value-of select="concat($finalSchema, ':', $finalLibrary, '__', $finalRouteId)"/>
</xsl:variable>
<xsl:variable name="finalDynamic">
<xsl:choose>
<!--
@TODO investigate why 'matches' doesn't work corectly in Saxon
<xsl:when test="matches($finalUri, '.*(\$\{.+\}).*')">
-->
<!--
@TODO investigate why we have to get '${' via concatenation rather than setting it directly
seems to be Saxon-related issue
-->
<xsl:when test="contains($finalUri, concat('$','{'))">
<xsl:value-of select="'true'"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'false'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="finalTo">
<xsl:choose>
<xsl:when test="$finalDynamic = 'true'">
<toD>
<xsl:attribute name="uri" select="$finalUri"/>
</toD>
</xsl:when>
<xsl:otherwise>
<to>
<xsl:attribute name="uri" select="$finalUri"/>
</to>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>
<xsl:text> Generated from 'call-route': name=</xsl:text><xsl:value-of select="@name"/><xsl:text>; library=</xsl:text><xsl:value-of
select="@library"/><xsl:text>; async=</xsl:text><xsl:value-of select="@async"/><xsl:text> </xsl:text>
</xsl:comment>
<xsl:text>&#10;</xsl:text>
<xsl:choose>
<xsl:when test="$finalAsync = 'true'">
<multicast shareUnitOfWork="true">
<xsl:copy-of select="$finalTo"/>
</multicast>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$finalTo"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- entaxy-trace -->
<!--
USAGE:
<m:entaxy-trace reset="true">
<simple>${headers.HEADER_TO_TRACE}</simple>
</m:entaxy-trace>
-->
<xsl:template match="//m:entaxy-trace" exclude-result-prefixes="xsl fn xs camel">
<xsl:choose>
<xsl:when test="@reset = true()">
<setHeader name="ENTAXY_TRACE">
<constant></constant>
</setHeader>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="child::element()[1]">
<choice>
<when>
<simple>${headers.ENTAXY_TRACE} != null</simple>
<setHeader name="ENTAXY_TRACE">
<simple>${headers.ENTAXY_TRACE} -&gt;</simple>
</setHeader>
</when>
</choice>
<setHeader name="NTX_TRACE_RECORD">
<xsl:apply-templates select="child::element()[1]"/>
</setHeader>
<choice>
<when>
<simple>${headers.ENTAXY_TRACE} == null</simple>
<setHeader name="ENTAXY_TRACE">
<simple>[${headers.NTX_TRACE_RECORD}]</simple>
</setHeader>
</when>
<otherwise>
<setHeader name="ENTAXY_TRACE">
<simple>${headers.ENTAXY_TRACE}[${headers.NTX_TRACE_RECORD}]</simple>
</setHeader>
</otherwise>
</choice>
<removeHeader headerName="NTX_TRACE_RECORD"/>
</xsl:when>
</xsl:choose>
</xsl:template>
<!--
END components
-->
<xsl:template match="/">
<xsl:apply-templates select="child::node()"/>
</xsl:template>
<xsl:template name="default-copy" match="node()|@*" exclude-result-prefixes="fn xs xsi">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template name="convert-to-query" exclude-result-prefixes="xsl fn xs camel">
<xsl:value-of select="concat(node-name(.), '=', text())"/>
<xsl:if test="./following-sibling::element()">
<xsl:text>&amp;</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,161 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2024 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:entaxy="http://www.entaxy.ru/schemas/1.0" xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="context.type" select="'entaxy.runtime.profile'" />
<xsl:param name="context.fieldName" select="'in-flow-pre-route'" />
<xsl:param name="context.objectId" select="'sys-13'" />
<xsl:param name="profileName" select="'sys-00'" />
<xsl:template match="//entaxy:object-route" exclude-result-prefixes="fn xs">
<xsl:choose>
<xsl:when test="$context.type = 'entaxy.runtime.profile'">
<!-- profile route fields processing -->
<xsl:choose>
<xsl:when test="$context.fieldName = 'in-flow-pre-route'">
<route id="custom.in-flow-pre-route" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:variable name="uri">
<xsl:text>direct:profile-</xsl:text><xsl:value-of select="$context.objectId" /><xsl:text>-in-flow-pre-route</xsl:text>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of select="$context.fieldName"/></xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri" />
</from>
<xsl:apply-templates select="node()" />
</route>
</xsl:when>
<xsl:when test="$context.fieldName = 'in-flow-response'">
<route id="custom.in-flow-response" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:variable name="uri">
<xsl:text>direct:profile-</xsl:text><xsl:value-of select="$context.objectId" /><xsl:text>-in-flow-response-route</xsl:text>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of select="$context.fieldName"/></xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri" />
</from>
<xsl:apply-templates select="node()" />
</route>
</xsl:when>
<xsl:when test="$context.fieldName = 'out-flow-pre-route'">
<route id="custom.out-flow-pre-route" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:variable name="uri">
<xsl:text>direct:profile-</xsl:text><xsl:value-of select="$context.objectId" /><xsl:text>-out-flow-pre-route</xsl:text>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of select="$context.fieldName"/></xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri" />
</from>
<xsl:apply-templates select="node()" />
</route>
</xsl:when>
<xsl:when test="$context.fieldName = 'out-flow-response'">
<route id="custom.out-flow-response" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:variable name="uri">
<xsl:text>direct:profile-</xsl:text><xsl:value-of select="$context.objectId" /><xsl:text>-out-flow-response-route</xsl:text>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of select="$context.fieldName"/></xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri" />
</from>
<xsl:apply-templates select="node()" />
</route>
</xsl:when>
<xsl:when test="$context.fieldName = 'connector-selector'">
<route id="custom.connector-selector" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:variable name="uri">
<xsl:text>direct:profile-</xsl:text><xsl:value-of select="$context.objectId" /><xsl:text>-connector-selector</xsl:text>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of select="$context.fieldName"/></xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri" />
</from>
<xsl:apply-templates select="node()" />
</route>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="$context.type = 'entaxy.runtime.default-route'">
<!-- default-route route fields processing -->
<xsl:choose>
<xsl:when test="$context.fieldName = 'routeContent'">
<route id="custom.route-content" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:variable name="uri">
<xsl:text>direct-vm:profile-</xsl:text><xsl:value-of select="$profileName" /><xsl:text>-default-route</xsl:text>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of select="$context.fieldName"/></xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri" />
</from>
<xsl:apply-templates select="node()" />
</route>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="/">
<xsl:apply-templates select="child::node()" />
</xsl:template>
<xsl:template name="default-copy" match="node()|@*" exclude-result-prefixes="fn xs xsi">
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,293 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2024 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:entaxy="http://www.entaxy.ru/schemas/1.0"
xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="context.type" select="'entaxy.runtime.route'" />
<xsl:param name="context.fieldName" select="'route'" />
<xsl:param name="context.objectId" select="'route-00'" />
<xsl:param name="context.factory.typeinfo.routeType" select="'COMMON'" />
<xsl:param name="context.factory.typeinfo.routePattern" select="'ABSTRACT'" />
<!-- alias -->
<xsl:param name="routeType" select="$context.factory.typeinfo.routeType" />
<xsl:param name="routePattern" select="$context.factory.typeinfo.routePattern" />
<!-- only for callable routes -->
<xsl:param name="context.properties.globalCallMode" select="'NONE'" />
<xsl:param name="context.properties.localCallMode" select="'SYNC'" />
<!-- aliases -->
<xsl:param name="globalCallMode" select="$context.properties.globalCallMode" />
<xsl:param name="localCallMode" select="$context.properties.localCallMode" />
<!-- only for eggregate routes -->
<xsl:param name="context.properties.aggregatorId" select="'none'" />
<xsl:template match="//entaxy:common-route" exclude-result-prefixes="fn xs">
<xsl:choose>
<xsl:when test="$routeType = 'CALLABLE'">
<!-- profile route fields processing -->
<xsl:variable name="localSync">
<xsl:choose>
<xsl:when test="$localCallMode = 'SYNC' or $localCallMode='BOTH'">
<xsl:value-of select="true()" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="false()" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="localAsync">
<xsl:choose>
<xsl:when test="$localCallMode = 'ASYNC' or $localCallMode='BOTH'">
<xsl:value-of select="true()" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="false()" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="globalSync">
<xsl:choose>
<xsl:when test="$globalCallMode = 'SYNC' or $globalCallMode='BOTH'">
<xsl:value-of select="true()" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="false()" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="globalAsync">
<xsl:choose>
<xsl:when test="$globalCallMode = 'ASYNC' or $globalCallMode='BOTH'">
<xsl:value-of select="true()" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="false()" />
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="routeInternalId">
<xsl:value-of select="concat($context.objectId, '-route-internal')" />
</xsl:variable>
<!-- output entry points -->
<xsl:comment>
<xsl:text>&#10;</xsl:text><xsl:text>globalAsync = </xsl:text><xsl:value-of select="$globalAsync" />
<xsl:text>&#10;</xsl:text><xsl:text>globalSync = </xsl:text><xsl:value-of select="$globalSync" />
<xsl:text>&#10;</xsl:text><xsl:text>localAsync = </xsl:text><xsl:value-of select="$localAsync" />
<xsl:text>&#10;</xsl:text><xsl:text>localSync = </xsl:text><xsl:value-of select="$localSync" />
</xsl:comment>
<!-- seda -->
<xsl:if test="$localAsync = true()">
<xsl:call-template name="callable-route-entry-point">
<xsl:with-param name="mode">async</xsl:with-param>
<xsl:with-param name="visibility">local</xsl:with-param>
<xsl:with-param name="protocol">seda</xsl:with-param>
<xsl:with-param name="objectId" select="$context.objectId" />
<xsl:with-param name="routeInternalId" select="$routeInternalId" />
</xsl:call-template>
<!--
<route xmlns="http://camel.apache.org/schema/blueprint">
<xsl:text>&#10;</xsl:text>
<xsl:comment>local async (seda) entry point for <xsl:value-of select="$context.objectId"/></xsl:comment>
<from>
<xsl:attribute name="uri">
<xsl:text>seda:</xsl:text><xsl:value-of select="$context.objectId" />
</xsl:attribute>
</from>
<to>
<xsl:attribute name="uri">
<xsl:text>direct:</xsl:text><xsl:value-of select="$routeInternalId" />
</xsl:attribute>
</to>
</route>
-->
</xsl:if>
<!-- direct -->
<xsl:if test="$localSync = true()">
<xsl:call-template name="callable-route-entry-point">
<xsl:with-param name="mode">sync</xsl:with-param>
<xsl:with-param name="visibility">local</xsl:with-param>
<xsl:with-param name="protocol">direct</xsl:with-param>
<xsl:with-param name="objectId" select="$context.objectId" />
<xsl:with-param name="routeInternalId" select="$routeInternalId" />
</xsl:call-template>
<!--
<route xmlns="http://camel.apache.org/schema/blueprint">
<xsl:text>&#10;</xsl:text>
<xsl:comment>local sync (direct) entry point for <xsl:value-of select="$context.objectId"/></xsl:comment>
<from>
<xsl:attribute name="uri">
<xsl:text>direct:</xsl:text><xsl:value-of select="$context.objectId" />
</xsl:attribute>
</from>
<to>
<xsl:attribute name="uri">
<xsl:text>direct:</xsl:text><xsl:value-of select="$routeInternalId" />
</xsl:attribute>
</to>
</route>
-->
</xsl:if>
<!-- vm -->
<xsl:if test="$globalAsync = true()">
<xsl:call-template name="callable-route-entry-point">
<xsl:with-param name="mode">async</xsl:with-param>
<xsl:with-param name="visibility">global</xsl:with-param>
<xsl:with-param name="protocol">vm</xsl:with-param>
<xsl:with-param name="objectId" select="$context.objectId" />
<xsl:with-param name="routeInternalId" select="$routeInternalId" />
</xsl:call-template>
<!--
<route xmlns="http://camel.apache.org/schema/blueprint">
<xsl:text>&#10;</xsl:text>
<xsl:comment>global async (vm) entry point for <xsl:value-of select="$context.objectId"/></xsl:comment>
<from>
<xsl:attribute name="uri">
<xsl:text>vm:</xsl:text><xsl:value-of select="$context.objectId" />
</xsl:attribute>
</from>
<to>
<xsl:attribute name="uri">
<xsl:text>direct:</xsl:text><xsl:value-of select="$routeInternalId" />
</xsl:attribute>
</to>
</route>
-->
</xsl:if>
<!-- direct-vm -->
<xsl:if test="$globalSync = true()">
<xsl:call-template name="callable-route-entry-point">
<xsl:with-param name="mode">sync</xsl:with-param>
<xsl:with-param name="visibility">global</xsl:with-param>
<xsl:with-param name="protocol">direct-vm</xsl:with-param>
<xsl:with-param name="objectId" select="$context.objectId" />
<xsl:with-param name="routeInternalId" select="$routeInternalId" />
</xsl:call-template>
<!--
<route xmlns="http://camel.apache.org/schema/blueprint">
<xsl:text>&#10;</xsl:text>
<xsl:comment>global sync (direct-vm) entry point for <xsl:value-of select="$context.objectId"/></xsl:comment>
<from>
<xsl:attribute name="uri">
<xsl:text>direct-vm:</xsl:text><xsl:value-of select="$context.objectId" />
</xsl:attribute>
</from>
<to>
<xsl:attribute name="uri">
<xsl:text>direct:</xsl:text><xsl:value-of select="$routeInternalId" />
</xsl:attribute>
</to>
</route>
-->
</xsl:if>
<!-- route itself -->
<route xmlns="http://camel.apache.org/schema/blueprint" delayer="0">
<xsl:attribute name="id"><xsl:value-of select="$context.objectId" /></xsl:attribute>
<xsl:variable name="uri">
<xsl:text>direct:</xsl:text><xsl:value-of select="$routeInternalId" />
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:common-route' for <xsl:value-of select="$context.objectId"/>:<xsl:value-of select="$context.type"/></xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri" />
</from>
<xsl:choose>
<xsl:when test="$routePattern = 'AGGREGATOR'">
<aggregate>
<xsl:attribute name="id"><xsl:value-of select="$context.properties.aggregatorId" /></xsl:attribute>
<xsl:apply-templates select="node()" />
</aggregate>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="node()" />
</xsl:otherwise>
</xsl:choose>
</route>
</xsl:when>
<xsl:when test="$routeType = 'SCHEDULED'">
<route xmlns="http://camel.apache.org/schema/blueprint" delayer="0">
<xsl:attribute name="id"><xsl:value-of select="$context.objectId" /></xsl:attribute>
<xsl:comment>generated from 'entaxy:common-route' for <xsl:value-of select="$context.objectId"/>:<xsl:value-of select="$context.type"/></xsl:comment>
<xsl:apply-templates select="node()" />
</route>
</xsl:when>
<xsl:otherwise>
<!-- UNSUPPORTED ROUTE TYPE -->
<xsl:comment>
<xsl:text>WARNING: UNSUPPORTED ROUTE TYPE: </xsl:text><xsl:value-of select="$routeType" />
</xsl:comment>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="callable-route-entry-point" exclude-result-prefixes="fn xs">
<xsl:param name="mode" select="'sync'" />
<xsl:param name="visibility" select="'global'" />
<xsl:param name="protocol" select="'direct-vm'" />
<xsl:param name="objectId" select="'route-0'" />
<xsl:param name="routeInternalId" select="'route-0-route-internal'" />
<route xmlns="http://camel.apache.org/schema/blueprint">
<xsl:attribute name="id">
<xsl:value-of select="$objectId" /><xsl:text>-</xsl:text><xsl:value-of select="$visibility" /><xsl:text>-</xsl:text><xsl:value-of select="$mode" /><xsl:text>-entry-point</xsl:text>
</xsl:attribute>
<xsl:text>&#10;</xsl:text>
<xsl:comment><xsl:value-of select="$visibility"/><xsl:text> </xsl:text><xsl:value-of select="$mode"/> (<xsl:value-of select="$protocol"/>) entry point for <xsl:value-of select="$objectId"/></xsl:comment>
<from>
<xsl:attribute name="uri">
<xsl:value-of select="$protocol"/><xsl:text>:</xsl:text><xsl:value-of select="$objectId" />
</xsl:attribute>
</from>
<to>
<xsl:attribute name="uri">
<xsl:text>direct:</xsl:text><xsl:value-of select="$routeInternalId" />
</xsl:attribute>
</to>
</route>
</xsl:template>
<xsl:template match="/">
<xsl:apply-templates select="child::node()" />
</xsl:template>
<xsl:template name="default-copy" match="node()|@*" exclude-result-prefixes="fn xs xsi">
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,83 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2024 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:entaxy="http://www.entaxy.ru/schemas/1.0" xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="context.type" select="'entaxy.runtime.service'" />
<xsl:param name="context.fieldName" select="'serviceField01'" />
<xsl:param name="context.objectId" select="'service-00'" />
<xsl:param name="serviceType" select="'UNKNOWN'" />
<xsl:template match="//entaxy:object-route" exclude-result-prefixes="fn xs">
<xsl:choose>
<xsl:when test="$context.type = 'entaxy.runtime.service'">
<!-- service route fields processing -->
<xsl:choose>
<xsl:when test="$context.fieldName = 'operationRouter'">
<route xmlns="http://camel.apache.org/schema/blueprint">
<xsl:attribute name="id"><xsl:value-of select="concat($context.objectId, '-operation-router')" /></xsl:attribute>
<xsl:variable name="uri">
<xsl:text>direct:</xsl:text><xsl:value-of select="$context.objectId" /><xsl:text>-operation-router</xsl:text>
</xsl:variable>
<xsl:text>&#10;</xsl:text>
<xsl:comment>generated from 'entaxy:object-route' for <xsl:value-of select="$context.objectId"/>:<xsl:value-of select="$context.type"/>/<xsl:value-of select="$context.fieldName"/></xsl:comment>
<from>
<xsl:attribute name="uri" select="$uri" />
</from>
<xsl:apply-templates select="node()" />
</route>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="/">
<xsl:apply-templates select="child::node()" />
</xsl:template>
<xsl:template name="default-copy" match="node()|@*" exclude-result-prefixes="fn xs xsi">
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2024 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:entaxy="http://www.entaxy.ru/schemas/1.0" xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<!-- wrap with route-container -->
<xsl:template match="/" exclude-result-prefixes="fn xs">
<xsl:choose>
<xsl:when test="/entaxy:route-container">
<xsl:apply-templates select="child::node()" />
</xsl:when>
<xsl:otherwise>
<entaxy:route-container>
<xsl:apply-templates select="child::node()" />
</entaxy:route-container>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="default-copy" match="node()|@*" exclude-result-prefixes="fn xs xsi">
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2024 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<entaxy:entaxy-routes xmlns:entaxy="http://www.entaxy.ru/schemas/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://camel.apache.org/schema/blueprint" xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0">
<entaxy:camel-route>
<from></from>
<blueprint:bean></blueprint:bean>
<!--m:connector-selector></m:connector-selector-->
</entaxy:camel-route>
<entaxy:profile-pre-route>
<choice>
<when>
<expressionDefinition>qwe</expressionDefinition>
</when>
</choice>
</entaxy:profile-pre-route>
<entaxy:object-route></entaxy:object-route>
</entaxy:entaxy-routes>

View File

@ -0,0 +1,466 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.entaxy.ru/schemas/1.0" xmlns:camel="http://camel.apache.org/schema/blueprint" xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" targetNamespace="http://www.entaxy.ru/schemas/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://camel.apache.org/schema/blueprint" schemaLocation="camel-entaxy.xsd"/>
<xs:import namespace="http://www.osgi.org/xmlns/blueprint/v1.0.0" schemaLocation="blueprint-entaxy.xsd"/>
<xs:import namespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" schemaLocation="entaxy-mediators.xsd"/>
<xs:complexType name="TEntaxyAbstractRoute">
<xs:complexContent>
<xs:extension base="camel:output">
<xs:sequence>
<xs:element ref="camel:from" minOccurs="0"/>
<xs:element ref="camel:inputType" minOccurs="0"/>
<xs:element ref="camel:outputType" minOccurs="0"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="camel:onException"/>
<xs:element ref="camel:when"/>
<xs:element ref="camel:onCompletion"/>
<xs:element ref="camel:intercept"/>
<xs:element ref="camel:interceptFrom"/>
<xs:element ref="camel:interceptSendToEndpoint"/>
<xs:element ref="camel:to"/>
<xs:element ref="camel:toD"/>
<xs:element ref="camel:route"/>
<xs:element ref="camel:aggregate"/>
<xs:element ref="camel:bean"/>
<xs:element ref="camel:doCatch"/>
<xs:element ref="camel:choice"/>
<xs:element ref="camel:otherwise"/>
<xs:element ref="camel:circuitBreaker"/>
<xs:element ref="camel:claimCheck"/>
<xs:element ref="camel:convertBodyTo"/>
<xs:element ref="camel:delay"/>
<xs:element ref="camel:dynamicRouter"/>
<xs:element ref="camel:enrich"/>
<xs:element ref="camel:filter"/>
<xs:element ref="camel:doFinally"/>
<xs:element ref="camel:idempotentConsumer"/>
<xs:element ref="camel:inOnly"/>
<xs:element ref="camel:inOut"/>
<xs:element ref="camel:loadBalance"/>
<xs:element ref="camel:log"/>
<xs:element ref="camel:loop"/>
<xs:element ref="camel:marshal"/>
<xs:element ref="camel:multicast"/>
<xs:element ref="camel:onFallback"/>
<xs:element ref="camel:pipeline"/>
<xs:element ref="camel:policy"/>
<xs:element ref="camel:pollEnrich"/>
<xs:element ref="camel:process"/>
<xs:element ref="camel:recipientList"/>
<xs:element ref="camel:removeHeader"/>
<xs:element ref="camel:removeHeaders"/>
<xs:element ref="camel:removeProperties"/>
<xs:element ref="camel:removeProperty"/>
<xs:element ref="camel:resequence"/>
<xs:element ref="camel:rollback"/>
<xs:element ref="camel:routingSlip"/>
<xs:element ref="camel:saga"/>
<xs:element ref="camel:sample"/>
<xs:element ref="camel:script"/>
<xs:element ref="camel:setBody"/>
<xs:element ref="camel:setExchangePattern"/>
<xs:element ref="camel:setHeader"/>
<xs:element ref="camel:setProperty"/>
<xs:element ref="camel:sort"/>
<xs:element ref="camel:split"/>
<xs:element ref="camel:step"/>
<xs:element ref="camel:stop"/>
<xs:element ref="camel:threads"/>
<xs:element ref="camel:throttle"/>
<xs:element ref="camel:throwException"/>
<xs:element ref="camel:transacted"/>
<xs:element ref="camel:transform"/>
<xs:element ref="camel:doTry"/>
<xs:element ref="camel:unmarshal"/>
<xs:element ref="camel:validate"/>
<xs:element ref="camel:whenSkipSendToEndpoint"/>
<xs:element ref="camel:wireTap"/>
<xs:element ref="camel:serviceCall"/>
<xs:element ref="blueprint:bean"/>
<xs:element ref="blueprint:reference"/>
<xs:any namespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0"/>
</xs:choice>
<xs:element name="routeProperty" type="camel:propertyDefinition" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="autoStartup" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Whether to auto start this route. Default value: true
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="delayer" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Whether to slow down processing messages by a given delay in msec.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="errorHandlerRef" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Sets the bean ref name of the error handler builder to use on this route.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="group" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
The group that this route belongs to; could be the name of the RouteBuilder
class or be explicitly configured in the XML. May be null.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="logMask" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Whether security mask for Logging is enabled on this route. Default value: false
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="messageHistory" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Whether message history is enabled on this route. Default value: true
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="rest" type="xs:boolean"/>
<xs:attribute name="routePolicyRef" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Reference to custom org.apache.camel.spi.RoutePolicy to use by the route.
Multiple policies can be configured by separating values using comma.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="shutdownRoute" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
To control how to shutdown the route.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="shutdownRunningTask" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
To control how to shutdown the route.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="startupOrder" type="xs:int">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
To configure the ordering of the routes being started.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="streamCache" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Whether stream caching is enabled on this route.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="trace" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en"><![CDATA[
Whether tracing is enabled on this route.
]]></xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TEntaxyPredefinedRoute">
<xs:complexContent>
<xs:restriction base="TEntaxyAbstractRoute">
<xs:sequence>
<xs:sequence>
<xs:element ref="camel:description" minOccurs="0"/>
</xs:sequence>
<xs:sequence/>
<xs:sequence/>
<xs:sequence>
<xs:element ref="camel:from" minOccurs="0" maxOccurs="0"/>
<xs:element ref="camel:inputType" minOccurs="0"/>
<xs:element ref="camel:outputType" minOccurs="0"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="camel:onException"/>
<xs:element ref="camel:when"/>
<xs:element ref="camel:onCompletion"/>
<xs:element ref="camel:intercept"/>
<xs:element ref="camel:interceptFrom"/>
<xs:element ref="camel:interceptSendToEndpoint"/>
<xs:element ref="camel:to"/>
<xs:element ref="camel:toD"/>
<xs:element ref="camel:route"/>
<xs:element ref="camel:aggregate"/>
<xs:element ref="camel:bean"/>
<xs:element ref="camel:doCatch"/>
<xs:element ref="camel:choice"/>
<xs:element ref="camel:otherwise"/>
<xs:element ref="camel:circuitBreaker"/>
<xs:element ref="camel:claimCheck"/>
<xs:element ref="camel:convertBodyTo"/>
<xs:element ref="camel:delay"/>
<xs:element ref="camel:dynamicRouter"/>
<xs:element ref="camel:enrich"/>
<xs:element ref="camel:filter"/>
<xs:element ref="camel:doFinally"/>
<xs:element ref="camel:idempotentConsumer"/>
<xs:element ref="camel:inOnly"/>
<xs:element ref="camel:inOut"/>
<xs:element ref="camel:loadBalance"/>
<xs:element ref="camel:log"/>
<xs:element ref="camel:loop"/>
<xs:element ref="camel:marshal"/>
<xs:element ref="camel:multicast"/>
<xs:element ref="camel:onFallback"/>
<xs:element ref="camel:pipeline"/>
<xs:element ref="camel:policy"/>
<xs:element ref="camel:pollEnrich"/>
<xs:element ref="camel:process"/>
<xs:element ref="camel:recipientList"/>
<xs:element ref="camel:removeHeader"/>
<xs:element ref="camel:removeHeaders"/>
<xs:element ref="camel:removeProperties"/>
<xs:element ref="camel:removeProperty"/>
<xs:element ref="camel:resequence"/>
<xs:element ref="camel:rollback"/>
<xs:element ref="camel:routingSlip"/>
<xs:element ref="camel:saga"/>
<xs:element ref="camel:sample"/>
<xs:element ref="camel:script"/>
<xs:element ref="camel:setBody"/>
<xs:element ref="camel:setExchangePattern"/>
<xs:element ref="camel:setHeader"/>
<xs:element ref="camel:setProperty"/>
<xs:element ref="camel:sort"/>
<xs:element ref="camel:split"/>
<xs:element ref="camel:step"/>
<xs:element ref="camel:stop"/>
<xs:element ref="camel:threads"/>
<xs:element ref="camel:throttle"/>
<xs:element ref="camel:throwException"/>
<xs:element ref="camel:transacted"/>
<xs:element ref="camel:transform"/>
<xs:element ref="camel:doTry"/>
<xs:element ref="camel:unmarshal"/>
<xs:element ref="camel:validate"/>
<xs:element ref="camel:whenSkipSendToEndpoint"/>
<xs:element ref="camel:wireTap"/>
<xs:element ref="camel:serviceCall"/>
<xs:element ref="blueprint:bean"/>
<xs:element ref="blueprint:reference"/>
<xs:any namespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0"/>
</xs:choice>
<xs:element name="routeProperty" type="camel:propertyDefinition" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TEntaxyPredefinedInputRoute">
<xs:complexContent>
<xs:restriction base="TEntaxyAbstractRoute">
<xs:sequence>
<xs:sequence>
<xs:element ref="camel:description" minOccurs="0"/>
</xs:sequence>
<xs:sequence/>
<xs:sequence/>
<xs:sequence>
<xs:element ref="camel:from" minOccurs="1" maxOccurs="1"/>
<xs:element ref="camel:inputType" minOccurs="0"/>
<xs:element ref="camel:outputType" minOccurs="0"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="camel:onException"/>
<xs:element ref="camel:when"/>
<xs:element ref="camel:onCompletion"/>
<xs:element ref="camel:intercept"/>
<xs:element ref="camel:interceptFrom"/>
<xs:element ref="camel:interceptSendToEndpoint"/>
<xs:element ref="camel:to"/>
<xs:element ref="camel:toD"/>
<xs:element ref="camel:route"/>
<xs:element ref="camel:aggregate"/>
<xs:element ref="camel:bean"/>
<xs:element ref="camel:doCatch"/>
<xs:element ref="camel:choice"/>
<xs:element ref="camel:otherwise"/>
<xs:element ref="camel:circuitBreaker"/>
<xs:element ref="camel:claimCheck"/>
<xs:element ref="camel:convertBodyTo"/>
<xs:element ref="camel:delay"/>
<xs:element ref="camel:dynamicRouter"/>
<xs:element ref="camel:enrich"/>
<xs:element ref="camel:filter"/>
<xs:element ref="camel:doFinally"/>
<xs:element ref="camel:idempotentConsumer"/>
<xs:element ref="camel:inOnly"/>
<xs:element ref="camel:inOut"/>
<xs:element ref="camel:loadBalance"/>
<xs:element ref="camel:log"/>
<xs:element ref="camel:loop"/>
<xs:element ref="camel:marshal"/>
<xs:element ref="camel:multicast"/>
<xs:element ref="camel:onFallback"/>
<xs:element ref="camel:pipeline"/>
<xs:element ref="camel:policy"/>
<xs:element ref="camel:pollEnrich"/>
<xs:element ref="camel:process"/>
<xs:element ref="camel:recipientList"/>
<xs:element ref="camel:removeHeader"/>
<xs:element ref="camel:removeHeaders"/>
<xs:element ref="camel:removeProperties"/>
<xs:element ref="camel:removeProperty"/>
<xs:element ref="camel:resequence"/>
<xs:element ref="camel:rollback"/>
<xs:element ref="camel:routingSlip"/>
<xs:element ref="camel:saga"/>
<xs:element ref="camel:sample"/>
<xs:element ref="camel:script"/>
<xs:element ref="camel:setBody"/>
<xs:element ref="camel:setExchangePattern"/>
<xs:element ref="camel:setHeader"/>
<xs:element ref="camel:setProperty"/>
<xs:element ref="camel:sort"/>
<xs:element ref="camel:split"/>
<xs:element ref="camel:step"/>
<xs:element ref="camel:stop"/>
<xs:element ref="camel:threads"/>
<xs:element ref="camel:throttle"/>
<xs:element ref="camel:throwException"/>
<xs:element ref="camel:transacted"/>
<xs:element ref="camel:transform"/>
<xs:element ref="camel:doTry"/>
<xs:element ref="camel:unmarshal"/>
<xs:element ref="camel:validate"/>
<xs:element ref="camel:whenSkipSendToEndpoint"/>
<xs:element ref="camel:wireTap"/>
<xs:element ref="camel:serviceCall"/>
<xs:element ref="blueprint:bean"/>
<xs:element ref="blueprint:reference"/>
<xs:any namespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0"/>
</xs:choice>
<xs:element name="routeProperty" type="camel:propertyDefinition" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TEntaxyCamelRoute">
<xs:complexContent>
<xs:restriction base="TEntaxyAbstractRoute">
<xs:sequence>
<xs:sequence>
<xs:element ref="camel:description" minOccurs="0"/>
</xs:sequence>
<xs:sequence/>
<xs:sequence/>
<xs:sequence>
<xs:element ref="camel:from"/>
<xs:element ref="camel:inputType" minOccurs="0"/>
<xs:element ref="camel:outputType" minOccurs="0"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="camel:onException"/>
<xs:element ref="camel:when"/>
<xs:element ref="camel:onCompletion"/>
<xs:element ref="camel:intercept"/>
<xs:element ref="camel:interceptFrom"/>
<xs:element ref="camel:interceptSendToEndpoint"/>
<xs:element ref="camel:to"/>
<xs:element ref="camel:toD"/>
<xs:element ref="camel:route"/>
<xs:element ref="camel:aggregate"/>
<xs:element ref="camel:bean"/>
<xs:element ref="camel:doCatch"/>
<xs:element ref="camel:choice"/>
<xs:element ref="camel:otherwise"/>
<xs:element ref="camel:circuitBreaker"/>
<xs:element ref="camel:claimCheck"/>
<xs:element ref="camel:convertBodyTo"/>
<xs:element ref="camel:delay"/>
<xs:element ref="camel:dynamicRouter"/>
<xs:element ref="camel:enrich"/>
<xs:element ref="camel:filter"/>
<xs:element ref="camel:doFinally"/>
<xs:element ref="camel:idempotentConsumer"/>
<xs:element ref="camel:inOnly"/>
<xs:element ref="camel:inOut"/>
<xs:element ref="camel:loadBalance"/>
<xs:element ref="camel:log"/>
<xs:element ref="camel:loop"/>
<xs:element ref="camel:marshal"/>
<xs:element ref="camel:multicast"/>
<xs:element ref="camel:onFallback"/>
<xs:element ref="camel:pipeline"/>
<xs:element ref="camel:policy"/>
<xs:element ref="camel:pollEnrich"/>
<xs:element ref="camel:process"/>
<xs:element ref="camel:recipientList"/>
<xs:element ref="camel:removeHeader"/>
<xs:element ref="camel:removeHeaders"/>
<xs:element ref="camel:removeProperties"/>
<xs:element ref="camel:removeProperty"/>
<xs:element ref="camel:resequence"/>
<xs:element ref="camel:rollback"/>
<xs:element ref="camel:routingSlip"/>
<xs:element ref="camel:saga"/>
<xs:element ref="camel:sample"/>
<xs:element ref="camel:script"/>
<xs:element ref="camel:setBody"/>
<xs:element ref="camel:setExchangePattern"/>
<xs:element ref="camel:setHeader"/>
<xs:element ref="camel:setProperty"/>
<xs:element ref="camel:sort"/>
<xs:element ref="camel:split"/>
<xs:element ref="camel:step"/>
<xs:element ref="camel:stop"/>
<xs:element ref="camel:threads"/>
<xs:element ref="camel:throttle"/>
<xs:element ref="camel:throwException"/>
<xs:element ref="camel:transacted"/>
<xs:element ref="camel:transform"/>
<xs:element ref="camel:doTry"/>
<xs:element ref="camel:unmarshal"/>
<xs:element ref="camel:validate"/>
<xs:element ref="camel:whenSkipSendToEndpoint"/>
<xs:element ref="camel:wireTap"/>
<xs:element ref="camel:serviceCall"/>
<xs:element ref="blueprint:bean"/>
<xs:element ref="blueprint:reference"/>
<xs:any namespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0"/>
</xs:choice>
<xs:element name="routeProperty" type="camel:propertyDefinition" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="TEntaxyRoutes">
<xs:complexContent>
<xs:extension base="camel:optionalIdentifiedDefinition">
<xs:sequence minOccurs="0">
<xs:choice maxOccurs="unbounded">
<xs:element ref="camel:route"/>
<xs:any namespace="http://www.entaxy.ru/schemas/1.0"/>
</xs:choice>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="camel-route" type="TEntaxyCamelRoute"/>
<xs:element name="entaxy-routes" type="TEntaxyRoutes"/>
<xs:element name="object-route" type="TEntaxyPredefinedRoute"/>
<xs:element name="object-input-route" type="TEntaxyPredefinedInputRoute"/>
<xs:element name="common-route" type="TEntaxyPredefinedRoute"/>
<xs:element name="custom-route" type="TEntaxyCamelRoute"/>
<xs:complexType name="TEntaxyChoiceDefinition">
<xs:complexContent>
<xs:extension base="camel:choiceDefinition"/>
</xs:complexContent>
</xs:complexType>
<xs:element name="route-container" type="TEntaxyRoutes"/>
</xs:schema>

View File

@ -0,0 +1,101 @@
{
"library": "entaxy-main",
"objectFilter": "",
"schemas": [
{
"root": "entaxy.xsd",
"namespace": "http://www.entaxy.ru/schemas/1.0",
"prefix": "entaxy",
"isPublic": true,
"objectFilter": "",
"transform": [
{
"processor": "xslt",
"source": "entaxy-struct.xslt",
"objectFilter": ""
},
{
"processor": "xslt",
"source": "entaxy-profiles.xslt",
"objectFilter": "(|(context.type=entaxy.runtime.profile)(context.type=entaxy.runtime.default-route))"
},
{
"processor": "xslt",
"source": "entaxy-connectors.xslt",
"objectFilter": "(context.type=entaxy.runtime.connector)"
},
{
"processor": "xslt",
"source": "entaxy-services.xslt",
"objectFilter": "(context.type=entaxy.runtime.service)"
},
{
"processor": "xslt",
"source": "entaxy-routes.xslt",
"objectFilter": "(context.type=entaxy.runtime.route)"
}
]
},
{
"root": "connector-selector.xsd",
"namespace": "http://www.entaxy.ru/schemas/entaxy-mediators/1.0",
"prefix": "m",
"isPublic": true,
"objectFilter": "(&(context.type=entaxy.runtime.profile)(context.fieldName=connector-selector))",
"transform": [
{
"processor": "xslt",
"source": "connector-selector.xslt",
"objectFilter": ""
}
],
"uiDescriptor": "connector-selector.json"
},
{
"root": "entaxy-mediators.xsd",
"namespace": "http://www.entaxy.ru/schemas/entaxy-mediators/1.0",
"prefix": "m",
"isPublic": true,
"objectFilter": "",
"transform": [
{
"processor": "xslt",
"source": "entaxy-mediators.xslt",
"objectFilter": ""
}
],
"uiDescriptor": "entaxy-mediators.json"
},
{
"root": "rest-service-components.xsd",
"namespace": "http://www.entaxy.ru/schemas/entaxy-mediators/1.0",
"prefix": "m",
"isPublic": true,
"objectFilter": "(&(|(context.type=entaxy.runtime.service)(context.type=entaxy.runtime.connector))(context.factory.typeinfo.serviceType=REST))",
"transform": [
{
"processor": "xslt",
"source": "rest-service-components.xslt",
"objectFilter": ""
}
],
"uiDescriptor": "rest-service-components.json"
},
{
"root": "soap-service-components.xsd",
"namespace": "http://www.entaxy.ru/schemas/entaxy-mediators/1.0",
"prefix": "m",
"isPublic": true,
"objectFilter": "(&(|(context.type=entaxy.runtime.service)(context.type=entaxy.runtime.connector))(context.factory.typeinfo.serviceType=SOAP))",
"transform": [
{
"processor": "xslt",
"source": "soap-service-components.xslt",
"objectFilter": ""
}
],
"uiDescriptor": "soap-service-components.json"
}
]
}

View File

@ -0,0 +1,174 @@
{
"m:operation-router": {
"topChild": true,
"children": [
"m:operation",
"m:unknown-operation"
]
},
"m:operation": {
"attrs": {
"name": null
},
"children": [
"onException",
"when",
"onCompletion",
"intercept",
"interceptFrom",
"interceptSendToEndpoint",
"to",
"toD",
"route",
"aggregate",
"bean",
"doCatch",
"choice",
"otherwise",
"circuitBreaker",
"claimCheck",
"convertBodyTo",
"delay",
"dynamicRouter",
"enrich",
"filter",
"doFinally",
"idempotentConsumer",
"inOnly",
"inOut",
"loadBalance",
"log",
"loop",
"marshal",
"multicast",
"onFallback",
"pipeline",
"policy",
"pollEnrich",
"process",
"recipientList",
"removeHeader",
"removeHeaders",
"removeProperties",
"removeProperty",
"resequence",
"rollback",
"routingSlip",
"saga",
"sample",
"script",
"setBody",
"setExchangePattern",
"setHeader",
"setProperty",
"sort",
"split",
"step",
"stop",
"threads",
"throttle",
"throwException",
"transacted",
"transform",
"doTry",
"unmarshal",
"validate",
"whenSkipSendToEndpoint",
"wireTap",
"serviceCall",
"m:standard-router",
"m:set-destination",
"m:default-destination",
"m:prefer-connector",
"m:next-route",
"m:respond",
"m:xslt",
"m:xslt-xalan",
"m:atlasmap",
"m:read-secret",
"m:to-connection",
"m:entaxy-trace",
"m:call-route",
"m:set-log-key",
"m:log"
]
},
"m:unknown-operation": {
"children": [
"onException",
"when",
"onCompletion",
"intercept",
"interceptFrom",
"interceptSendToEndpoint",
"to",
"toD",
"route",
"aggregate",
"bean",
"doCatch",
"choice",
"otherwise",
"circuitBreaker",
"claimCheck",
"convertBodyTo",
"delay",
"dynamicRouter",
"enrich",
"filter",
"doFinally",
"idempotentConsumer",
"inOnly",
"inOut",
"loadBalance",
"log",
"loop",
"marshal",
"multicast",
"onFallback",
"pipeline",
"policy",
"pollEnrich",
"process",
"recipientList",
"removeHeader",
"removeHeaders",
"removeProperties",
"removeProperty",
"resequence",
"rollback",
"routingSlip",
"saga",
"sample",
"script",
"setBody",
"setExchangePattern",
"setHeader",
"setProperty",
"sort",
"split",
"step",
"stop",
"threads",
"throttle",
"throwException",
"transacted",
"transform",
"doTry",
"unmarshal",
"validate",
"whenSkipSendToEndpoint",
"wireTap",
"serviceCall"
]
},
"m:service-connector": {
"topChild": true,
"attrs": {
"direction": [
"in",
"out"
]
}
}
}

View File

@ -0,0 +1,106 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mediators="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" xmlns:camel="http://camel.apache.org/schema/blueprint" targetNamespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://camel.apache.org/schema/blueprint" schemaLocation="camel-entaxy.xsd"/>
<xs:element name="operation-router">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="operation" type="mediators:TServiceNamedOperation" maxOccurs="unbounded"/>
<xs:element name="unknown-operation" type="mediators:TServiceOperation" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="TServiceOperation">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="camel:onException"/>
<xs:element ref="camel:when"/>
<xs:element ref="camel:onCompletion"/>
<xs:element ref="camel:intercept"/>
<xs:element ref="camel:interceptFrom"/>
<xs:element ref="camel:interceptSendToEndpoint"/>
<xs:element ref="camel:to"/>
<xs:element ref="camel:toD"/>
<xs:element ref="camel:route"/>
<xs:element ref="camel:aggregate"/>
<xs:element ref="camel:bean"/>
<xs:element ref="camel:doCatch"/>
<xs:element ref="camel:choice"/>
<xs:element ref="camel:otherwise"/>
<xs:element ref="camel:circuitBreaker"/>
<xs:element ref="camel:claimCheck"/>
<xs:element ref="camel:convertBodyTo"/>
<xs:element ref="camel:delay"/>
<xs:element ref="camel:dynamicRouter"/>
<xs:element ref="camel:enrich"/>
<xs:element ref="camel:filter"/>
<xs:element ref="camel:doFinally"/>
<xs:element ref="camel:idempotentConsumer"/>
<xs:element ref="camel:inOnly"/>
<xs:element ref="camel:inOut"/>
<xs:element ref="camel:loadBalance"/>
<xs:element ref="camel:log"/>
<xs:element ref="camel:loop"/>
<xs:element ref="camel:marshal"/>
<xs:element ref="camel:multicast"/>
<xs:element ref="camel:onFallback"/>
<xs:element ref="camel:pipeline"/>
<xs:element ref="camel:policy"/>
<xs:element ref="camel:pollEnrich"/>
<xs:element ref="camel:process"/>
<xs:element ref="camel:recipientList"/>
<xs:element ref="camel:removeHeader"/>
<xs:element ref="camel:removeHeaders"/>
<xs:element ref="camel:removeProperties"/>
<xs:element ref="camel:removeProperty"/>
<xs:element ref="camel:resequence"/>
<xs:element ref="camel:rollback"/>
<xs:element ref="camel:routingSlip"/>
<xs:element ref="camel:saga"/>
<xs:element ref="camel:sample"/>
<xs:element ref="camel:script"/>
<xs:element ref="camel:setBody"/>
<xs:element ref="camel:setExchangePattern"/>
<xs:element ref="camel:setHeader"/>
<xs:element ref="camel:setProperty"/>
<xs:element ref="camel:sort"/>
<xs:element ref="camel:split"/>
<xs:element ref="camel:step"/>
<xs:element ref="camel:stop"/>
<xs:element ref="camel:threads"/>
<xs:element ref="camel:throttle"/>
<xs:element ref="camel:throwException"/>
<xs:element ref="camel:transacted"/>
<xs:element ref="camel:transform"/>
<xs:element ref="camel:doTry"/>
<xs:element ref="camel:unmarshal"/>
<xs:element ref="camel:validate"/>
<xs:element ref="camel:whenSkipSendToEndpoint"/>
<xs:element ref="camel:wireTap"/>
<xs:element ref="camel:serviceCall"/>
<xs:any namespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TServiceNamedOperation">
<xs:complexContent>
<xs:extension base="mediators:TServiceOperation">
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="service-connector">
<xs:complexType>
<xs:attribute name="direction" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="in"/>
<xs:enumeration value="out"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2024 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:entaxy="http://www.entaxy.ru/schemas/1.0" xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:local="http://www.entaxy.ru/schemas/entaxy-mediators/connector-selector/1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="context.type" select="'entaxy.runtime.profile'" />
<xsl:param name="context.fieldName" select="'in-flow-pre-route'" />
<xsl:param name="context.objectId" select="'sys-13'" />
<xsl:param name="context.factory.typeinfo.serviceType" select="'UNKNOWN'" />
<xsl:param name="context.factory.typeinfo.serviceScope" select="'UNKNOWN'" />
<xsl:template match="//m:operation-router" exclude-result-prefixes="xsl fn xs local">
<choice xmlns="http://camel.apache.org/schema/blueprint">
<xsl:apply-templates select="child::node()" />
</choice>
</xsl:template>
<xsl:template match="//m:operation-router/m:operation" exclude-result-prefixes="xsl fn xs local">
<when xmlns="http://camel.apache.org/schema/blueprint">
<simple>${headers.operationName} == '<xsl:value-of select="@name" />'</simple>
<xsl:apply-templates select="child::node()" />
</when>
</xsl:template>
<xsl:template match="//m:operation-router/m:unknown-operation" exclude-result-prefixes="xsl fn xs local">
<otherwise xmlns="http://camel.apache.org/schema/blueprint">
<xsl:apply-templates select="child::node()" />
</otherwise>
</xsl:template>
<xsl:template match="//m:service-connector" exclude-result-prefixes="xsl fn xs local">
<xsl:choose>
<xsl:when test="$context.factory.typeinfo.serviceScope = 'protected'">
<log loggingLevel="INFO" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:attribute name="message" select="concat('${headers.NTX_loggingKey} Sending to connector: ', @direction)"></xsl:attribute>
</log>
<to xmlns="http://camel.apache.org/schema/blueprint">
<xsl:attribute name="uri" select="concat('bean:', $context.objectId, '-connector-registry?method=', @direction, 'ConnectorFind')"></xsl:attribute>
</to>
<choice xmlns="http://camel.apache.org/schema/blueprint">
<when>
<simple>${headers.NTX_targetConnector} != null</simple>
<setProperty name="NTX_TMP_targetConnector">
<simple>${headers.NTX_targetConnector}</simple>
</setProperty>
<removeHeader headerName="NTX_targetConnector" />
<toD>
<xsl:attribute name="uri" select="concat('${exchangeProperty.NTX_TMP_targetConnector}', '')" />
</toD>
</when>
<otherwise>
<throwException exceptionType="ru.entaxy.platform.services.runtime.exceptions.ConnectorNotFound">
<xsl:attribute name="message"
select="concat('Connector not found: service=', $context.objectId, '; profile=${headers[X-SystemName]}; direction=', @direction)">
</xsl:attribute>
</throwException>
</otherwise>
</choice>
</xsl:when>
<xsl:otherwise>
<xsl:comment>m:service-connector element is only applicable for protected services</xsl:comment>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="default-copy" match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,174 @@
{
"m:operation-router": {
"topChild": true,
"children": [
"m:operation",
"m:unknown-operation"
]
},
"m:operation": {
"attrs": {
"name": null
},
"children": [
"onException",
"when",
"onCompletion",
"intercept",
"interceptFrom",
"interceptSendToEndpoint",
"to",
"toD",
"route",
"aggregate",
"bean",
"doCatch",
"choice",
"otherwise",
"circuitBreaker",
"claimCheck",
"convertBodyTo",
"delay",
"dynamicRouter",
"enrich",
"filter",
"doFinally",
"idempotentConsumer",
"inOnly",
"inOut",
"loadBalance",
"log",
"loop",
"marshal",
"multicast",
"onFallback",
"pipeline",
"policy",
"pollEnrich",
"process",
"recipientList",
"removeHeader",
"removeHeaders",
"removeProperties",
"removeProperty",
"resequence",
"rollback",
"routingSlip",
"saga",
"sample",
"script",
"setBody",
"setExchangePattern",
"setHeader",
"setProperty",
"sort",
"split",
"step",
"stop",
"threads",
"throttle",
"throwException",
"transacted",
"transform",
"doTry",
"unmarshal",
"validate",
"whenSkipSendToEndpoint",
"wireTap",
"serviceCall",
"m:standard-router",
"m:set-destination",
"m:default-destination",
"m:prefer-connector",
"m:next-route",
"m:respond",
"m:xslt",
"m:xslt-xalan",
"m:atlasmap",
"m:read-secret",
"m:to-connection",
"m:entaxy-trace",
"m:call-route",
"m:set-log-key",
"m:log"
]
},
"m:unknown-operation": {
"children": [
"onException",
"when",
"onCompletion",
"intercept",
"interceptFrom",
"interceptSendToEndpoint",
"to",
"toD",
"route",
"aggregate",
"bean",
"doCatch",
"choice",
"otherwise",
"circuitBreaker",
"claimCheck",
"convertBodyTo",
"delay",
"dynamicRouter",
"enrich",
"filter",
"doFinally",
"idempotentConsumer",
"inOnly",
"inOut",
"loadBalance",
"log",
"loop",
"marshal",
"multicast",
"onFallback",
"pipeline",
"policy",
"pollEnrich",
"process",
"recipientList",
"removeHeader",
"removeHeaders",
"removeProperties",
"removeProperty",
"resequence",
"rollback",
"routingSlip",
"saga",
"sample",
"script",
"setBody",
"setExchangePattern",
"setHeader",
"setProperty",
"sort",
"split",
"step",
"stop",
"threads",
"throttle",
"throwException",
"transacted",
"transform",
"doTry",
"unmarshal",
"validate",
"whenSkipSendToEndpoint",
"wireTap",
"serviceCall"
]
},
"m:service-connector": {
"topChild": true,
"attrs": {
"direction": [
"in",
"out"
]
}
}
}

View File

@ -0,0 +1,106 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mediators="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" xmlns:camel="http://camel.apache.org/schema/blueprint" targetNamespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://camel.apache.org/schema/blueprint" schemaLocation="camel-entaxy.xsd"/>
<xs:element name="operation-router">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="operation" type="mediators:TServiceNamedOperation" maxOccurs="unbounded"/>
<xs:element name="unknown-operation" type="mediators:TServiceOperation" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="TServiceOperation">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="camel:onException"/>
<xs:element ref="camel:when"/>
<xs:element ref="camel:onCompletion"/>
<xs:element ref="camel:intercept"/>
<xs:element ref="camel:interceptFrom"/>
<xs:element ref="camel:interceptSendToEndpoint"/>
<xs:element ref="camel:to"/>
<xs:element ref="camel:toD"/>
<xs:element ref="camel:route"/>
<xs:element ref="camel:aggregate"/>
<xs:element ref="camel:bean"/>
<xs:element ref="camel:doCatch"/>
<xs:element ref="camel:choice"/>
<xs:element ref="camel:otherwise"/>
<xs:element ref="camel:circuitBreaker"/>
<xs:element ref="camel:claimCheck"/>
<xs:element ref="camel:convertBodyTo"/>
<xs:element ref="camel:delay"/>
<xs:element ref="camel:dynamicRouter"/>
<xs:element ref="camel:enrich"/>
<xs:element ref="camel:filter"/>
<xs:element ref="camel:doFinally"/>
<xs:element ref="camel:idempotentConsumer"/>
<xs:element ref="camel:inOnly"/>
<xs:element ref="camel:inOut"/>
<xs:element ref="camel:loadBalance"/>
<xs:element ref="camel:log"/>
<xs:element ref="camel:loop"/>
<xs:element ref="camel:marshal"/>
<xs:element ref="camel:multicast"/>
<xs:element ref="camel:onFallback"/>
<xs:element ref="camel:pipeline"/>
<xs:element ref="camel:policy"/>
<xs:element ref="camel:pollEnrich"/>
<xs:element ref="camel:process"/>
<xs:element ref="camel:recipientList"/>
<xs:element ref="camel:removeHeader"/>
<xs:element ref="camel:removeHeaders"/>
<xs:element ref="camel:removeProperties"/>
<xs:element ref="camel:removeProperty"/>
<xs:element ref="camel:resequence"/>
<xs:element ref="camel:rollback"/>
<xs:element ref="camel:routingSlip"/>
<xs:element ref="camel:saga"/>
<xs:element ref="camel:sample"/>
<xs:element ref="camel:script"/>
<xs:element ref="camel:setBody"/>
<xs:element ref="camel:setExchangePattern"/>
<xs:element ref="camel:setHeader"/>
<xs:element ref="camel:setProperty"/>
<xs:element ref="camel:sort"/>
<xs:element ref="camel:split"/>
<xs:element ref="camel:step"/>
<xs:element ref="camel:stop"/>
<xs:element ref="camel:threads"/>
<xs:element ref="camel:throttle"/>
<xs:element ref="camel:throwException"/>
<xs:element ref="camel:transacted"/>
<xs:element ref="camel:transform"/>
<xs:element ref="camel:doTry"/>
<xs:element ref="camel:unmarshal"/>
<xs:element ref="camel:validate"/>
<xs:element ref="camel:whenSkipSendToEndpoint"/>
<xs:element ref="camel:wireTap"/>
<xs:element ref="camel:serviceCall"/>
<xs:any namespace="http://www.entaxy.ru/schemas/entaxy-mediators/1.0"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
<xs:complexType name="TServiceNamedOperation">
<xs:complexContent>
<xs:extension base="mediators:TServiceOperation">
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="service-connector">
<xs:complexType>
<xs:attribute name="direction" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="in"/>
<xs:enumeration value="out"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2024 EmDev LLC
==========
You may not use this file except in accordance with the License Terms of the Copyright
Holder located at: https://entaxy.ru/eula . All copyrights, all intellectual property
rights to the Software and any copies are the property of the Copyright Holder. Unless
it is explicitly allowed the Copyright Holder, the User is prohibited from using the
Software for commercial purposes to provide services to third parties.
The Copyright Holder hereby declares that the Software is provided on an "AS IS".
Under no circumstances does the Copyright Holder guarantee or promise that the
Software provided by him will be suitable or not suitable for the specific purposes
of the User, that the Software will meet all commercial and personal subjective
expectations of the User, that the Software will work properly, without technical
errors, quickly and uninterruptedly.
Under no circumstances shall the Copyright Holder or its Affiliates is not liable
to the User for any direct or indirect losses of the User, his expenses or actual
damage, including, downtime; loss of bussines; lost profit; lost earnings; loss
or damage to data, property, etc.
~~~~~~/licensing~~~~~~
-->
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:entaxy="http://www.entaxy.ru/schemas/1.0" xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:local="http://www.entaxy.ru/schemas/entaxy-mediators/connector-selector/1.0">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:param name="context.type" select="'entaxy.runtime.profile'" />
<xsl:param name="context.fieldName" select="'in-flow-pre-route'" />
<xsl:param name="context.objectId" select="'sys-13'" />
<xsl:param name="context.factory.typeinfo.serviceType" select="'UNKNOWN'" />
<xsl:param name="context.factory.typeinfo.serviceScope" select="'UNKNOWN'" />
<xsl:template match="//m:operation-router" exclude-result-prefixes="xsl fn xs local">
<choice xmlns="http://camel.apache.org/schema/blueprint">
<xsl:apply-templates select="child::node()" />
</choice>
</xsl:template>
<xsl:template match="//m:operation-router/m:operation" exclude-result-prefixes="xsl fn xs local">
<when xmlns="http://camel.apache.org/schema/blueprint">
<simple>${headers.operationName} == '<xsl:value-of select="@name" />'</simple>
<xsl:apply-templates select="child::node()" />
</when>
</xsl:template>
<xsl:template match="//m:operation-router/m:unknown-operation" exclude-result-prefixes="xsl fn xs local">
<otherwise xmlns="http://camel.apache.org/schema/blueprint">
<xsl:apply-templates select="child::node()" />
</otherwise>
</xsl:template>
<xsl:template match="//m:service-connector" exclude-result-prefixes="xsl fn xs local">
<xsl:choose>
<xsl:when test="$context.factory.typeinfo.serviceScope = 'protected'">
<log loggingLevel="INFO" xmlns="http://camel.apache.org/schema/blueprint">
<xsl:attribute name="message" select="concat('${headers.NTX_loggingKey} Sending to connector: ', @direction)"></xsl:attribute>
</log>
<to xmlns="http://camel.apache.org/schema/blueprint">
<xsl:attribute name="uri" select="concat('bean:', $context.objectId, '-connector-registry?method=', @direction, 'ConnectorFind')"></xsl:attribute>
</to>
<choice xmlns="http://camel.apache.org/schema/blueprint">
<when>
<simple>${headers.NTX_targetConnector} != null</simple>
<setProperty name="NTX_TMP_targetConnector">
<simple>${headers.NTX_targetConnector}</simple>
</setProperty>
<removeHeader headerName="NTX_targetConnector" />
<toD>
<xsl:attribute name="uri" select="concat('${exchangeProperty.NTX_TMP_targetConnector}', '')" />
</toD>
</when>
<otherwise>
<throwException exceptionType="ru.entaxy.platform.services.runtime.exceptions.ConnectorNotFound">
<xsl:attribute name="message"
select="concat('Connector not found: service=', $context.objectId, '; profile=${headers[X-SystemName]}; direction=', @direction)">
</xsl:attribute>
</throwException>
</otherwise>
</choice>
</xsl:when>
<xsl:otherwise>
<xsl:comment>m:service-connector element is only applicable for protected services</xsl:comment>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="default-copy" match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>

View File

@ -0,0 +1,46 @@
{
"bean:http://www.osgi.org/xmlns/blueprint/v1.0.0": {
"targetNodeName": "##root",
"targetNodeNamespace": "http://www.osgi.org/xmlns/blueprint/v1.0.0",
"position": "inside_first",
"unique": ["id"],
"conflict": "ignore" /*[ignore, replace]*/
},
"bean:http://camel.apache.org/schema/blueprint": {
"conflict": "ignore"
},
"route-container": {
"isTransparent": true
},
"route:http://camel.apache.org/schema/blueprint": {
"recoursive": true,
"targetNodeName": "camelContext",
"unique": ["id"],
"position": "inside_last",
"createTargetNode": true,
"targetNodeXML": "<camelContext xmlns=\"http://camel.apache.org/schema/blueprint\" />",
"conflicts": ["merge", "replace"],
"childrenOrder": [
"description:http://camel.apache.org/schema/blueprint",
"from:http://camel.apache.org/schema/blueprint",
"inputType:http://camel.apache.org/schema/blueprint",
"outputType:http://camel.apache.org/schema/blueprint",
"*",
"routeProperty:http://camel.apache.org/schema/blueprint"
]
},
"aggregate:http://camel.apache.org/schema/blueprint": {
"recoursive": true,
"unique": ["id"],
"position": "inside_last",
"conflicts": ["merge", "replace"],
"childrenOrder": [
"correlationExpression:http://camel.apache.org/schema/blueprint",
"completionPredicate:http://camel.apache.org/schema/blueprint",
"completionTimeoutExpression:http://camel.apache.org/schema/blueprint",
"completionSizeExpression:http://camel.apache.org/schema/blueprint",
"optimisticLockRetryPolicy:http://camel.apache.org/schema/blueprint",
"*"
]
}
}

View File

@ -0,0 +1,9 @@
{
"supportedTypes": [
"entaxy.runtime.route",
"entaxy.runtime.route.*",
"entaxy.runtime.route-container",
"entaxy.runtime.route-library",
"entaxy.runtime.camel-model"
]
}

View File

@ -0,0 +1,14 @@
{
"factory": {
"id": "abstract-camel-component",
"type": "entaxy.runtime.camel-component",
"description": "abstract-camel-component",
"isAbstract": true,
"parent": "abstract-camel-item",
"label": "",
"category": ""
},
"entaxy.runtime.camel-component": {},
"fields": {},
"outputs": {}
}

View File

@ -0,0 +1,14 @@
{
"factory": {
"id": "abstract-camel-item",
"type": "entaxy.runtime.camel.item",
"description": "",
"isAbstract": true,
"parent": "base-object",
"label": "",
"category": ""
},
"entaxy.runtime.camel.item": {},
"fields": {},
"outputs": {}
}

View File

@ -0,0 +1,14 @@
{
"factory": {
"id": "abstract-camel-model",
"type": "entaxy.runtime.camel-model",
"description": "",
"isAbstract": false,
"parent": "abstract-camel-item",
"label": "",
"category": ""
},
"entaxy.runtime.camel-model": {},
"fields": {},
"outputs": {}
}

View File

@ -0,0 +1,804 @@
{
"factory": {
"id": "camel-timer",
"type": "entaxy.runtime.camel-component",
"isAbstract": false,
"parent": "abstract-camel-component",
"category": "",
"camelOriginComponent": "timer",
"label": "core,scheduling",
"description": "Generate messages in specified intervals using java.util.Timer.",
"camelOrigin": "camel-timer",
"camelOriginJavaType": "org.apache.camel.component.timer.TimerComponent"
},
"entaxy.runtime.camel-component": {},
"fields": {
"bridgeErrorHandler": {
"displayName": "Bridge Error Handler",
"description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored.",
"label": "consumer",
"type": "boolean",
"required": false,
"hidden": false,
"defaultValue": false,
"group": "consumer",
"##origin": "camel",
"kind": [
"property",
"parameter"
],
"##camelDiff": {
"old": {
"javaType": "boolean",
"deprecated": false
},
"new": {
"javaType": "boolean",
"deprecated": false
}
}
},
"basicPropertyBinding": {
"displayName": "Basic Property Binding",
"description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities",
"label": "advanced",
"type": "boolean",
"required": false,
"hidden": false,
"defaultValue": false,
"group": "advanced",
"##origin": "camel",
"kind": [
"property",
"parameter"
],
"##camelDiff": {
"old": {
"javaType": "boolean",
"deprecated": false
},
"new": {
"javaType": "boolean",
"deprecated": false
}
}
},
"timerName": {
"displayName": "Timer Name",
"description": "The name of the timer",
"label": "",
"type": "string",
"kind": "path",
"required": true,
"hidden": false,
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.String",
"deprecated": false,
"deprecationNote": ""
}
},
"delay": {
"displayName": "Delay",
"description": "Delay before first event is triggered.",
"label": "",
"type": "duration",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": "1s",
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "long",
"deprecated": false
}
},
"fixedRate": {
"displayName": "Fixed Rate",
"description": "Events take place at approximately regular intervals, separated by the specified period.",
"label": "",
"type": "boolean",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": false,
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "boolean",
"deprecated": false
}
},
"includeMetadata": {
"displayName": "Include Metadata",
"description": "Whether to include metadata in the exchange such as fired time, timer name, timer count etc. This information is default included.",
"label": "",
"type": "boolean",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": true,
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "boolean",
"deprecated": false
}
},
"period": {
"displayName": "Period",
"description": "If greater than 0, generate periodic events every period.",
"label": "",
"type": "duration",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": "1s",
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "long",
"deprecated": false
}
},
"repeatCount": {
"displayName": "Repeat Count",
"description": "Specifies a maximum limit of number of fires. So if you set it to 1, the timer will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever.",
"label": "",
"type": "number",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": 0,
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "long",
"deprecated": false
}
},
"exceptionHandler": {
"displayName": "Exception Handler",
"description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored.",
"label": "consumer,advanced",
"type": "object",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "consumer (advanced)",
"##origin": "camel",
"##camelDiff": {
"javaType": "org.apache.camel.spi.ExceptionHandler",
"optionalPrefix": "consumer.",
"deprecated": false
}
},
"exchangePattern": {
"displayName": "Exchange Pattern",
"description": "Sets the exchange pattern when the consumer creates an exchange.",
"label": "consumer,advanced",
"type": "object",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "consumer (advanced)",
"@TYPEINFO": {
"type": "enum",
"values": [
"InOnly",
"InOut",
"InOptionalOut"
]
},
"##origin": "camel",
"##camelDiff": {
"javaType": "org.apache.camel.ExchangePattern",
"deprecated": false
}
},
"daemon": {
"displayName": "Daemon",
"description": "Specifies whether or not the thread associated with the timer endpoint runs as a daemon. The default value is true.",
"label": "advanced",
"type": "boolean",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": true,
"group": "advanced",
"##origin": "camel",
"##camelDiff": {
"javaType": "boolean",
"deprecated": false
}
},
"pattern": {
"displayName": "Pattern",
"description": "Allows you to specify a custom Date pattern to use for setting the time option using URI syntax.",
"label": "advanced",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "advanced",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.String",
"deprecated": false
}
},
"synchronous": {
"displayName": "Synchronous",
"description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).",
"label": "advanced",
"type": "boolean",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": false,
"group": "advanced",
"##origin": "camel",
"##camelDiff": {
"javaType": "boolean",
"deprecated": false
}
},
"time": {
"displayName": "Time",
"description": "A java.util.Date the first event should be generated. If using the URI, the pattern expected is: yyyy-MM-dd HH:mm:ss or yyyy-MM-dd\u0027T\u0027HH:mm:ss.",
"label": "advanced",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "advanced",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.util.Date",
"deprecated": false
}
},
"timer": {
"displayName": "Timer",
"description": "To use a custom Timer",
"label": "advanced",
"type": "object",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "advanced",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.util.Timer",
"deprecated": false
}
}
},
"outputs": {
"init": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"property"
]
}
]
}
}
]
}
},
"path": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"path"
]
}
]
}
}
]
}
},
"consumer": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
},
{
"attribute": "label",
"inverse": true,
"values": [
"producer"
]
}
]
}
}
]
}
},
"__objects": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "",
"filter": {
"contains": [
{
"attribute": "type",
"values": [
"Object",
"object"
]
}
]
}
}
]
}
}
},
"##camel": {
"settings": {
"import": {
"factory": {
"attributes": {
"name": [
"id",
"camelOriginComponent"
],
"label": {
"target": "label",
"replaceIfEmpty": true
},
"description": {
"target": "description",
"policy": "firstOnly",
"replaceIfEmpty": true
},
"artifactId": "camelOrigin",
"javaType": "camelOriginJavaType"
}
},
"fileds": {
"attributes": {
"displayName": "displayName",
"description": {
"target": "description",
"policy": "firstOnly"
},
"label": "label",
"type": {
"target": "type",
"map": {
"integer": "number"
}
},
"kind": {
"target": "kind",
"policy": "both"
},
"required": "required",
"secret": "hidden",
"defaultValue": {
"target": "defaultValue",
"convertTo": "@type"
},
"group": "group",
"enum": {
"target": "@TYPEINFO/values",
"targetObject": {
"@TYPEINFO": {
"type": "enum"
}
}
}
}
},
"outputs": {
"init": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"property"
]
}
]
}
}
]
}
},
"path": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"path"
]
}
]
}
}
]
}
},
"consumer": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
},
{
"attribute": "label",
"inverse": true,
"values": [
"producer"
]
}
]
}
}
]
}
},
"producer": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
},
{
"attribute": "label",
"inverse": true,
"values": [
"consumer"
]
}
]
}
}
]
}
},
"__objects": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "",
"filter": {
"contains": [
{
"attribute": "type",
"values": [
"Object",
"object"
]
}
]
}
}
]
}
}
}
}
},
"origin": {
"component": {
"kind": "component",
"name": "timer",
"title": "Timer",
"description": "Generate messages in specified intervals using java.util.Timer.",
"deprecated": false,
"firstVersion": "1.0.0",
"label": "core,scheduling",
"javaType": "org.apache.camel.component.timer.TimerComponent",
"supportLevel": "Stable",
"groupId": "org.apache.camel",
"artifactId": "camel-timer",
"version": "3.4.5",
"scheme": "timer",
"extendsScheme": "",
"syntax": "timer:timerName",
"async": false,
"consumerOnly": true,
"producerOnly": false,
"lenientProperties": false
},
"componentProperties": {
"bridgeErrorHandler": {
"kind": "property",
"displayName": "Bridge Error Handler",
"group": "consumer",
"label": "consumer",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored."
},
"basicPropertyBinding": {
"kind": "property",
"displayName": "Basic Property Binding",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities"
}
},
"properties": {
"timerName": {
"kind": "path",
"displayName": "Timer Name",
"group": "consumer",
"label": "",
"required": true,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"deprecationNote": "",
"secret": false,
"description": "The name of the timer"
},
"bridgeErrorHandler": {
"kind": "parameter",
"displayName": "Bridge Error Handler",
"group": "consumer",
"label": "consumer",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored."
},
"delay": {
"kind": "parameter",
"displayName": "Delay",
"group": "consumer",
"label": "",
"required": false,
"type": "duration",
"javaType": "long",
"deprecated": false,
"secret": false,
"defaultValue": "1s",
"description": "Delay before first event is triggered."
},
"fixedRate": {
"kind": "parameter",
"displayName": "Fixed Rate",
"group": "consumer",
"label": "",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Events take place at approximately regular intervals, separated by the specified period."
},
"includeMetadata": {
"kind": "parameter",
"displayName": "Include Metadata",
"group": "consumer",
"label": "",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": "true",
"description": "Whether to include metadata in the exchange such as fired time, timer name, timer count etc. This information is default included."
},
"period": {
"kind": "parameter",
"displayName": "Period",
"group": "consumer",
"label": "",
"required": false,
"type": "duration",
"javaType": "long",
"deprecated": false,
"secret": false,
"defaultValue": "1s",
"description": "If greater than 0, generate periodic events every period."
},
"repeatCount": {
"kind": "parameter",
"displayName": "Repeat Count",
"group": "consumer",
"label": "",
"required": false,
"type": "integer",
"javaType": "long",
"deprecated": false,
"secret": false,
"defaultValue": "0",
"description": "Specifies a maximum limit of number of fires. So if you set it to 1, the timer will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever."
},
"exceptionHandler": {
"kind": "parameter",
"displayName": "Exception Handler",
"group": "consumer (advanced)",
"label": "consumer,advanced",
"required": false,
"type": "object",
"javaType": "org.apache.camel.spi.ExceptionHandler",
"optionalPrefix": "consumer.",
"deprecated": false,
"secret": false,
"description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored."
},
"exchangePattern": {
"kind": "parameter",
"displayName": "Exchange Pattern",
"group": "consumer (advanced)",
"label": "consumer,advanced",
"required": false,
"type": "object",
"javaType": "org.apache.camel.ExchangePattern",
"enum": [
"InOnly",
"InOut",
"InOptionalOut"
],
"deprecated": false,
"secret": false,
"description": "Sets the exchange pattern when the consumer creates an exchange."
},
"basicPropertyBinding": {
"kind": "parameter",
"displayName": "Basic Property Binding",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities"
},
"daemon": {
"kind": "parameter",
"displayName": "Daemon",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": "true",
"description": "Specifies whether or not the thread associated with the timer endpoint runs as a daemon. The default value is true."
},
"pattern": {
"kind": "parameter",
"displayName": "Pattern",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"secret": false,
"description": "Allows you to specify a custom Date pattern to use for setting the time option using URI syntax."
},
"synchronous": {
"kind": "parameter",
"displayName": "Synchronous",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": "false",
"description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)."
},
"time": {
"kind": "parameter",
"displayName": "Time",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "string",
"javaType": "java.util.Date",
"deprecated": false,
"secret": false,
"description": "A java.util.Date the first event should be generated. If using the URI, the pattern expected is: yyyy-MM-dd HH:mm:ss or yyyy-MM-dd\u0027T\u0027HH:mm:ss."
},
"timer": {
"kind": "parameter",
"displayName": "Timer",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "object",
"javaType": "java.util.Timer",
"deprecated": false,
"secret": false,
"description": "To use a custom Timer"
}
}
}
}
}

View File

@ -0,0 +1,84 @@
{
"factory": {
"id": "model-quartz",
"type": "entaxy.runtime.camel-model",
"parent": "abstract-camel-model",
"isAbstract": false,
"description": "Factory route-quartz of entaxy.runtime.route. Provides a scheduled delivery of messages."
},
"entaxy.runtime.camel-model": {
},
"fields": {
},
"outputs": {
"init": {
"isDefault": true,
"config": {
"configurable": false
},
"fields": {
"routeContent": {
"displayName": "Route content"
},
"groupName": {
"group": "general",
"defaultValue": ""
},
"triggerName": {
"group": "general"
},
"camel_cron": {
"description": "Specifies a cron expression to define when to trigger. Sing + to be used instead of spaces, example 0+0/1+*+1/1+*+?+* (every minute). Default value is every second."
},
"camel_exceptionHandler": {
"@TODO": "Now hidden, to process in next releases",
"isHidden": true
},
"camel_customCalendar": {
"@TODO": "Now hidden, to process in next releases",
"isHidden": true
},
"camel_jobParameters":{
"@TODO": "Now hidden, to process in next releases. Use parameters with job. prefix.",
"isHidden": true
},
"camel_triggerParameters":{
"@TODO": "Now hidden, to process in next releases Use parameters with trigger. prefix.",
"isHidden": true
},
"@IMPORT": [
{
"sourceFactoryId": "camel-quartz",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
}
]
}
},
{
"sourceFactoryId": "camel-quartz",
"location": "fields",
"prefix": "",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"path"
]
}
]
}
}
]
}
}
}
}

View File

@ -0,0 +1,854 @@
{
"factory": {
"id": "model-timer",
"type": "entaxy.runtime.camel-model",
"parent": "abstract-camel-model",
"isAbstract": false,
"camelOriginComponent": "timer",
"label": "core,scheduling",
"description": "Generate messages in specified intervals using java.util.Timer.",
"camelOrigin": "camel-timer",
"camelOriginJavaType": "org.apache.camel.component.timer.TimerComponent"
},
"entaxy.runtime.camel-model": {},
"fields": {
"bridgeErrorHandler": {
"displayName": "Bridge Error Handler",
"description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "consumer",
"type": "boolean",
"required": false,
"hidden": false,
"defaultValue": false,
"group": "consumer",
"##origin": "camel",
"kind": [
"property",
"parameter"
],
"##camelDiff": {
"old": {
"javaType": "boolean",
"deprecated": false
},
"new": {
"javaType": "boolean",
"deprecated": false
}
}
},
"basicPropertyBinding": {
"displayName": "Basic Property Binding",
"description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "advanced",
"type": "boolean",
"required": false,
"hidden": false,
"defaultValue": false,
"group": "advanced",
"##origin": "camel",
"kind": [
"property",
"parameter"
],
"##camelDiff": {
"old": {
"javaType": "boolean",
"deprecated": false
},
"new": {
"javaType": "boolean",
"deprecated": false
}
}
},
"timerName": {
"displayName": "Timer Name",
"description": "The name of the timer For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "",
"type": "string",
"kind": "path",
"required": true,
"hidden": false,
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.String",
"deprecated": false,
"deprecationNote": ""
}
},
"delay": {
"displayName": "Delay",
"description": "Delay before first event is triggered. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "",
"type": "duration",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": "1s",
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "long",
"deprecated": false
}
},
"fixedRate": {
"displayName": "Fixed Rate",
"description": "Events take place at approximately regular intervals, separated by the specified period. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "",
"type": "boolean",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": false,
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "boolean",
"deprecated": false
}
},
"includeMetadata": {
"displayName": "Include Metadata",
"description": "Whether to include metadata in the exchange such as fired time, timer name, timer count etc. This information is default included. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "",
"type": "boolean",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": true,
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "boolean",
"deprecated": false
}
},
"period": {
"displayName": "Period",
"description": "If greater than 0, generate periodic events every period. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "",
"type": "duration",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": "1s",
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "long",
"deprecated": false
}
},
"repeatCount": {
"displayName": "Repeat Count",
"description": "Specifies a maximum limit of number of fires. So if you set it to 1, the timer will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "",
"type": "number",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": 0,
"group": "consumer",
"##origin": "camel",
"##camelDiff": {
"javaType": "long",
"deprecated": false
}
},
"exceptionHandler": {
"@TODO": "Now hidden, to process in next releases",
"displayName": "Exception Handler",
"description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "consumer,advanced",
"type": "object",
"kind": "parameter",
"required": false,
"isHidden": true,
"group": "consumer (advanced)",
"##origin": "camel",
"##camelDiff": {
"javaType": "org.apache.camel.spi.ExceptionHandler",
"optionalPrefix": "consumer.",
"deprecated": false
}
},
"exchangePattern": {
"displayName": "Exchange Pattern",
"description": "Sets the exchange pattern when the consumer creates an exchange. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "consumer,advanced",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "consumer (advanced)",
"@TYPEINFO": {
"type": "enum",
"values": [
"InOnly",
"InOut",
"InOptionalOut"
]
},
"##origin": "camel",
"##camelDiff": {
"javaType": "org.apache.camel.ExchangePattern",
"deprecated": false
}
},
"daemon": {
"displayName": "Daemon",
"description": "Specifies whether or not the thread associated with the timer endpoint runs as a daemon. The default value is true. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "advanced",
"type": "boolean",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": true,
"group": "advanced",
"##origin": "camel",
"##camelDiff": {
"javaType": "boolean",
"deprecated": false
}
},
"pattern": {
"displayName": "Pattern",
"description": "Allows you to specify a custom Date pattern to use for setting the time option using URI syntax. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "advanced",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "advanced",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.String",
"deprecated": false
}
},
"synchronous": {
"displayName": "Synchronous",
"description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "advanced",
"type": "boolean",
"kind": "parameter",
"required": false,
"hidden": false,
"defaultValue": false,
"group": "advanced",
"##origin": "camel",
"##camelDiff": {
"javaType": "boolean",
"deprecated": false
}
},
"time": {
"displayName": "Time",
"description": "A java.util.Date the first event should be generated. If using the URI, the pattern expected is: yyyy-MM-dd HH:mm:ss or yyyy-MM-dd\u0027T\u0027HH:mm:ss. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "advanced",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "advanced",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.util.Date",
"deprecated": false
}
},
"timer": {
"@TODO": "Now hidden, to process in next releases",
"displayName": "Timer",
"description": "To use a custom Timer For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>",
"label": "advanced",
"type": "object",
"kind": "parameter",
"required": false,
"isHidden": true,
"group": "advanced",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.util.Timer",
"deprecated": false
}
}
},
"##camel": {
"settings": {
"import": {
"factory": {
"attributes": {
"name": [
"id",
"camelOriginComponent"
],
"label": {
"target": "label",
"replaceIfEmpty": true
},
"description": {
"target": "description",
"policy": "firstOnly",
"replaceIfEmpty": true
},
"artifactId": "camelOrigin",
"javaType": "camelOriginJavaType"
}
},
"fileds": {
"attributes": {
"displayName": "displayName",
"description": {
"target": "description",
"policy": "firstOnly"
},
"label": "label",
"type": {
"target": "type",
"map": {
"integer": "number"
}
},
"kind": {
"target": "kind",
"policy": "both"
},
"required": "required",
"secret": "hidden",
"defaultValue": {
"target": "defaultValue",
"convertTo": "@type"
},
"group": "group",
"enum": {
"target": "@TYPEINFO/values",
"targetObject": {
"@TYPEINFO": {
"type": "enum"
}
}
}
}
},
"outputs": {
"init": {
"fields": {
"timerName": {
"group": "general"
},
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
}
]
}
}
]
}
},
"path": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"path"
]
}
]
}
}
]
}
},
"consumer": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
},
{
"attribute": "label",
"inverse": true,
"values": [
"producer"
]
}
]
}
}
]
}
},
"producer": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
},
{
"attribute": "label",
"inverse": true,
"values": [
"consumer"
]
}
]
}
}
]
}
},
"__objects": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "",
"filter": {
"contains": [
{
"attribute": "type",
"values": [
"Object",
"object"
]
}
]
}
}
]
}
}
}
}
},
"origin": {
"component": {
"kind": "component",
"name": "timer",
"title": "Timer",
"description": "Generate messages in specified intervals using java.util.Timer.",
"deprecated": false,
"firstVersion": "1.0.0",
"label": "core,scheduling",
"javaType": "org.apache.camel.component.timer.TimerComponent",
"supportLevel": "Stable",
"groupId": "org.apache.camel",
"artifactId": "camel-timer",
"version": "3.4.5",
"scheme": "timer",
"extendsScheme": "",
"syntax": "timer:timerName",
"async": false,
"consumerOnly": true,
"producerOnly": false,
"lenientProperties": false
},
"componentProperties": {
"bridgeErrorHandler": {
"kind": "property",
"displayName": "Bridge Error Handler",
"group": "consumer",
"label": "consumer",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored."
},
"basicPropertyBinding": {
"kind": "property",
"displayName": "Basic Property Binding",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities"
}
},
"properties": {
"timerName": {
"kind": "path",
"displayName": "Timer Name",
"group": "consumer",
"label": "",
"required": true,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"deprecationNote": "",
"secret": false,
"description": "The name of the timer"
},
"bridgeErrorHandler": {
"kind": "parameter",
"displayName": "Bridge Error Handler",
"group": "consumer",
"label": "consumer",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Allows for bridging the consumer to the Camel routing Error Handler, which mean any exceptions occurred while the consumer is trying to pickup incoming messages, or the likes, will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions, that will be logged at WARN or ERROR level and ignored."
},
"delay": {
"kind": "parameter",
"displayName": "Delay",
"group": "consumer",
"label": "",
"required": false,
"type": "duration",
"javaType": "long",
"deprecated": false,
"secret": false,
"defaultValue": "1s",
"description": "Delay before first event is triggered."
},
"fixedRate": {
"kind": "parameter",
"displayName": "Fixed Rate",
"group": "consumer",
"label": "",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Events take place at approximately regular intervals, separated by the specified period."
},
"includeMetadata": {
"kind": "parameter",
"displayName": "Include Metadata",
"group": "consumer",
"label": "",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": "true",
"description": "Whether to include metadata in the exchange such as fired time, timer name, timer count etc. This information is default included."
},
"period": {
"kind": "parameter",
"displayName": "Period",
"group": "consumer",
"label": "",
"required": false,
"type": "duration",
"javaType": "long",
"deprecated": false,
"secret": false,
"defaultValue": "1s",
"description": "If greater than 0, generate periodic events every period."
},
"repeatCount": {
"kind": "parameter",
"displayName": "Repeat Count",
"group": "consumer",
"label": "",
"required": false,
"type": "integer",
"javaType": "long",
"deprecated": false,
"secret": false,
"defaultValue": "0",
"description": "Specifies a maximum limit of number of fires. So if you set it to 1, the timer will only fire once. If you set it to 5, it will only fire five times. A value of zero or negative means fire forever."
},
"exceptionHandler": {
"kind": "parameter",
"displayName": "Exception Handler",
"group": "consumer (advanced)",
"label": "consumer,advanced",
"required": false,
"type": "object",
"javaType": "org.apache.camel.spi.ExceptionHandler",
"optionalPrefix": "consumer.",
"deprecated": false,
"secret": false,
"description": "To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this option is not in use. By default the consumer will deal with exceptions, that will be logged at WARN or ERROR level and ignored."
},
"exchangePattern": {
"kind": "parameter",
"displayName": "Exchange Pattern",
"group": "consumer (advanced)",
"label": "consumer,advanced",
"required": false,
"type": "object",
"javaType": "org.apache.camel.ExchangePattern",
"enum": [
"InOnly",
"InOut",
"InOptionalOut"
],
"deprecated": false,
"secret": false,
"description": "Sets the exchange pattern when the consumer creates an exchange."
},
"basicPropertyBinding": {
"kind": "parameter",
"displayName": "Basic Property Binding",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities"
},
"daemon": {
"kind": "parameter",
"displayName": "Daemon",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": "true",
"description": "Specifies whether or not the thread associated with the timer endpoint runs as a daemon. The default value is true."
},
"pattern": {
"kind": "parameter",
"displayName": "Pattern",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"secret": false,
"description": "Allows you to specify a custom Date pattern to use for setting the time option using URI syntax."
},
"synchronous": {
"kind": "parameter",
"displayName": "Synchronous",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "boolean",
"javaType": "boolean",
"deprecated": false,
"secret": false,
"defaultValue": "false",
"description": "Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported)."
},
"time": {
"kind": "parameter",
"displayName": "Time",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "string",
"javaType": "java.util.Date",
"deprecated": false,
"secret": false,
"description": "A java.util.Date the first event should be generated. If using the URI, the pattern expected is: yyyy-MM-dd HH:mm:ss or yyyy-MM-dd\u0027T\u0027HH:mm:ss."
},
"timer": {
"kind": "parameter",
"displayName": "Timer",
"group": "advanced",
"label": "advanced",
"required": false,
"type": "object",
"javaType": "java.util.Timer",
"deprecated": false,
"secret": false,
"description": "To use a custom Timer"
}
}
}
},
"outputs": {
"init": {
"fields": {
"timerName": {
"group": "general"
},
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
}
]
}
},
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"path"
]
}
]
}
}
]
}
},
"path": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"path"
]
}
]
}
}
]
}
},
"consumer": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
},
{
"attribute": "label",
"inverse": true,
"values": [
"producer"
]
}
]
}
}
]
}
},
"producer": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
},
{
"attribute": "label",
"inverse": true,
"values": [
"consumer"
]
}
]
}
}
]
}
},
"__objects": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "",
"filter": {
"contains": [
{
"attribute": "type",
"values": [
"Object",
"object"
]
}
]
}
}
]
}
}
}
}

View File

@ -0,0 +1,34 @@
{
"factory": {
"id": "ftp-client-config",
"type": "entaxy.runtime.route.component",
"isAbstract": false,
"parent": "abstract-route-component"
},
"entaxy.runtime.route.component": {},
"fields": {
"camel_ftpClient.controlEncoding": {
"displayName": "FTP Control encoding",
"description": "Character encoding used for communicating over an FTP control connection. The default encoding is an ASCII-compatible encoding. Some FTP servers expect other encodings.",
"type": "string",
"group": "ftp client"
},
"camel_ftpClient.autodetectUTF8": {
"displayName": "Autodetect UTF8",
"description": "Controls the automatic server encoding detection (only UTF-8 supported).",
"type": "boolean",
"group": "ftp client",
"defaultValue": false
}
},
"outputs": {
"init": {
"isDefault": true,
"fields": {
},
"config": {
"configurable": false
}
}
}
}

View File

@ -0,0 +1,867 @@
{
"factory": {
"id": "redelivery-policy",
"type": "entaxy.runtime.route.component",
"isAbstract": false,
"parent": "base-object",
"camelOriginComponent": "redeliveryPolicy",
"label": "configuration",
"group": "errorHandler",
"description": "To configure re-delivery for error handling",
"camelOrigin": "camel-core-engine",
"camelOriginJavaType": "org.apache.camel.model.RedeliveryPolicyDefinition"
},
"entaxy.runtime.route.component": {},
"fields": {
"maximumRedeliveries": {
"displayName": "Maximum Redeliveries",
"description": "Sets the maximum redeliveries x \u003d redeliver at most x times 0 \u003d no redeliveries -1 \u003d redeliver forever. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "number",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": 0,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Integer",
"deprecated": false
}
},
"redeliveryDelay": {
"displayName": "Redelivery Delay",
"description": "Sets the initial redelivery delay. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "duration",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": "1000",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.String",
"deprecated": false
}
},
"asyncDelayedRedelivery": {
"displayName": "Async Delayed Redelivery",
"description": "Allow synchronous delayed redelivery. The route, in particular the consumer\u0027s component, must support the Asynchronous Routing Engine (e.g. seda). For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": false,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"backOffMultiplier": {
"displayName": "Back Off Multiplier",
"description": "Sets the back off multiplier. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "number",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": 2,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Double",
"deprecated": false
}
},
"useExponentialBackOff": {
"displayName": "Use Exponential Back Off",
"description": "Turn on exponential back off. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": false,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"collisionAvoidanceFactor": {
"displayName": "Collision Avoidance Factor",
"description": "Sets the collision avoidance factor. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "number",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": 0.15,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Double",
"deprecated": false
}
},
"useCollisionAvoidance": {
"displayName": "Use Collision Avoidance",
"description": "Turn on collision avoidance. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": false,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"maximumRedeliveryDelay": {
"displayName": "Maximum Redelivery Delay",
"description": "Sets the maximum delay between redelivery. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "duration",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": "60000",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.String",
"deprecated": false
}
},
"retriesExhaustedLogLevel": {
"displayName": "Retries Exhausted Log Level",
"description": "Sets the logging level to use when retries has exhausted. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "object",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": "ERROR",
"@TYPEINFO": {
"type": "enum",
"values": [
"TRACE",
"DEBUG",
"INFO",
"WARN",
"ERROR",
"OFF"
]
},
"##origin": "camel",
"##camelDiff": {
"javaType": "org.apache.camel.LoggingLevel",
"deprecated": false
}
},
"retryAttemptedLogLevel": {
"displayName": "Retry Attempted Log Level",
"description": "Sets the logging level to use for logging retry attempts. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "object",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": "DEBUG",
"@TYPEINFO": {
"type": "enum",
"values": [
"TRACE",
"DEBUG",
"INFO",
"WARN",
"ERROR",
"OFF"
]
},
"##origin": "camel",
"##camelDiff": {
"javaType": "org.apache.camel.LoggingLevel",
"deprecated": false
}
},
"retryAttemptedLogInterval": {
"displayName": "Retry Attempted Log Interval",
"description": "Sets the interval to use for logging retry attempts. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "number",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": 1,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Integer",
"deprecated": false
}
},
"logRetryAttempted": {
"displayName": "Log Retry Attempted",
"description": "Sets whether retry attempts should be logged or not. Can be used to include or reduce verbose. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": true,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"logStackTrace": {
"displayName": "Log Stack Trace",
"description": "Sets whether stack traces should be logged. Can be used to include or reduce verbose. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": true,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"logRetryStackTrace": {
"displayName": "Log Retry Stack Trace",
"description": "Sets whether stack traces should be logged when an retry attempt failed. Can be used to include or reduce verbose. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": false,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"logHandled": {
"displayName": "Log Handled",
"description": "Sets whether handled exceptions should be logged or not. Can be used to include or reduce verbose. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": false,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"logNewException": {
"displayName": "Log New Exception",
"description": "Sets whether new exceptions should be logged or not. Can be used to include or reduce verbose. A new exception is an exception that was thrown while handling a previous exception. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": true,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"logContinued": {
"displayName": "Log Continued",
"description": "Sets whether continued exceptions should be logged or not. Can be used to include or reduce verbose. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": false,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"logExhausted": {
"displayName": "Log Exhausted",
"description": "Sets whether exhausted exceptions should be logged or not. Can be used to include or reduce verbose. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": true,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"logExhaustedMessageHistory": {
"displayName": "Log Exhausted Message History",
"description": "Sets whether exhausted exceptions should be logged including message history or not (supports property placeholders). Can be used to include or reduce verbose. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": false,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"logExhaustedMessageBody": {
"displayName": "Log Exhausted Message Body",
"description": "Sets whether exhausted message body should be logged including message history or not (supports property placeholders). Can be used to include or reduce verbose. Requires logExhaustedMessageHistory to be enabled. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": false,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"disableRedelivery": {
"displayName": "Disable Redelivery",
"description": "Disables redelivery (same as setting maximum redeliveries to 0). For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": false,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"delayPattern": {
"displayName": "Delay Pattern",
"description": "Sets the delay pattern with delay intervals. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "string",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": "",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.String",
"deprecated": false
}
},
"allowRedeliveryWhileStopping": {
"displayName": "Allow Redelivery While Stopping",
"description": "Controls whether to allow redelivery while stopping/shutting down a route that uses error handling. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "boolean",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": true,
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.Boolean",
"deprecated": false,
"defaultValue": false
}
},
"exchangeFormatterRef": {
"displayName": "Exchange Formatter Ref",
"description": "Sets the reference of the instance of org.apache.camel.spi.ExchangeFormatter to generate the log message from exchange. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "string",
"kind": "attribute",
"group": "redelivery policy",
"required": false,
"hidden": false,
"defaultValue": "",
"##origin": "camel",
"##camelDiff": {
"javaType": "java.lang.String",
"deprecated": false
}
}
},
"##camel": {
"settings": {
"import": {
"factory": {
"attributes": {
"name": [
"id",
"camelOriginComponent"
],
"label": {
"target": "label",
"replaceIfEmpty": true
},
"description": {
"target": "description",
"policy": "firstOnly",
"replaceIfEmpty": true
},
"artifactId": "camelOrigin",
"javaType": "camelOriginJavaType"
}
},
"fileds": {
"attributes": {
"displayName": "displayName",
"description": {
"target": "description",
"policy": "firstOnly"
},
"label": "label",
"type": {
"target": "type",
"map": {
"integer": "number"
}
},
"kind": {
"target": "kind",
"policy": "both"
},
"required": "required",
"secret": "hidden",
"defaultValue": {
"target": "defaultValue",
"convertTo": "@type"
},
"group": "group",
"enum": {
"target": "@TYPEINFO/values",
"targetObject": {
"@TYPEINFO": {
"type": "enum"
}
}
}
}
},
"outputs": {
"init": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"property"
]
}
]
}
}
]
}
},
"path": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"path"
]
}
]
}
}
]
}
},
"consumer": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
},
{
"attribute": "label",
"inverse": true,
"values": [
"producer"
]
}
]
}
}
]
}
},
"producer": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "camel_",
"filter": {
"contains": [
{
"attribute": "kind",
"values": [
"parameter"
]
},
{
"attribute": "label",
"inverse": true,
"values": [
"consumer"
]
}
]
}
}
]
}
},
"__objects": {
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "#",
"location": "fields",
"prefix": "",
"filter": {
"contains": [
{
"attribute": "type",
"values": [
"Object",
"object"
]
}
]
}
}
]
}
}
}
}
},
"origin": {
"component": {
"kind": "model",
"name": "redeliveryPolicy",
"title": "Redelivery Policy",
"description": "To configure re-delivery for error handling",
"deprecated": false,
"label": "configuration",
"javaType": "org.apache.camel.model.RedeliveryPolicyDefinition",
"artifactId": "camel-core-engine",
"input": false,
"output": false
},
"componentProperties": {},
"properties": {
"maximumRedeliveries": {
"kind": "attribute",
"displayName": "Maximum Redeliveries",
"required": false,
"type": "integer",
"javaType": "java.lang.Integer",
"deprecated": false,
"secret": false,
"description": "Sets the maximum redeliveries x \u003d redeliver at most x times 0 \u003d no redeliveries -1 \u003d redeliver forever"
},
"redeliveryDelay": {
"kind": "attribute",
"displayName": "Redelivery Delay",
"required": false,
"type": "duration",
"javaType": "java.lang.String",
"deprecated": false,
"secret": false,
"description": "Sets the initial redelivery delay"
},
"asyncDelayedRedelivery": {
"kind": "attribute",
"displayName": "Async Delayed Redelivery",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Allow asynchronous delayed redelivery. The route, in particular the consumer\u0027s component, must support the Asynchronous Routing Engine (e.g. seda)."
},
"backOffMultiplier": {
"kind": "attribute",
"displayName": "Back Off Multiplier",
"required": false,
"type": "number",
"javaType": "java.lang.Double",
"deprecated": false,
"secret": false,
"description": "Sets the back off multiplier"
},
"useExponentialBackOff": {
"kind": "attribute",
"displayName": "Use Exponential Back Off",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Turn on exponential backk off"
},
"collisionAvoidanceFactor": {
"kind": "attribute",
"displayName": "Collision Avoidance Factor",
"required": false,
"type": "number",
"javaType": "java.lang.Double",
"deprecated": false,
"secret": false,
"description": "Sets the collision avoidance factor"
},
"useCollisionAvoidance": {
"kind": "attribute",
"displayName": "Use Collision Avoidance",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Turn on collision avoidance."
},
"maximumRedeliveryDelay": {
"kind": "attribute",
"displayName": "Maximum Redelivery Delay",
"required": false,
"type": "duration",
"javaType": "java.lang.String",
"deprecated": false,
"secret": false,
"description": "Sets the maximum delay between redelivery"
},
"retriesExhaustedLogLevel": {
"kind": "attribute",
"displayName": "Retries Exhausted Log Level",
"required": false,
"type": "object",
"javaType": "org.apache.camel.LoggingLevel",
"deprecated": false,
"secret": false,
"description": "Sets the logging level to use when retries has exhausted"
},
"retryAttemptedLogLevel": {
"kind": "attribute",
"displayName": "Retry Attempted Log Level",
"required": false,
"type": "object",
"javaType": "org.apache.camel.LoggingLevel",
"deprecated": false,
"secret": false,
"description": "Sets the logging level to use for logging retry attempts"
},
"retryAttemptedLogInterval": {
"kind": "attribute",
"displayName": "Retry Attempted Log Interval",
"required": false,
"type": "integer",
"javaType": "java.lang.Integer",
"deprecated": false,
"secret": false,
"description": "Sets the interval to use for logging retry attempts"
},
"logRetryAttempted": {
"kind": "attribute",
"displayName": "Log Retry Attempted",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Sets whether retry attempts should be logged or not. Can be used to include or reduce verbose."
},
"logStackTrace": {
"kind": "attribute",
"displayName": "Log Stack Trace",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Sets whether stack traces should be logged. Can be used to include or reduce verbose."
},
"logRetryStackTrace": {
"kind": "attribute",
"displayName": "Log Retry Stack Trace",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Sets whether stack traces should be logged when an retry attempt failed. Can be used to include or reduce verbose."
},
"logHandled": {
"kind": "attribute",
"displayName": "Log Handled",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Sets whether handled exceptions should be logged or not. Can be used to include or reduce verbose."
},
"logNewException": {
"kind": "attribute",
"displayName": "Log New Exception",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Sets whether new exceptions should be logged or not. Can be used to include or reduce verbose. A new exception is an exception that was thrown while handling a previous exception."
},
"logContinued": {
"kind": "attribute",
"displayName": "Log Continued",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Sets whether continued exceptions should be logged or not. Can be used to include or reduce verbose."
},
"logExhausted": {
"kind": "attribute",
"displayName": "Log Exhausted",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Sets whether exhausted exceptions should be logged or not. Can be used to include or reduce verbose."
},
"logExhaustedMessageHistory": {
"kind": "attribute",
"displayName": "Log Exhausted Message History",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Sets whether exhausted exceptions should be logged including message history or not (supports property placeholders). Can be used to include or reduce verbose."
},
"logExhaustedMessageBody": {
"kind": "attribute",
"displayName": "Log Exhausted Message Body",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Sets whether exhausted message body should be logged including message history or not (supports property placeholders). Can be used to include or reduce verbose. Requires logExhaustedMessageHistory to be enabled."
},
"disableRedelivery": {
"kind": "attribute",
"displayName": "Disable Redelivery",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Disables redelivery (same as setting maximum redeliveries to 0)"
},
"delayPattern": {
"kind": "attribute",
"displayName": "Delay Pattern",
"required": false,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"secret": false,
"description": "Sets the delay pattern with delay intervals."
},
"allowRedeliveryWhileStopping": {
"kind": "attribute",
"displayName": "Allow Redelivery While Stopping",
"required": false,
"type": "boolean",
"javaType": "java.lang.Boolean",
"deprecated": false,
"secret": false,
"defaultValue": false,
"description": "Controls whether to allow redelivery while stopping/shutting down a route that uses error handling."
},
"exchangeFormatterRef": {
"kind": "attribute",
"displayName": "Exchange Formatter Ref",
"required": false,
"type": "string",
"javaType": "java.lang.String",
"deprecated": false,
"secret": false,
"description": "Sets the reference of the instance of org.apache.camel.spi.ExchangeFormatter to generate the log message from exchange."
}
}
}
},
"outputs": {}
}

View File

@ -0,0 +1,25 @@
{
"factory": {
"id": "abstract-route-component",
"type": "entaxy.runtime.route.component",
"description": "",
"isAbstract": true,
"parent": "base-object",
"label": "",
"category": ""
},
"entaxy.runtime.route.component": {},
"fields": {},
"outputs": {
"init": {
"fields": {
"objectId": {
"isHidden": true
},
"displayName": {
"isHidden": true
}
}
}
}
}

View File

@ -0,0 +1,26 @@
{
"factory": {
"id": "abstract-route-container-object",
"type": "entaxy.runtime.route-container",
"description": "Factory route-library of entaxy.runtime.route-container",
"isAbstract": true,
"parent": "abstract-route-container"
},
"entaxy.runtime.route-container": {},
"fields": {
"routes": {
"itemFactory": {
"filter": "(&(type=entaxy.runtime.route)(isAbstract=false)(|(typeinfo.targetRouteContainerType=ANY)(typeinfo.targetRouteContainerType=OBJECT)))"
}
}
},
"outputs": {
"init": {
"isDefault": true,
"config": {
"configurable": false
}
}
}
}

View File

@ -0,0 +1,390 @@
{
"factory": {
"id": "abstract-route-container",
"type": "entaxy.runtime.route-container",
"description": "Factory abstract-route-container of entaxy.runtime.route-container"
},
"entaxy.runtime.route-container": {
"routeContainerType": "OBJECT"
},
"fields": {
"routes": {
"@PUBLISH_UNRESOLVED": "object",
"type": "list",
"group": "routes",
"itemType": "entaxy.runtime.route",
"itemFactory": {
"filter": "(type=entaxy.runtime.route)"
},
"itemScope": "private",
"immutable": true,
"@TYPEINFO": {
"excludeLabel": true,
"enablePrivateObjectCreation": true,
"privateObjectTypes": [
{
"name": "entaxy.runtime.route",
"displayName": "Route"
}
],
"itemTitle": {
"fields": [
"routeId"
],
"delimiter": "."
},
"useAsIdentifier": "routeId",
"validation": {
"rules": {
"checkUniqueness": {
"fields": [
"routeId"
]
}
}
}
},
"@UI": {
"fieldExtraInfo": {
"type": "info",
"message": "To create or edit route find associated node in tree",
"displayOnMode": "Edit"
}
}
},
"__globalOptions": {
"type": "entaxy.runtime.route-container",
"isRef": true,
"required": true,
"isHidden": true,
"isRefByValueOnly": true,
"@INTERNAL": true,
"defaultValue": {
"type": "entaxy.runtime.route-container",
"factoryId": "#OWNER#",
"outputType": "globalOptions",
"scope": "private",
"properties": {
"containerId": {
"@CALCULATED": {
"expression": "${#OWNER#.objectId}",
"lazy": true
}
},
"containerType": {
"@CALCULATED": {
"expression": "${#OWNER#.#FACTORY#.factory.type}",
"lazy": false,
"allowObjects": false
}
}
}
}
},
"__errorHandler": {
"type": "entaxy.runtime.route-container",
"isRef": true,
"required": true,
"isHidden": true,
"isRefByValueOnly": true,
"@INTERNAL": true,
"refConfig": {
"@INTERNAL": true
},
"defaultValue": {
"type": "entaxy.runtime.route-container",
"factoryId": "#OWNER#",
"outputType": "errorHandler",
"scope": "private",
"properties": {
"errorHandlerType": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.errorHandlerType}",
"lazy": false
}
},
"deadLetterUri": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.deadLetterUri}",
"lazy": false
}
},
"maximumRedeliveries": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.maximumRedeliveries}",
"fallbackObject": null,
"lazy": false
}
},
"redeliveryDelay": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.redeliveryDelay}",
"fallbackObject": null,
"lazy": false
}
},
"asyncDelayedRedelivery": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.asyncDelayedRedelivery}",
"fallbackObject": null,
"lazy": false
}
},
"backOffMultiplier": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.backOffMultiplier}",
"fallbackObject": null,
"lazy": false
}
},
"useExponentialBackOff": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.useExponentialBackOff}",
"fallbackObject": null,
"lazy": false
}
},
"collisionAvoidanceFactor": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.collisionAvoidanceFactor}",
"fallbackObject": null,
"lazy": false
}
},
"useCollisionAvoidance": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.useCollisionAvoidance}",
"fallbackObject": null,
"lazy": false
}
},
"maximumRedeliveryDelay": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.maximumRedeliveryDelay}",
"fallbackObject": null,
"lazy": false
}
},
"retriesExhaustedLogLevel": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.retriesExhaustedLogLevel}",
"fallbackObject": null,
"lazy": false
}
},
"retryAttemptedLogLevel": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.retryAttemptedLogLevel}",
"fallbackObject": null,
"lazy": false
}
},
"retryAttemptedLogInterval": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.retryAttemptedLogInterval}",
"fallbackObject": null,
"lazy": false
}
},
"logRetryAttempted": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.logRetryAttempted}",
"fallbackObject": null,
"lazy": false
}
},
"logStackTrace": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.logStackTrace}",
"fallbackObject": null,
"lazy": false
}
},
"logRetryStackTrace": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.logRetryStackTrace}",
"fallbackObject": null,
"lazy": false
}
},
"logHandled": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.logHandled}",
"fallbackObject": null,
"lazy": false
}
},
"logNewException": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.logNewException}",
"fallbackObject": null,
"lazy": false
}
},
"logContinued": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.logContinued}",
"fallbackObject": null,
"lazy": false
}
},
"logExhausted": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.logExhausted}",
"fallbackObject": null,
"lazy": false
}
},
"logExhaustedMessageHistory": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.logExhaustedMessageHistory}",
"fallbackObject": null,
"lazy": false
}
},
"logExhaustedMessageBody": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.logExhaustedMessageBody}",
"fallbackObject": null,
"lazy": false
}
},
"disableRedelivery": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.disableRedelivery}",
"fallbackObject": null,
"lazy": false
}
},
"delayPattern": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.delayPattern}",
"fallbackObject": null,
"lazy": false
}
},
"allowRedeliveryWhileStopping": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.allowRedeliveryWhileStopping}",
"fallbackObject": null,
"lazy": false
}
},
"exchangeFormatterRef": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.exchangeFormatterRef}",
"fallbackObject": null,
"lazy": false
}
}
}
}
},
"errorHandlerType": {
"displayName": "Error Handler",
"description": "The type of the error handler. Default value: DefaultErrorHandler. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "String",
"@TYPEINFO": {
"type": "enum",
"values": [
"DefaultErrorHandler",
"DeadLetterChannel",
"NoErrorHandler"
]
},
"defaultValue": "DefaultErrorHandler",
"required": true,
"group": "redelivery policy"
},
"deadLetterUri": {
"displayName": "Dead Letter URI",
"description": "The dead letter endpoint uri for the Dead Letter error handler. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "String",
"defaultValue": "log:myLog",
"required": true,
"group": "redelivery policy"
},
"##publish": {
"defaultValue": {
"isRouteContainer": true,
"routeContainerType": {
"@CALCULATED": {
"expression": "${#FACTORY#.#TYPEINFO#.routeContainerType}",
"lazy": false
}
}
}
},
"@IMPORT": [
{
"sourceFactoryId": "redelivery-policy",
"location": "fields",
"prefix": ""
}
]
},
"outputs": {
"init": {
"isDefault": true,
"fields": {
"routes": {
},
"__globalOptions": {
},
"__errorHandler": {
},
"errorHandlerType": {
},
"deadLetterUri": {
},
"@IMPORT": [
{
"sourceFactoryId": "redelivery-policy",
"location": "fields",
"prefix": ""
}
]
},
"config": {
"configurable": false
}
},
"globalOptions": {
"fields": {
},
"scopes": [
"private"
],
"config": {
"@SKIP_PUBLISH": {
},
"@SKIP_VAULTS_LOOKUP": {},
"configurable": false
}
},
"errorHandler": {
"fields": {
"errorHandlerType": {
},
"deadLetterUri": {
},
"@IMPORT": [
{
"sourceFactoryId": "redelivery-policy",
"location": "fields",
"prefix": ""
}
]
},
"scopes": [
"private"
],
"config": {
"@SKIP_PUBLISH": {
},
"@SKIP_VAULTS_LOOKUP": {},
"configurable": false
}
}
}
}

View File

@ -0,0 +1,182 @@
{
"factory": {
"id": "abstract-route",
"type": "entaxy.runtime.route",
"description": "Factory abstract-route of entaxy.runtime.route"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "ANY",
"routeType": "CUSTOM",
"routePattern": "ABSTRACT",
"routeIsCallable": false
},
"fields": {
"objectId": {
"isHidden": true
},
"routeId": {
"type": "String",
"displayName": "Route ID",
"description": "Unique identifier assigned to each route",
"isHidden": false,
"required": true,
"@UNIQUE": {
"filterByParentFieldValues": true
},
"@TYPEINFO": {
"validation": {
"rules": {
"length": {
"min": 3
},
"content": {
"regex": "^[a-zA-Z][a-zA-Z0-9-]*$",
"errorMessage": "Value can contain only latin letters, numbers and hyphen and should start with a letter"
}
}
}
}
},
"__objectId": {
"type": "String",
"isHidden": true,
"required": true,
"@INTERNAL": true,
"defaultValue": {
"@CALCULATED": {
"expression": "${#OWNER#.objectId}__${properties.routeId}",
"targetPath": "$.objectId",
"removeResolved": true,
"resultType": "string",
"lazy": false,
"blacklistContent": ["TEMP-*", "GEN-*"]
}
}
},
"routeProperties": {
"type": "Map",
"description": "Optional metadata",
"displayName": "Route properties"
},
"routeContent": {
"displayName": "Route",
"type": "xml:route",
"description": "Set of processing steps that are applied to a message as it travels from a source to a destination. A route typically consists of a series of processing steps that are connected in a linear sequence. For more details see <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/routes.html\">Camel docs</a>",
"required": true,
"@RESOURCE": {
"endType": "String",
"format": "base64",
"location": {
"@CALCULATED": {
"lazy": true,
"expression": "${#OWNER_OF_TYPE:+entaxy.runtime.route-container#.#FACTORY#.factory.type}.${#OWNER_OF_TYPE:+entaxy.runtime.route-container#.objectId}/${#OWNER#.#FACTORY#.factory.type}.${#OWNER#.properties.routeId}/routeContent.xml"
}
},
"postprocess": [
{
"processor": "component-library"
}
]
},
"defaultValue": {
"@RESOURCE": {
"provider": "entaxy-file-internal",
"location": "factories/abstract-route/routeContent.xml",
"endType": "String",
"format": "base64"
}
}
},
"__routeOwner": {
"type": "String",
"isHidden": true,
"required": true,
"note": "for the case when we need explicitly set route container id, e.g in xslt",
"@INTERNAL": true,
"defaultValue": {
"@CALCULATED": {
"expression": "${#OWNER_OF_TYPE:+entaxy.runtime.route-container#.objectId}:${#OWNER_OF_TYPE:+entaxy.runtime.route-container#.#FACTORY#.factory.type}",
"lazy": false
}
}
},
"displayName": {
"required": true,
"defaultValue": {
"@CALCULATED": {
"expression": "${properties.routeId}",
"lazy": false
}
}
},
"##publish": {
"type": "Map",
"required": true,
"isHidden": true,
"defaultValue":{
"relation": [
{
"@CALCULATED": {
"expression": "${#OWNER_OF_TYPE:+entaxy.runtime.route-container#.objectId}:${#OWNER_OF_TYPE:+entaxy.runtime.route-container#.#FACTORY#.factory.type}:subroute:-composition:routes",
"lazy": true
}
}
],
"owner": {
"@CALCULATED": {
"expression": "${#OWNER_OF_TYPE:+entaxy.runtime.route-container#.objectId}:${#OWNER_OF_TYPE:+entaxy.runtime.route-container#.#FACTORY#.factory.type}",
"lazy": true
}
},
"routeId": {
"@CALCULATED": {
"expression": "${properties.routeId}",
"lazy": false
}
},
"routeType": {
"@CALCULATED": {
"expression": "${#FACTORY#.#TYPEINFO#.routeType}",
"lazy": false
}
},
"routePattern": {
"@CALCULATED": {
"expression": "${#FACTORY#.#TYPEINFO#.routePattern}",
"lazy": false
}
},
"routeIsCallable": {
"@CALCULATED": {
"expression": "${#FACTORY#.#TYPEINFO#.routeIsCallable}",
"lazy": false,
"resultType": "string"
}
},
"routeGlobalCallMode": "NONE",
"routeLocalCallMode": "NONE",
"name": {
"@CALCULATED": {
"expression": "${properties.routeId}"
}
}
}
}
},
"outputs": {
"init": {
"isDefault": true,
"fields": {
"__objectId": {},
"__routeOwner": {},
"routeId": {},
"routeContent": {},
"routeProperties": {}
},
"scopes": ["private"],
"config": {
"configurable": false
}
}
}
}

View File

@ -0,0 +1,61 @@
{
"factory": {
"id": "abstract-aggregation-repository",
"type": "entaxy.runtime.route.component.aggregation.repository",
"description": "",
"isAbstract": true,
"parent": "abstract-route-component",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.aggregation.repository": {},
"fields": {
"ownerId": {
"type": "String",
"group": "hidden",
"required": true,
"isHidden": true,
"defaultValue": {
"@CALCULATED": {
"expression": "${#OWNER#.objectId}"
}
}
},
"className": {
"type": "String",
"group": "hidden",
"required": true,
"isHidden": true,
"defaultValue": {
"@CALCULATED": {
"expression": "${#FACTORY#.#TYPEINFO#.className}",
"lazy": false
}
}
}
},
"outputs": {
"init": {
"isDefault": true,
"fields": {
"ownerId": {},
"className": {}
},
"config": {
"configurable": false,
"@SKIP_PUBLISH": {},
"@SKIP_VAULTS_LOOKUP": ""
},
"scopes": ["private"]
},
"bean": {
"isDefault": false,
"fields": {},
"config": {
"configurable": false,
"@SKIP_PUBLISH": {},
"@SKIP_PROVIDE": {}
}
}
}
}

View File

@ -0,0 +1,64 @@
{
"factory": {
"id": "abstract-aggregation-strategy-camel-simple",
"type": "entaxy.runtime.route.component.aggregation.strategy",
"description": "",
"isAbstract": true,
"parent": "abstract-aggregation-strategy",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.aggregation.strategy": {},
"fields": {
"ownerId": {
"type": "String",
"group": "hidden",
"required": true,
"isHidden": true,
"defaultValue": {
"@CALCULATED": {
"expression": "${#OWNER#.objectId}"
}
}
},
"className": {
"type": "String",
"group": "hidden",
"required": true,
"isHidden": true,
"defaultValue": {
"@CALCULATED": {
"expression": "${#FACTORY#.#TYPEINFO#.className}",
"lazy": false
}
}
},
"beanId": {
"type": "String",
"group": "hidden",
"required": true,
"isHidden": true,
"defaultValue": {
"@CALCULATED": {
"expression": "aggregation-strategy-${#FACTORY#.#TYPEINFO#.beanId}",
"lazy": false
}
}
}
},
"outputs": {
"init": {
"fields": {
"ownerId": {},
"className": {},
"beanId": {}
},
"config": {
"configurable": false,
"@SKIP_PUBLISH": {}
},
"scopes": ["private"]
}
}
}

View File

@ -0,0 +1,28 @@
{
"factory": {
"id": "abstract-aggregation-strategy",
"type": "entaxy.runtime.route.component.aggregation.strategy",
"description": "",
"isAbstract": true,
"parent": "abstract-route-component",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.aggregation.strategy": {},
"fields": {
},
"outputs": {
"init": {
"isDefault": true,
"fields": {
},
"config": {
"configurable": false,
"@SKIP_PUBLISH": {},
"@SKIP_VAULTS_LOOKUP": ""
},
"scopes": ["private"]
}
}
}

View File

@ -0,0 +1,20 @@
{
"factory": {
"id": "aggregation-repository-camel-memory",
"type": "entaxy.runtime.route.component.aggregation.repository",
"displayName": "CAMEL :: MEMORY",
"description": "A memory based AggregationRepository which stores Exchanges in memory only. Supports both optimistic locking and non-optimistic locking modes. Defaults to non-optimistic locking mode.",
"isAbstract": false,
"parent": "abstract-aggregation-repository",
"label": "",
"category": "",
"shortName": "MemoryAggregationRepository",
"@SEE": "camel-base"
},
"entaxy.runtime.route.component.aggregation.repository": {
"className": "org.apache.camel.processor.aggregate.MemoryAggregationRepository"
},
"fields": {
},
"outputs": {}
}

View File

@ -0,0 +1,40 @@
{
"factory": {
"id": "aggregation-repository-entaxy-ignite",
"type": "entaxy.runtime.route.component.aggregation.repository",
"displayName": "ENTAXY :: IGNITE",
"description": "A memory based AggregationRepository which stores Exchanges in ignite cache only.",
"isAbstract": false,
"parent": "abstract-aggregation-repository",
"label": "",
"category": "",
"shortName": "MemoryAggregationRepository",
"@SEE": "camel-base"
},
"entaxy.runtime.route.component.aggregation.repository": {
"className": "ru.entaxy.esb.system.common.aggregation.repo.IgniteAggregationRepository"
},
"fields": {
"maximumRedeliveries": {
"displayName": "Maximum Redeliveries",
"description": "Sets the maximum redeliveries x \u003d redeliver at most x times 0 \u003d no redeliveries -1 \u003d redeliver forever. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "number",
"required": true,
"defaultValue": 10
},
"deadLetterUri": {
"displayName": "Dead Letter Uri",
"type": "String",
"required": true,
"defaultValue": "mock:none"
}
},
"outputs": {
"init": {
"fields": {
"maximumRedeliveries": {},
"deadLetterUri": {}
}
}
}
}

View File

@ -0,0 +1,73 @@
{
"factory": {
"id": "aggregation-repository-entaxy-jdbc",
"type": "entaxy.runtime.route.component.aggregation.repository",
"displayName": "ENTAXY :: JDBC",
"description": "JDBC based AggregationRepository JdbcAggregationRepository will only preserve any Serializable compatible data types. If a data type is not such a type its dropped and a WARN is logged. And it only persists the Message body and the Message headers. The Exchange properties are not persisted. For more details see <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/sql-component.html#_using_the_jdbc_based_aggregation_repository\" >Apache Camel components</a>",
"isAbstract": false,
"parent": "abstract-aggregation-repository",
"label": "",
"category": "",
"shortName": "entaxy-jdbc"
},
"entaxy.runtime.route.component.aggregation.repository": {
"className": "ru.entaxy.esb.system.common.aggregation.repo.JdbcAggregationRepository"
},
"fields": {
"dataSource": {
"displayName": "Data Source",
"type": "String",
"group": "",
"required": false,
"@TYPEINFO": {
"type": "list",
"source": {
"@SEARCH": {
"type": "service",
"filter": "(objectClass=javax.sql.DataSource)",
"displayProperty": "dataSourceName",
"valueProperty": "dataSourceName"
}
}
}
},
"repositoryName": {
"displayName": "Repository Name",
"type": "String",
"required": true
},
"maximumRedeliveries": {
"displayName": "Maximum Redeliveries",
"description": "Sets the maximum redeliveries x \u003d redeliver at most x times 0 \u003d no redeliveries -1 \u003d redeliver forever. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/redelivery.html\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/faq/how-do-i-retry-failed-messages-forever.html\">Camel docs</a>",
"type": "number",
"required": true,
"defaultValue": 3
},
"deadLetterUri": {
"displayName": "Dead Letter Uri",
"type": "String",
"required": true,
"defaultValue": "mock:none"
}
},
"outputs": {
"init": {
"isDefault": true,
"fields": {
"dataSource": {
},
"repositoryName": {
},
"maximumRedeliveries": {
},
"deadLetterUri": {
}
},
"config": {
"configurable": false,
"@SKIP_PUBLISH": {
}
}
}
}
}

View File

@ -0,0 +1,19 @@
{
"factory": {
"id": "aggregation-repository-entaxy-postgre",
"type": "entaxy.runtime.route.component.aggregation.repository",
"displayName": "ENTAXY :: POSTGRE",
"description": "",
"isAbstract": false,
"parent": "aggregation-repository-entaxy-jdbc",
"label": "",
"category": "",
"shortName": "entaxy-jdbc"
},
"entaxy.runtime.route.component.aggregation.repository": {
"className": "ru.entaxy.esb.system.common.aggregation.repo.PostgresAggregationRepository"
},
"fields": {
},
"outputs": {}
}

View File

@ -0,0 +1,20 @@
{
"factory": {
"id": "aggregation-strategy-camel-grouped-body",
"type": "entaxy.runtime.route.component.aggregation.strategy",
"displayName": "GROUPED :: BODY",
"description": "Aggregate body of input Message into a single combined Exchange holding all the aggregated bodies in a List of type Object as the message body.",
"isAbstract": false,
"parent": "abstract-aggregation-strategy-camel-simple",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.aggregation.strategy": {
"className": "org.apache.camel.processor.aggregate.GroupedBodyAggregationStrategy",
"beanId": "grouped-body"
},
"fields": {
},
"outputs": {
}
}

View File

@ -0,0 +1,20 @@
{
"factory": {
"id": "aggregation-strategy-camel-grouped-exchange",
"type": "entaxy.runtime.route.component.aggregation.strategy",
"displayName": "GROUPED :: EXCHANGE",
"description": "Aggregate all exchanges into a single combined Exchange holding all the aggregated exchanges in a List of Exchange as the message body.",
"isAbstract": true,
"parent": "abstract-aggregation-strategy-camel-simple",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.aggregation.strategy": {
"className": "org.apache.camel.processor.aggregate.GroupedExchangeAggregationStrategy",
"beanId": "grouped-exchange"
},
"fields": {
},
"outputs": {
}
}

View File

@ -0,0 +1,20 @@
{
"factory": {
"id": "aggregation-strategy-camel-grouped-message",
"type": "entaxy.runtime.route.component.aggregation.strategy",
"displayName": "GROUPED :: MESSAGE",
"description": "Aggregate all Message into a single combined Exchange holding all the aggregated messages in a List of Message as the message body.",
"isAbstract": true,
"parent": "abstract-aggregation-strategy-camel-simple",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.aggregation.strategy": {
"className": "org.apache.camel.processor.aggregate.GroupedMessageAggregationStrategy",
"beanId": "grouped-message"
},
"fields": {
},
"outputs": {
}
}

View File

@ -0,0 +1,31 @@
{
"factory": {
"id": "aggregation-strategy-camel-string",
"type": "entaxy.runtime.route.component.aggregation.strategy",
"displayName": "STRING",
"description": "Aggregate result of pick expression into a single combined Exchange holding all the aggregated bodies in a String as the message body.",
"isAbstract": false,
"parent": "abstract-aggregation-strategy-camel-simple",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.aggregation.strategy": {
"className": "org.apache.camel.processor.aggregate.EntaxyStringAggregationStrategy",
"beanId": "aggregation-strategy-string"
},
"fields": {
"delimiter": {
"displayName": "Delimiter",
"type": "String",
"description": "Set delimiter used for joining aggregated. The delimiter to join with. Default empty String",
"required": false
}
},
"outputs": {
"init": {
"fields": {
"delimiter": {}
}
}
}
}

View File

@ -0,0 +1,20 @@
{
"factory": {
"id": "aggregation-strategy-camel-use-latest",
"type": "entaxy.runtime.route.component.aggregation.strategy",
"displayName": "USE LATEST",
"description": "An AggregationStrategy which just uses the latest exchange which is useful for status messages where old status messages have no real value. Another example is things like market data prices, where old stock prices are not that relevant, only the current price is.",
"isAbstract": true,
"parent": "abstract-aggregation-strategy-camel-simple",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.aggregation.strategy": {
"className": "org.apache.camel.processor.aggregate.UseLatestAggregationStrategy",
"beanId": "use-latest"
},
"fields": {
},
"outputs": {
}
}

View File

@ -0,0 +1,20 @@
{
"factory": {
"id": "aggregation-strategy-camel-use-original",
"type": "entaxy.runtime.route.component.aggregation.strategy",
"displayName": "USE ORIGINAL",
"description": "An AggregationStrategy which just uses the original exchange which can be needed when you want to preserve the original Exchange. For example when splitting an Exchange and then you may want to keep routing using the original Exchange.",
"isAbstract": true,
"parent": "abstract-aggregation-strategy-camel-simple",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.aggregation.strategy": {
"className": "org.apache.camel.processor.aggregate.UseOriginalAggregationStrategy",
"beanId": "use-original"
},
"fields": {
},
"outputs": {
}
}

View File

@ -0,0 +1,26 @@
{
"factory": {
"id": "abstract-expression",
"type": "entaxy.runtime.route.component.expression",
"description": "",
"isAbstract": true,
"parent": "abstract-route-component",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.expression": {},
"fields": {},
"outputs": {
"init": {
"isDefault": false,
"generator": "",
"config": {
"configurable": false,
"@SKIP_PUBLISH": {}
},
"scopes": [
"private"
]
}
}
}

View File

@ -0,0 +1,53 @@
{
"factory": {
"id": "common-expression",
"type": "entaxy.runtime.route.component.expression",
"displayName": "COMMON EXPRESSION",
"description": "",
"isAbstract": false,
"parent": "abstract-expression",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.expression": {},
"fields": {
"expressionLanguage": {
"displayName": "Expression Language",
"group": "general",
"required": true,
"type": "string",
"@TYPEINFO": {
"type": "enum",
"values": [
"constant",
"simple",
"jsonpath",
"xpath",
"header"
],
"isEmptyIncluded": false
}
},
"expression": {
"displayName": "Expression",
"type": "String",
"group": "general",
"required": true
}
},
"outputs": {
"init": {
"isDefault": true,
"config": {
"configurable": false,
"@SKIP_PUBLISH": true,
"@SKIP_VAULTS_LOOKUP": ""
},
"scopes": ["private"],
"fields": {
"expression": {},
"expressionLanguage": {}
}
}
}
}

View File

@ -0,0 +1,38 @@
{
"factory": {
"id": "route-timer",
"type": "entaxy.runtime.route",
"parent": "route-scheduled",
"isAbstract": false,
"displayName": "TIMER",
"description": "Factory route-timer of entaxy.runtime.route"
},
"entaxy.runtime.route": {
"routePattern": "TIMER"
},
"fields": {
},
"outputs": {
"init": {
"isDefault": true,
"config": {
"configurable": false
},
"fields": {
"routeContent": {
"displayName": "Route content"
},
"timerName": {
"group": "general"
},
"@IMPORT": [
{
"sourceFactoryId": "model-timer",
"location": "outputs.init.fields",
"prefix": ""
}
]
}
}
}
}

View File

@ -0,0 +1,37 @@
{
"factory": {
"id": "route-aggregator-in-object",
"type": "entaxy.runtime.route",
"parent": "route-aggregator",
"isAbstract": false,
"displayName": "AGGREGATOR",
"description": "The Aggregator from the EIP patterns allows you to combine a number of messages together into a single message. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_aggregator\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/feips/aggregate-eip.html\">Camel docs</a>"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "OBJECT"
},
"fields": {
"globalCallMode": {
"@TYPEINFO": {
"values": [
"NONE"
]
},
"isHidden": true,
"defaultValue": "NONE"
},
"localCallMode": {
"@TYPEINFO": {
"type": "enum",
"values": [
"SYNC",
"ASYNC",
"BOTH"
]
},
"defaultValue": "SYNC"
}
},
"outputs": {
}
}

View File

@ -0,0 +1,78 @@
{
"factory": {
"id": "route-aggregator",
"type": "entaxy.runtime.route",
"parent": "route-callable",
"isAbstract": false,
"displayName": "AGGREGATOR",
"description": "The Aggregator from the EIP patterns allows you to combine a number of messages together into a single message. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_aggregator\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/feips/aggregate-eip.html\">Camel docs</a>"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "LIBRARY",
"routePattern": "AGGREGATOR",
"routeIsCallable": true
},
"fields": {
"aggregatorId": {
"type": "String",
"required": true,
"isHidden": true,
"defaultValue": {
"@CALCULATED": {
"expression": "${objectId}-aggregator",
"lazy": false,
"resultType": "String"
}
}
}
},
"outputs": {
"init": {
"isDefault": true,
"config": {
"configurable": false
},
"fields": {
"aggregatorId": {},
"routeContent": {
"displayName": "On-complete route",
"description": "A route configuration that executes after the aggregation process is finalized. The router that connects the system to other entities in the Entaxy architecture. By default, the message is routed to an entity of the system type. For more details see <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/routes.html\">Camel docs</a>"
},
"camel_completionTimeout": {
"group": "completion"
},
"camel_completionTimeoutExpression": {
"group": "completion"
},
"camel_completionInterval": {
"group": "completion"
},
"camel_completionSize": {
"group": "completion"
},
"camel_completionSizeExpression": {
"group": "completion"
},
"camel_completionPredicate": {
"group": "completion"
},
"camel_completionFromBatchConsumer": {
"group": "completion"
},
"camel_forceCompletionOnStop": {
"group": "completion"
},
"camel_aggregateControllerRef": {
"group": "completion"
},
"@IMPORT": [
{
"sourceFactoryId": "model-aggregate",
"location": "outputs.init.fields",
"prefix": ""
}
]
}
}
}
}

View File

@ -0,0 +1,37 @@
{
"factory": {
"id": "route-callable-in-object",
"type": "entaxy.runtime.route",
"parent": "route-callable",
"isAbstract": false,
"displayName": "ROUTE :: CALLABLE",
"description": "Dynamically created routes that can be called programmatically. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_route_callable\">Entaxy docs</a>"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "OBJECT"
},
"fields": {
"globalCallMode": {
"@TYPEINFO": {
"values": [
"NONE"
]
},
"isHidden": true,
"defaultValue": "NONE"
},
"localCallMode": {
"@TYPEINFO": {
"type": "enum",
"values": [
"SYNC",
"ASYNC",
"BOTH"
]
},
"defaultValue": "SYNC"
}
},
"outputs": {
}
}

View File

@ -0,0 +1,79 @@
{
"factory": {
"id": "route-callable",
"type": "entaxy.runtime.route",
"parent": "abstract-route",
"isAbstract": false,
"displayName": "ROUTE :: CALLABLE",
"description": "Dynamically created routes that can be called programmatically. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_route_callable\">Entaxy docs</a>"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "LIBRARY",
"routeType": "CALLABLE",
"routeIsCallable": true
},
"fields": {
"globalCallMode": {
"displayName": "Global call mode",
"description": "Defines how to call the route from all Entaxy entities",
"type": "String",
"required": true,
"group": "main",
"@TYPEINFO": {
"type": "enum",
"values": [
"NONE",
"SYNC",
"ASYNC",
"BOTH"
]
},
"defaultValue": "SYNC"
},
"localCallMode": {
"displayName": "Local call mode",
"type": "String",
"description": "Defines how to call the route from the current Entaxy entity",
"required": true,
"group": "main",
"@TYPEINFO": {
"type": "enum",
"values": [
"NONE",
"SYNC",
"ASYNC",
"BOTH"
]
},
"defaultValue": "NONE"
},
"##publish": {
"defaultValue": {
"routeGlobalCallMode": {
"@CALCULATED": {
"expression": "${properties.globalCallMode}",
"lazy": false
}
},
"routeLocalCallMode": {
"@CALCULATED": {
"expression": "${properties.localCallMode}",
"lazy": false
}
}
}
}
},
"outputs": {
"init": {
"isDefault": true,
"fields": {
"localCallMode": {},
"globalCallMode": {}
},
"config": {
"configurable": false
}
}
}
}

View File

@ -0,0 +1,28 @@
{
"factory": {
"id": "route-library",
"type": "entaxy.runtime.route-library",
"description": "Factory route-library of entaxy.runtime.route-container",
"isAbstract": false,
"parent": "abstract-route-container"
},
"entaxy.runtime.route-library": {
"routeContainerType": "LIBRARY"
},
"fields": {
"routes": {
"itemFactory": {
"filter": "(&(type=entaxy.runtime.route)(isAbstract=false)(|(typeinfo.targetRouteContainerType=ANY)(typeinfo.targetRouteContainerType=LIBRARY)))"
}
}
},
"outputs": {
"init": {
"isDefault": true,
"config": {
"configurable": false
}
}
}
}

View File

@ -0,0 +1,41 @@
{
"factory": {
"id": "route-quartz",
"type": "entaxy.runtime.route",
"parent": "route-scheduled",
"isAbstract": false,
"displayName": "QUARTZ",
"description": "Schedule sending of messages using the Quartz 2.x scheduler. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_quartz\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/quartz-component.html\">Camel docs</a>"
},
"entaxy.runtime.route": {
"routePattern": "QUARTZ"
},
"fields": {
//don't work on two nodes at the same time
//"runExclusive": {
// "displayName": "Run Exclusive",
// "type": "Boolean",
// "immutable": true,
// "required": true,
// "defaultValue": true
// }
},
"outputs": {
"init": {
"isDefault": true,
"config": {
"configurable": false
},
"fields": {
// "runExclusive": {},
"@IMPORT": [
{
"sourceFactoryId": "model-quartz",
"location": "outputs.init.fields",
"prefix": ""
}
]
}
}
}
}

View File

@ -0,0 +1,16 @@
{
"factory": {
"id": "route-scheduled",
"type": "entaxy.runtime.route",
"parent": "route-self-started",
"isAbstract": true,
"description": "Factory route-scheduled of entaxy.runtime.route"
},
"entaxy.runtime.route": {
"routeType": "SCHEDULED"
},
"fields": {
},
"outputs": {
}
}

View File

@ -0,0 +1,17 @@
{
"factory": {
"id": "route-self-started",
"type": "entaxy.runtime.route",
"parent": "abstract-route",
"isAbstract": true,
"description": "Factory route-self-started of entaxy.runtime.route"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "ANY",
"routeType": "SELF-STARTED"
},
"fields": {
},
"outputs": {
}
}

View File

@ -0,0 +1,79 @@
{
"factory": {
"id": "route-timer",
"type": "entaxy.runtime.route",
"parent": "route-scheduled",
"isAbstract": false,
"displayName": "TIMER",
"description": "The Timer component is used to generate message exchanges when a timer fires. You can only consume events from this endpoint. For more details see <a target=\"_blank\" href=\"https://docs.entaxy.ru/entaxy-core/${project.version}/core/route_descriptions.html#_timer\">Entaxy docs</a> and <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/timer-component.html\">Camel docs</a>"
},
"entaxy.runtime.route": {
"routePattern": "TIMER"
},
"fields": {
"runExclusive": {
"displayName": "Run Exclusive",
"description": "Run only on one node of cluster. For more details see <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/master-component.html\">Camel docs</a>",
"type": "Boolean",
"immutable": true,
"defaultValue": true,
"required": true,
"@VARIANTS": {
"property": "exclusiveMode",
"values": {
"BOTH": {
"defaultValue": false
},
"EXCLUSIVE_ONLY": {
"isHidden": true,
"fixedValue": true,
"defaultValue": true
},
"NON_EXCLUSIVE_ONLY": {
"isHidden": true,
"fixedValue": false,
"defaultValue": false
}
}
}
},
"exclusivePrefix": {
"type": "String",
"isHidden": true,
"condition": "${runExclusive}",
"@INTERNAL": true,
"required": true,
"defaultValue": {
"@CALCULATED": {
"expression": "master:${objectId}:",
"lazy": true
}
}
}
},
"outputs": {
"init": {
"isDefault": true,
"config": {
"configurable": false
},
"fields": {
"runExclusive": {},
"exclusivePrefix": {},
"routeContent": {
"displayName": "Route content"
},
"timerName": {
"group": "general"
},
"@IMPORT": [
{
"sourceFactoryId": "model-timer",
"location": "outputs.init.fields",
"prefix": ""
}
]
}
}
}
}

View File

@ -0,0 +1,265 @@
{
"factory": {
"id": "ssl-context-parameters",
"type": "entaxy.runtime.route.component",
"isAbstract": false,
"parent": "base-object",
"label": "security",
"group": "ssl context parameters"
},
"entaxy.runtime.route.component": {},
"fields": {
"camel_sslContextParameters": {
"displayName": "Ssl Context Parameters",
"description": "To configure security using SSLContextParameters. Use the visual configuration option with basic settings or if you need more fine-tuning, create beans and select the custom option. SSLContextParameters creation description in <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/manual/${camel-docs.version}/camel-configuration-utilities.html#CamelConfigurationUtilities-SSLContextParameters\" >Apache Camel manual</a>",
"label": "security",
"type": "string",
"required": false,
"hidden": false,
"group": "ssl context parameters",
"##origin": "camel",
"kind": [
"property",
"parameter"
],
"@TYPEINFO": {
"type": "enum",
"emptyOptionName": "default",
"values": [
"visual configuration",
"custom"
]
},
"@UI": {
"manageDisplayBlocksByValue": true
}
},
"sslContextParametersReference": {
"displayName": "Reference",
"description": "Reference to custom SSLContextParameters without leading #",
"label": "advanced",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "ssl context parameters",
"defaultValue": "sslContextParameters",
"@UI": {
"transmitAlways": false,
"displayBlocks": ["custom"],
"required": true
}
},
"sslContextParametersKeyManagersPass": {
"displayName": "KeyManagers password",
"description": "The optional password for recovering keys in the key store. Used by the KeyManagerFactory that creates the KeyManagers represented by this object's configuration.",
"label": "advanced",
"type": "password",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "ssl context parameters",
"defaultValue": "",
"@UI": {
"transmitAlways": false,
"displayBlocks": ["visual configuration"],
"required": false
}
},
"sslContextParametersKeyManagersKeyStoreResource": {
"displayName": "KeyManagers KeyStore resource path",
"description": "The optional file path, class path resource, or URL of the resource used to load the key store.",
"type": "Url",
"kind": "parameter",
"required": false,
"group": "ssl context parameters",
"@TYPEINFO": {
"resourceProvider": "entaxy-keystore",
"filter": ["*.jks", "*.pkcs12"
],
"target": "resource"
},
"@UI": {
"transmitAlways": false,
"displayBlocks": ["visual configuration"],
"required": false
}
},
"sslContextParametersKeyManagersKeyStoreType": {
"displayName": "KeyManagers KeyStore type",
"description": "The optional type of the key store to load. See Appendix A in the <a target=\"_blank\" href=\"http://download.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html#KeyStore\" > Java Cryptography Architecture Standard Algorithm Name Documentation</a> for more information on standard names.",
"label": "advanced",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "ssl context parameters",
"defaultValue": "",
"@UI": {
"transmitAlways": false,
"displayBlocks": ["visual configuration"],
"required": false
}
},
"sslContextParametersKeyManagersKeyStorePass": {
"displayName": "KeyManagers KeyStore password",
"description": "The optional password for reading/opening/verifying the key store.",
"label": "advanced",
"type": "password",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "ssl context parameters",
"defaultValue": "",
"@UI": {
"transmitAlways": false,
"displayBlocks": ["visual configuration"],
"required": false
}
},
"sslContextParametersTrustManagersKeyStoreResource": {
"displayName": "TrustManagers KeyStore resource path",
"description": "The optional file path, class path resource, or URL of the resource used to load the key store.",
"type": "Url",
"kind": "parameter",
"required": false,
"group": "ssl context parameters",
"@TYPEINFO": {
"resourceProvider": "entaxy-keystore",
"filter": ["*.jks", "*.pkcs12"
],
"target": "resource"
},
"@UI": {
"transmitAlways": false,
"displayBlocks": ["visual configuration"],
"required": false
}
},
"sslContextParametersTrustManagersKeyStoreType": {
"displayName": "TrustManagers KeyStore type",
"description": "The optional type of the key store to load. See Appendix A in the <a target=\"_blank\" href=\"http://download.oracle.com/javase/6/docs/technotes/guides/security/StandardNames.html#KeyStore\"> Java Cryptography Architecture Standard Algorithm Name Documentation</a> for more information on standard names.",
"label": "advanced",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "ssl context parameters",
"defaultValue": "",
"@UI": {
"transmitAlways": false,
"displayBlocks": ["visual configuration"],
"required": false
}
},
"sslContextParametersTrustManagersKeyStorePass": {
"displayName": "TrustManagers KeyStore password",
"description": "The optional password for reading/opening/verifying the key store.",
"label": "advanced",
"type": "password",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "ssl context parameters",
"defaultValue": "",
"@UI": {
"transmitAlways": false,
"displayBlocks": ["visual configuration"],
"required": false
}
},
"__sslContextParametersTemplate": {
"type": "entaxy.runtime.connector",
"isRef": true,
"required": true,
"isHidden": true,
"isRefByValueOnly": true,
"@INTERNAL": true,
"defaultValue": {
"type": "entaxy.runtime.connector",
"factoryId": "#OWNER#",
"outputType": "ssl-context-parameters",
"scope": "private",
"properties": {
"sslContextParameters": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.camel_sslContextParameters}",
"fallbackObject": null,
"lazy": false
}
},
"sslContextParametersKeyManagersPass": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.sslContextParametersKeyManagersPass}",
"fallbackObject": null,
"lazy": false
}
},
"sslContextParametersKeyManagersKeyStoreResource": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.sslContextParametersKeyManagersKeyStoreResource}",
"fallbackObject": null,
"lazy": false
}
},
"sslContextParametersKeyManagersKeyStoreType": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.sslContextParametersKeyManagersKeyStoreType}",
"fallbackObject": null,
"lazy": false
}
},
"sslContextParametersKeyManagersKeyStorePass": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.sslContextParametersKeyManagersKeyStorePass}",
"fallbackObject": null,
"lazy": false
}
},
"sslContextParametersTrustManagersKeyStoreResource": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.sslContextParametersTrustManagersKeyStoreResource}",
"fallbackObject": null,
"lazy": false
}
},
"sslContextParametersTrustManagersKeyStoreType": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.sslContextParametersTrustManagersKeyStoreType}",
"fallbackObject": null,
"lazy": false
}
},
"sslContextParametersTrustManagersKeyStorePass": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.sslContextParametersTrustManagersKeyStorePass}",
"fallbackObject": null,
"lazy": false
}
}
}
}
}
},
"outputs": {
"init": {
"fields": {
"__sslContextParametersTemplate": {}
},
"scopes": ["private"]
},
"ssl-context-parameters": {
"fields": {
"sslContextParameters": {},
"sslContextParametersKeyManagersPass": {},
"sslContextParametersKeyManagersKeyStoreResource": {},
"sslContextParametersKeyManagersKeyStoreType": {},
"sslContextParametersKeyManagersKeyStorePass": {},
"sslContextParametersTrustManagersKeyStoreResource": {},
"sslContextParametersTrustManagersKeyStoreType": {},
"sslContextParametersTrustManagersKeyStorePass": {}
},
"scopes": ["private"]
}
}
}

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<entaxy:common-route xmlns="http://camel.apache.org/schema/blueprint" xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:entaxy="http://www.entaxy.ru/schemas/1.0" xmlns:m="http://www.entaxy.ru/schemas/entaxy-mediators/1.0">
<!-- PLACE YOUR CUSTOM Entaxy/Camel CODE HERE -->
<m:log message="in route ${routeId}" loggingLevel="INFO" />
</entaxy:common-route>

View File

@ -0,0 +1,3 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<bean id="[=properties.beanId]" class="[=properties.className]" activation="eager" xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
</bean>

View File

@ -0,0 +1,16 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
[#if properties.generateLoggingKey?? && properties.generateLoggingKey]
<setProperty name="service">
<constant>[=properties.displayName]</constant>
</setProperty>
<setProperty name="objectId">
<simple>${headers.ENTAXY_MessageUUID}</simple>
</setProperty>
<setProperty name="receiver">
<simple>${headers.ENTAXY_Destination}</simple>
</setProperty>
<setProperty name="sender">
<simple>[=profile]</simple>
</setProperty>
<to uri="direct-vm:fill-logging-key"/>
[/#if]

View File

@ -0,0 +1,57 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
[#if properties.sslContextParameters?? && properties.sslContextParameters == "visual configuration"]
[#--
<sslContextParameters id="mySslContextParameters" xmlns="http://camel.apache.org/schema/blueprint">
<keyManagers keyPassword="karaf1234">
<keyStore resource="./sec/local-keystore.p12" type="PKCS12" password="karaf1234" />
</keyManagers>
<trustManagers>
<keyStore resource="./sec/local-keystore.p12" type="PKCS12" password="karaf1234" />
</trustManagers>
</sslContextParameters>
--]
[#if properties.sslContextParametersKeyManagersKeyStoreResource?? && properties.sslContextParametersKeyManagersKeyStoreResource?has_content]
<bean id="keyManagersKeystore" class="org.apache.camel.support.jsse.KeyStoreParameters">
[#if properties.sslContextParametersKeyManagersKeyStoreResource?? && properties.sslContextParametersKeyManagersKeyStoreResource?has_content]
<property name="resource" value="[=properties.sslContextParametersKeyManagersKeyStoreResource]"/>
[/#if]
[#if properties.sslContextParametersKeyManagersKeyStorePass?? && properties.sslContextParametersKeyManagersKeyStorePass?has_content]
<property name="password" value="[=properties.sslContextParametersKeyManagersKeyStorePass]"/>
[/#if]
[#if properties.sslContextParametersKeyManagersKeyStoreType?? && properties.sslContextParametersKeyManagersKeyStoreType?has_content]
<property name="type" value="[=properties.sslContextParametersKeyManagersKeyStoreType]"/>
[/#if]
</bean>
<bean id="beanKeyManagers" class="org.apache.camel.support.jsse.KeyManagersParameters">
<property name="keyStore" ref="keyManagersKeystore"/>
[#if properties.sslContextParametersKeyManagersPass?? && properties.sslContextParametersKeyManagersPass?has_content]
<property name="keyPassword" value="[=properties.sslContextParametersKeyManagersPass]"/>
[/#if]
</bean>
[/#if]
[#if properties.sslContextParametersTrustManagersKeyStoreResource?? && properties.sslContextParametersTrustManagersKeyStoreResource?has_content]
<bean id="trustManagersKeystore" class="org.apache.camel.support.jsse.KeyStoreParameters">
[#if properties.sslContextParametersTrustManagersKeyStoreResource?? && properties.sslContextParametersTrustManagersKeyStoreResource?has_content]
<property name="resource" value="[=properties.sslContextParametersTrustManagersKeyStoreResource]"/>
[/#if]
[#if properties.sslContextParametersTrustManagersKeyStorePass?? && properties.sslContextParametersTrustManagersKeyStorePass?has_content]
<property name="password" value="[=properties.sslContextParametersTrustManagersKeyStorePass]"/>
[/#if]
[#if properties.sslContextParametersTrustManagersKeyStoreType?? && properties.sslContextParametersTrustManagersKeyStoreType?has_content]
<property name="type" value="[=properties.sslContextParametersTrustManagersKeyStoreType]"/>
[/#if]
</bean>
<bean id="beanTrustManagers" class="org.apache.camel.support.jsse.TrustManagersParameters">
<property name="keyStore" ref="trustManagersKeystore"/>
</bean>
[/#if]
<bean id="sslContextParameters" class="org.apache.camel.support.jsse.SSLContextParameters">
[#if properties.sslContextParametersKeyManagersKeyStoreResource?? && properties.sslContextParametersKeyManagersKeyStoreResource?has_content]
<property name="keyManagers" ref="beanKeyManagers"/>
[/#if]
[#if properties.sslContextParametersTrustManagersKeyStoreResource?? && properties.sslContextParametersTrustManagersKeyStoreResource?has_content]
<property name="trustManagers" ref="beanTrustManagers"/>
[/#if]
</bean>
[/#if]

View File

@ -0,0 +1,31 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<errorHandlerRef>[=properties.errorHandlerType]</errorHandlerRef>
<errorHandler id="NoErrorHandler" type="NoErrorHandler"/>
<errorHandler id="DefaultErrorHandler" type="DefaultErrorHandler" redeliveryPolicyRef="redeliveryPolicyProfileBean"/>
<errorHandler id="DeadLetterChannel" type="DeadLetterChannel" deadLetterUri="[=properties.deadLetterUri]" redeliveryPolicyRef="redeliveryPolicyProfileBean"/>
<redeliveryPolicyProfile id="redeliveryPolicyProfileBean"
[#if properties.maximumRedeliveries??]maximumRedeliveries="[=properties.maximumRedeliveries]"[/#if]
[#if properties.redeliveryDelay??]redeliveryDelay="[=properties.redeliveryDelay]"[/#if]
[#if properties.asyncDelayedRedelivery??]asyncDelayedRedelivery="[=properties.asyncDelayedRedelivery]"[/#if]
[#if properties.backOffMultiplier??]backOffMultiplier="[=properties.backOffMultiplier]"[/#if]
[#if properties.useExponentialBackOff??]useExponentialBackOff="[=properties.useExponentialBackOff]"[/#if]
[#if properties.collisionAvoidanceFactor??]collisionAvoidanceFactor="[=properties.collisionAvoidanceFactor]"[/#if]
[#if properties.useCollisionAvoidance??]useCollisionAvoidance="[=properties.useCollisionAvoidance]"[/#if]
[#if properties.maximumRedeliveryDelay??]maximumRedeliveryDelay="[=properties.maximumRedeliveryDelay]"[/#if]
[#if properties.retriesExhaustedLogLevel??]retriesExhaustedLogLevel="[=properties.retriesExhaustedLogLevel]"[/#if]
[#if properties.retryAttemptedLogLevel??]retryAttemptedLogLevel="[=properties.retryAttemptedLogLevel]"[/#if]
[#if properties.retryAttemptedLogInterval??]retryAttemptedLogInterval="[=properties.retryAttemptedLogInterval]"[/#if]
[#if properties.logRetryAttempted??]logRetryAttempted="[=properties.logRetryAttempted]"[/#if]
[#if properties.logStackTrace??]logStackTrace="[=properties.logStackTrace]"[/#if]
[#if properties.logRetryStackTrace??]logRetryStackTrace="[=properties.logRetryStackTrace]"[/#if]
[#if properties.logHandled??]logHandled="[=properties.logHandled]"[/#if]
[#if properties.logNewException??]logNewException="[=properties.logNewException]"[/#if]
[#if properties.logContinued??]logContinued="[=properties.logContinued]"[/#if]
[#if properties.logExhausted??]logExhausted="[=properties.logExhausted]"[/#if]
[#if properties.logExhaustedMessageHistory??]logExhaustedMessageHistory="[=properties.logExhaustedMessageHistory]"[/#if]
[#if properties.logExhaustedMessageBody??]logExhaustedMessageBody="[=properties.logExhaustedMessageBody]"[/#if]
[#if properties.disableRedelivery??]disableRedelivery="[=properties.disableRedelivery]"[/#if]
[#if properties.delayPattern??]delayPattern="[=properties.delayPattern]"[/#if]
[#if properties.allowRedeliveryWhileStopping??]allowRedeliveryWhileStopping="[=properties.allowRedeliveryWhileStopping]"[/#if]
[#if properties.exchangeFormatterRef??]exchangeFormatterRef="[=properties.exchangeFormatterRef]"[/#if]
/>

View File

@ -0,0 +1,2 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<globalOption key="CamelLogEipName" value="[=properties.containerType].[=properties.containerId]"/>

View File

@ -0,0 +1,30 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
[#--
~~~~~~licensing~~~~~~
factory-provider-archetype
==========
Copyright (C) 2020 - 2021 EmDev LLC
==========
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
~~~~~~/licensing~~~~~~
--]
<!--
factoryId: abstract-route-container
factoryType: entaxy.runtime.route-container
outputType: init
-->

View File

@ -0,0 +1,8 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<route xmlns="http://camel.apache.org/schema/blueprint" id="[=objectId]">
[#if properties.routeProperties??]
[#list properties.routeProperties as key, value]
<routeProperty key="[=key]" value="[#if value?is_boolean][=value?c][#else][=value][/#if]" />
[/#list]
[/#if]
</route>

View File

@ -0,0 +1,2 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
[#-- empty, because it is default value --]

View File

@ -0,0 +1,8 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<reference id="igniteInstance" interface="org.apache.ignite.Ignite" availability="mandatory" xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" />
<bean id="[=properties.ownerId]-aggregation-repo" class="[=properties.className]" activation="eager" xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<property name="bundleContext" ref="blueprintBundleContext"/>
<property name="ignite" ref="igniteInstance"/>
<property name="maximumRedeliveries" value="[=properties.maximumRedeliveries]"/>
<property name="deadLetterUri" value="[=properties.deadLetterUri]"/>
</bean>

View File

@ -0,0 +1,15 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<reference id="dataSource" interface="javax.sql.DataSource" filter="(osgi.jndi.service.name=[=properties.dataSource])"
availability="mandatory"/>
<bean id="txManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource"/>
</bean>
<bean id="[=properties.ownerId]-aggregation-repo" class="[=properties.className]">
<property name="repositoryName" value="[=properties.repositoryName]"/>
<property name="transactionManager" ref="txManager"/>
<property name="dataSource" ref="dataSource"/>
<property name="maximumRedeliveries" value="[=properties.maximumRedeliveries]"/>
<property name="deadLetterUri" value="[=properties.deadLetterUri]"/>
</bean>

View File

@ -0,0 +1,2 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
[#include "templates:aggregation-repository-entaxy-jdbc/init.ftl"]

View File

@ -0,0 +1,4 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<bean id="[=properties.beanId]" class="[=properties.className]" activation="eager" xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<property name="delimiter" value="[=properties.delimiter]"/>
</bean>

View File

@ -0,0 +1,2 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<[=properties.expressionLanguage] xmlns="http://camel.apache.org/schema/blueprint">[=properties.expression]</[=properties.expressionLanguage]>

View File

@ -0,0 +1,34 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<aggregate id="[=properties.aggregatorId]"
[#if properties.camel_parallelProcessing??]parallelProcessing="[=properties.camel_parallelProcessing?c]"[/#if]
[#if properties.camel_optimisticLocking??]optimisticLocking="[=properties.camel_optimisticLocking?c]"[/#if]
strategyRef="[=properties.camel_strategyRef]"
[#if properties.camel_aggregationRepositoryRef?? && properties.camel_aggregationRepositoryRef.factoryId != "aggregation-repository-camel-memory"]aggregationRepositoryRef="[=objectId]-aggregation-repo"[/#if]
[#if properties.camel_discardOnCompletionTimeout??]discardOnCompletionTimeout="[=properties.camel_discardOnCompletionTimeout]"[/#if]
[#if properties.camel_completionSize??]completionSize="[=properties.camel_completionSize]"[/#if]
[#if properties.camel_completionInterval??]completionInterval="[=properties.camel_completionInterval]"[/#if]
[#if properties.camel_completionTimeout??]completionTimeout="[=properties.camel_completionTimeout]"[/#if]
[#if properties.camel_completionFromBatchConsumer??]completionFromBatchConsumer="[=properties.camel_completionFromBatchConsumer]"[/#if]
[#if properties.camel_completionOnNewCorrelationGroup??]completionOnNewCorrelationGroup="[=properties.camel_completionOnNewCorrelationGroup]"[/#if]
[#if properties.camel_eagerCheckCompletion??]eagerCheckCompletion="[=properties.camel_eagerCheckCompletion]"[/#if]
xmlns="http://camel.apache.org/schema/blueprint">
<correlationExpression>
[=properties.camel_correlationExpression]
</correlationExpression>
[#if properties.camel_completionPredicate??]
<completionPredicate>
[=properties.camel_completionPredicate]
</completionPredicate>
[/#if]
[#if properties.camel_completionTimeoutExpression??]
<completionTimeoutExpression>
[=properties.camel_completionTimeoutExpression]
</completionTimeoutExpression>
[/#if]
[#if properties.camel_completionSizeExpression??]
<completionSizeExpression>
[=properties.camel_completionSizeExpression]
</completionSizeExpression>
[/#if]
</aggregate>

View File

@ -0,0 +1,2 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<from uri="quartz:[#if properties.groupName??][=properties.groupName]:[/#if][=properties.triggerName][=utils.createQueryString(properties, "camel_", true, [])]" />

View File

@ -0,0 +1,7 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
[#if properties.runExclusive?? && properties.runExclusive && properties.exclusivePrefix??]
[#assign finalExclusivePrefix = properties.exclusivePrefix]
[/#if]
<from uri="[=finalExclusivePrefix!]timer:[=properties.timerName][=utils.createQueryString(properties, "camel_", true, [])]" />

View File

@ -0,0 +1,9 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
<route xmlns="http://camel.apache.org/schema/blueprint" id="[=objectId]">
[#include "templates:model-aggregate/init.ftl"]
[#if properties.routeProperties??]
[#list properties.routeProperties as key, value]
<routeProperty key="[=key]" value="[#if value?is_boolean][=value?c][#else][=value][/#if]" />
[/#list]
[/#if]
</route>

View File

@ -0,0 +1,30 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
[#--
~~~~~~licensing~~~~~~
factory-provider-archetype
==========
Copyright (C) 2020 - 2021 EmDev LLC
==========
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
~~~~~~/licensing~~~~~~
--]
<!--
factoryId: route-callable
factoryType: entaxy.runtime.route
outputType: init
-->

View File

@ -0,0 +1,10 @@
[#ftl attributes={"generated.type":"blueprint"}]
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<camelContext id="route-library-[=objectId]-context" xmlns="http://camel.apache.org/schema/blueprint">
</camelContext>
</blueprint>

View File

@ -0,0 +1,58 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
[#import "templates:object-commons/common-utils.ftl" as utils]
<!-- NOTE: Don't delete! -->
<!-- It needs for quartz because dataSource doesn't has time to registry in jndi-->
<reference id="cache" interface="javax.sql.DataSource" filter="(osgi.jndi.service.name=entaxy.esb.cache)"
availability="mandatory"/>
<bean id="quartz" class="org.apache.camel.component.quartz.QuartzComponent">
<property name="schedulerFactory" ref="factory"/>
</bean>
<bean id="factory" class="org.quartz.impl.StdSchedulerFactory">
<argument>
<props>
<prop key="org.quartz.scheduler.instanceName">[=objectId]</prop>
<prop key="org.quartz.scheduler.instanceId">AUTO</prop>
<prop key="org.quartz.scheduler.jmx.export">true</prop>
<prop key="org.quartz.scheduler.rmi.export">false</prop>
<prop key="org.quartz.scheduler.rmi.proxy">false</prop>
<prop key="org.quartz.scheduler.wrapJobExecutionInUserTransaction">false</prop>
<prop key="org.quartz.scheduler.skipUpdateCheck">true</prop>
<prop key="org.quartz.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.PostgreSQLDelegate</prop>
<prop key="org.quartz.jobStore.isClustered">true</prop>
[#-- don't work on two nodes at the same time --]
[#-- [#if properties.runExclusive?? && properties.runExclusive]--]
[#-- <prop key="org.quartz.jobStore.isClustered">true</prop>--]
[#-- [#else]--]
[#-- <prop key="org.quartz.jobStore.isClustered">false</prop>--]
[#-- [/#if]--]
<prop key="org.quartz.jobStore.clusterCheckinInterval">5000</prop>
<prop key="org.quartz.jobStore.class">org.quartz.impl.jdbcjobstore.JobStoreTX</prop>
<prop key="org.quartz.jobStore.dataSource">cache</prop>
<prop key="org.quartz.dataSource.cache.jndiURL">osgi:service/entaxy.esb.cache</prop>
<prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</prop>
<prop key="org.quartz.threadPool.threadCount">10</prop>
<prop key="org.quartz.threadPool.threadPriority">5</prop>
<prop key="org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread">true</prop>
<prop key="org.quartz.jobStore.misfireThreshold">60000</prop>
</props>
</argument>
</bean>
[#--кластер--]
<route xmlns="http://camel.apache.org/schema/blueprint" id="[=objectId]">
[#include "templates:model-quartz/init.ftl"]
[#if properties.routeProperties??]
[#list properties.routeProperties as key, value]
<routeProperty key="[=key]" value="[#if value?is_boolean][=value?c][#else][=value][/#if]" />
[/#list]
[/#if]
</route>

View File

@ -0,0 +1,18 @@
[#ftl attributes={"generated.type":"blueprint.fragment"}]
[#import "templates:object-commons/common-utils.ftl" as utils]
<reference id="lockService" interface="ru.entaxy.platform.core.support.runtime.service.ServiceHolder"
filter="(internalType=org.jgroups.blocks.locking.LockService)" availability="mandatory"/>
<bean id="[=objectId].clusterService" class="ru.entaxy.platform.core.support.runtime.cluster.JGroupsLockClusterService">
<argument index="0" ref="lockService" />
<property name="id" value="Connector"/>
</bean>
<route xmlns="http://camel.apache.org/schema/blueprint" id="[=objectId]">
[#include "templates:model-timer/init.ftl"]
[#if properties.routeProperties??]
[#list properties.routeProperties as key, value]
<routeProperty key="[=key]" value="[#if value?is_boolean][=value?c][#else][=value][/#if]" />
[/#list]
[/#if]
</route>

View File

@ -0,0 +1,175 @@
ЛИЦЕНЗИЯ ОГРАНИЧЕННОГО ПРИМЕНЕНИЯ
Настоящий документ устанавливает для Пользователя условия применения Базовой (некоммерческой)
версии лицензии для пробного использования программного обеспечения ENTAXY, принадлежащего
Правообладателю Обществу с ограниченной ответственностью "ЕМДЕВ" (ОГРН 1057810026658, ИНН
7813313860, юридический адрес: 197022, Россия, г. Санкт-Петербург, ул. Профессора Попова,
д. 23, литера В, помещение 3Н), расположенной в сети Интернет по адресу
https://www.emdev.ru/about (далее - Компания).
Используя или получая доступ к Программному обеспечению, или нажав «Я согласен с Условиями»
(или аналогичную кнопку или флажок) после загрузки или установки Программного обеспечения,
Пользователь выражает свое согласие на обязательность условий и ограничений, изложенных в
настоящем документе, в противном случае, он должен не использовать или не получать доступ
к Программному обеспечению.
1. ТЕРМИНЫ И ОПРЕДЕЛЕНИЯ
a) ПО Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) в любой ее версии
или редакции, исключительные права на которую принадлежат Правообладателю.
b) Правообладатель (Компания) ООО «ЕМДЕВ», ОГРН 1057810026658, ИНН 7813313860, исключительные
права которого подтверждаются Свидетельством о государственной регистрации в Реестре программ
для ЭВМ № 2021610848 от 19.01.2021 года.
c) Пользователь юридическое или физическое лицо, получившее через скачивание с сайта
https://entaxy.ru или иным образом, дистрибутив ПО, пользующееся ПО.
d) ИС интеллектуальная собственность закреплённое законом исключительное право, а также
личные неимущественные права авторов произведений на результат интеллектуальной деятельности.
e) Подписка это коммерческое предложение Правообладателя, состоящее из Лицензии на использование
ПО и доступа к технической поддержке программного обеспечения на срок Подписки. Подписка
включает предоставление Пользователю неисключительного права использования ПО, в том числе
получение обновлений функционала ПО и безопасности ПО, исправление ошибок ПО и получение
патчей с обновлениями и исправлениями программного обеспечения. Подписка приобретается
Пользователем на период времени, указанный в Сертификате. Количество подписок устанавливается
для каждого Пользователя индивидуально в Сертификате.
f) Сертификат документ, выдаваемый Дистрибъютором или Авторизованным партнёром (Партнёром),
подтверждающий факт приобретения физическим или юридическим лицом Подписки на программное
обеспечение в ограниченном объёме и на определённый период времени.
g) Лицензия (простая (неисключительная) совокупность ограниченных прав использования ПО,
предоставленных Пользователю согласно условиям Подписки.
h) Библиотека совокупность подпрограмм и объектов, используемых для разработки программного
обеспечения.
i) Исходный код текст компьютерной программы на каком-либо языке программирования, состоящий
из одного или нескольких файлов, который может быть прочтён человеком.
j) Объектный код файл (часть машинного кода) с промежуточным представлением отдельного модуля
программы, полученный в результате обработки исходного кода, еще не связанный в полную программу.
Это машинный код для одной конкретной библиотеки или модуля, который будет составлять готовый
продукт.
k) Некоммерческое использование индивидуальное личное использование Пользователем программного
обеспечения с целью обучения работе с Программным обеспечением, для оценки или демонстрации
возможностей Программного обеспечения, при котором, Пользователем не извлекается коммерческая
выгода и/или не идёт в доход денежное вознаграждение при использовании Программного обеспечения.
2. ДОПУСТИМЫЕ СПОСОБЫ ИСПОЛЬЗОВАНИЯ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ
2.1. Правообладатель предоставляет Пользователю ограниченное право использования Программного
обеспечения на условиях простой (неисключительной) лицензии в объёме, ограниченном правом
воспроизведения полной рабочей версии программного обеспечения, новых версий программного обеспечения
в памяти оборудования и его запуска на оборудовании в соответствии со ст. 1280 ГК РФ.
2.2. Право на использование Программного обеспечения, предоставляемое Пользователю, носит
неисключительный характер.
2.3. Пользователю предоставляется всемирная, неисключительная, не подлежащая сублицензированию,
лицензия на ограниченное использование Программного обеспечения.
2.4. Пользователь, имеющий Базовую (некоммерческую) версию лицензии для пробного использования
имеет право приобрести Подписку на программное обеспечение. В этом случае Пользователь обязан
обратиться в службу поддержки Правообладателя по адресу: https://entaxy.ru/ для изменения
вида лицензии с Базовой бесплатной версии на Подписки.
2.5. Срок использования скачанной Пользователем базовой (некоммерческой) версии лицензии для
пробного использования программного обеспечения не ограничен.
2.6. Использование Пользователем настоящего программного обеспечения в целях разработки,
модификации, обновления другого ПО, принадлежащего третьим лицам, а не Правообладателю,
без разрешения Правообладателя не допускается.
3. АВТОРСКОЕ ПРАВО.
3.1. Все авторские права, все права интеллектуальной собственности на Программное обеспечение
и любые его копии принадлежат Правообладателю.
3.2. Все авторские права, все права интеллектуальной собственности в отношении любого контента,
к которому можно получить доступ с помощью Программного обеспечения, является собственностью
соответствующего владельца контента и защищается применимым законодательством об авторском
праве или другими законами и договорами об интеллектуальной собственности.
3.3. Условия использования Программного обеспечения.
Лицензия, предоставленная Пользователю, действительна только в том случае, если Пользователь
придерживается следующих условий:
3.3.1. Принятие уведомлений об авторских правах. Пользователю запрещается удалять или изменять
какие-либо уведомления об авторских правах или лицензиях, которые появляются при использовании
Программного обеспечения или на нем.
3.3.2. Модификация. Пользователю запрещается модифицировать, изменять, декомпилировать,
расшифровывать, дизассемблировать, переводить или реверсировать, перепроектировать
Программное обеспечение.
3.3.3. Распространение. Пользователю запрещается сублицензировать, передавать право использования
ПО или иным образом распространять или предоставлять Программное обеспечение любой третьей стороне.
3.3.4. SaaS. За исключением случаев, когда это разрешено Правообладателем, Пользователю запрещено
использовать Программное обеспечение в коммерческих целях для оказания услуг третьим лицам.
4. ОТВЕТСТВЕННОСТЬ ПРАВООБЛАДАТЕЛЯ ПРИ НАРУШЕНИИ ПОЛЬЗОВАТЕЛЕМ ПРАВ «ИС»
4.1. Правообладатель не несет никаких обязательств в отношении каких-либо претензий к Пользователю
на предмет нарушения последним прав Интеллектуальной собственности, возникших в связи с
использованием Пользователем:
4.1.1. Любых компонентов программного обеспечения с открытым исходным кодом, включенных в
Программное обеспечение;
4.1.2. Любого нарушения правил использования Программного обеспечения, установленного условиями
настоящего соглашения;
4.1.3. Любого использования Программного обеспечения в сочетании с другими ПО, оборудованием,
или данными, не предоставленными Пользователю Правообладателем;
4.1.4. Любого изменения Программного обеспечения любым третьим лицом, а не Правообладателем.
5. НАСТОЯЩИМ ПРАВООБЛАДАТЕЛЬ ЗАЯВЛЯЕТ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ ПОЛЬЗОВАТЕЛЮ
ПО ПРИНЦИПУ «AS IS» - «КАК ЕСТЬ». НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ НЕ ГАРАНТИРУЕТ
И НЕ ОБЕЩАЕТ, ЧТО ПРЕДОСТАВЛЕННОЕ ИМ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ПОДХОДИТЬ ИЛИ НЕ ПОДХОДИТЬ
ДЛЯ КОНКРЕТНЫХ ЦЕЛЕЙ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ ОТВЕЧАТЬ ВСЕМ КОММЕРЧЕСКИМ
И ЛИЧНЫМ СУБЪЕКТИВНЫМ ОЖИДАНИЯМ ПОЛЬЗОВАТЕЛЯ, ЧТО ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ БУДЕТ РАБОТАТЬ
ИСПРАВНО, БЕЗ ТЕХНИЧЕСКИХ ОШИБОК, БЫСТРО И БЕСПЕРЕБОЙНО.
6. ОГРАНИЧЕНИЕ ОТВЕТСТВЕННОСТИ.
НИ ПРИ КАКИХ ОБСТОЯТЕЛЬСТВАХ ПРАВООБЛАДАТЕЛЬ ИЛИ ЕГО АФФИЛЛИРОВАННЫЕ ЛИЦА НЕ НЕСУТ ПЕРЕД ПОЛЬЗОВАТЕЛЕМ
ОТВЕТСТВЕННОСТИ ЗА ЛЮБЫЕ ПРЯМЫЕ ИЛИ КОСВЕННЫЕ УБЫТКИ ПОЛЬЗОВАТЕЛЯ, ЕГО РАСХОДЫ ИЛИ РЕАЛЬНЫЙ УЩЕРБ,
ВКЛЮЧАЯ, ПОМИМО ПРОЧЕГО, ПРОСТОИ; УТРАТУ БИЗНЕСА; УПУЩЕННУЮ ВЫГОДУ; НЕДОПОЛУЧЕННУЮ ПРИБЫЛЬ;
ПОТЕРЮ ИЛИ ПОВРЕЖДЕНИЕ ДАННЫХ, ИМУЩЕСТВА И ИНОЕ.
ОГРАНИЧЕНИЯ ПРИМЕНЯЮТСЯ НЕЗАВИСИМО ОТ ОСНОВАНИЯ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ; В ТОМ ЧИСЛЕ ВСЛЕДСТВИЕ
ДЕЙСТВИЯ ИЛИ БЕЗДЕЙСТВИЯ, НЕБРЕЖНОСТИ, УМЫСЛА, ПРЯМОГО ИЛИ КОСВЕННОГО; НЕОСТОРОЖНОСТИ; ЗАБЛУЖДЕНИЯ;
КЛЕВЕТЫ; НАРУШЕНИЯ КОНФИДЕНЦИАЛЬНОСТИ ИЛИ ПРАВА ИНТЕЛЛЕКТУАЛЬНОЙ СОБСТВЕННОСТИ; ИЛИ ЛЮБОЕ ДРУГОЕ
ОСНОВАНИЕ НАСТУПЛЕНИЯ ОТВЕТСТВЕННОСТИ.
7. ОБЯЗАННОСТЬ ПОЛЬЗОВАТЕЛЯ:
Не осуществлять самостоятельно и (или) с привлечением третьих лиц нижеследующие действия
(включая, но не ограничиваясь) по:
-дизассемблированию и (или) декомпилированию (преобразованию объектного кода в исходный код)
Программного обеспечения;
-модификации Программного обеспечения, в том числе вносить изменения в объектный код, исходный
код Программного обеспечения, за исключением тех изменений, которые вносятся средствами,
включёнными в Программное обеспечение и описанными непосредственно в документации к нему;
-созданию условий для использования Программного обеспечения лицами, не имеющими прав на
использование данного Программного обеспечения, включая (но не ограничиваясь) вмешательство
третьих лиц в функционирование Программного обеспечения, предоставление третьим лицам доступа
к исследованию и (или) замене настроек Программного обеспечения, включая его первичную установку;
-распространению Программного обеспечения в целом или в части (включая приложенную к нему документацию).
8. БИБЛИОТЕКА ПО. ИСПОЛЬЗУЕМЫЕ ПРОГРАММНЫЕ СРЕДСТВА.
8.1. Настоящим, Правообладатель заверяет, что Библиотека программного обеспечения состоит из
лицензионных продуктов, используемых на законных основаниях, а
именно https://entaxy.ru/libs/licenses/root-aggregated.deps.
8.2. Любые программные средства, применяемые Пользователем при работе с ПО, должны быть
совместимы с библиотекой ПО, указанной в п.8.1. настоящего соглашения.
8.3. Перечень внешних модулей ПО, указанный в п.8.1 настоящего соглашения, может изменяться
Правообладателем в одностороннем порядке, в зависимости от выпуска релизов программного обеспечения,
содержащих все изменения и дополнения программного обеспечения.
9. ВНЕСЕНИЕ ИЗМЕНЕНИЙ В ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ.
9.1. Программное обеспечение, интеграционная шина «ЭНТАКСИ» (ENTAXY) является свободно распространяемым
программным обеспечением.
9.2. Пользователь имеет право вносить изменения в исходный код программного обеспечения исключительно
с согласия Правообладателя в порядке предложения изменений/правок/дополнений через механизм
«Pull Requests» в открытом репозитории Правообладателя по адресу: https://git.entaxy.ru/entaxy/entaxy-public.
9.3. Любые изменения программного обеспечения, осуществляемые Пользователем без соблюдения условий
пункта 9.2. настоящего документа, являются нарушением авторских и смежных прав Правообладателя,
прав интеллектуальной собственности Правообладателя и влекут применение к Пользователю мер
ответственности в соответствии с условиями настоящей Лицензии, а также применимого законодательства
Российской Федерации.
10. ЗАКЛЮЧИТЕЛЬНЫЕ ПОЛОЖЕНИЯ.
10.1. В случае нарушения Пользователем любого из условий настоящей Лицензии, Правообладатель имеет
право взыскать с Пользователя любые причинённые таким нарушением убытки, реальный ущерб,
недополученную прибыль, упущенную выгоду, а также в случае нарушения Пользователем условий
пункта 9.2 настоящего соглашения, в том числе, взыскать с Пользователя штраф в размере
2 000 000 (Два миллиона) рублей за каждый установленный случай несанкционированного изменения
исходного или объектного кода Программного обеспечения «Энтакси» (Entaxy).
10.2. В рамках исполнения Пользователем обязательств по настоящей Лицензии, применимое
законодательство Российской Федерации.
10.3. Если какое-либо положение настоящей Лицензии будет признано судом недействительным,
остальные положения будут продолжать своё действие, а Пользователь будет обязан продолжать
исполнять свои обязанности в соответствии с этими положениями.

Some files were not shown because too many files have changed in this diff Show More