release version 1.11.0

This commit is contained in:
2025-07-10 23:47:05 +03:00
parent 5cb6857fa1
commit 8dd9cf9cf2
3082 changed files with 278464 additions and 1833 deletions

View File

@ -4,7 +4,7 @@
<parent>
<groupId>ru.entaxy.esb.platform.runtime.core</groupId>
<artifactId>objects-implementations</artifactId>
<version>1.10.0</version>
<version>1.11.0</version>
</parent>
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations</groupId>
<artifactId>route-implementation</artifactId>

View File

@ -4,7 +4,7 @@
<parent>
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations</groupId>
<artifactId>route-implementation</artifactId>
<version>1.10.0</version>
<version>1.11.0</version>
</parent>
<groupId>ru.entaxy.esb.platform.runtime.core.objects-implementations.route-implementation</groupId>
<artifactId>route-producing</artifactId>
@ -45,6 +45,24 @@
</dependencies>
<build>
<resources>
<!-- globally enable resource filtering -->
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
<!-- then disable it for specific resources -->
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*context.xml</include>
<include>**/*blueprint.xml</include>
<include>**/*.ftl</include>
<include>**/*.xslt</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>

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 - 2025 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 - 2025 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 - 2025 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 - 2025 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 - 2025 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 - 2025 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 - 2025 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 - 2025 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 - 2025 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 - 2025 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 - 2025 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 - 2025 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,161 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2025 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,300 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2025 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:when test="$routeType = 'LISTENER'">
<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 - 2025 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>
<route xmlns="http://camel.apache.org/schema/blueprint">
<xsl:apply-templates select="node()|@*" />
</route>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<route xmlns="http://camel.apache.org/schema/blueprint">
<xsl:apply-templates select="node()|@*" />
</route>
</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 - 2025 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,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2025 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>
<m:map-data mapper="${headers.MAPPER}" map="map1" noDataAction="USE_ORIGIN">
<!-- comment -->
<!-- jsonPath>$.dats</jsonPath -->
</m:map-data>
</entaxy:camel-route>
</entaxy:entaxy-routes>

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2025 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,183 @@
{
"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:xpath",
"m:xslt",
"m:xslt-xalan",
"m:atlasmap",
"m:read-secret",
"m:to-connection",
"m:use-connection",
"m:entaxy-trace",
"m:call-route",
"m:set-log-key",
"m:log",
"m:map-data",
"m:ignite-cache",
"m:cache-read",
"m:cache-write",
"m:set-content",
"m:filter",
"m:threshold-filter"
]
},
"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,104 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2025 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 match="//m:set-operation" exclude-result-prefixes="xsl fn xs local">
<setHeader name="operationName" xmlns="http://camel.apache.org/schema/blueprint">
<constant><xsl:value-of select="./text()" /></constant>
</setHeader>
</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,183 @@
{
"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:xpath",
"m:xslt",
"m:xslt-xalan",
"m:atlasmap",
"m:read-secret",
"m:to-connection",
"m:use-connection",
"m:entaxy-trace",
"m:call-route",
"m:set-log-key",
"m:log",
"m:map-data",
"m:ignite-cache",
"m:cache-read",
"m:cache-write",
"m:set-content",
"m:filter",
"m:threshold-filter"
]
},
"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,104 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2025 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 match="//m:set-operation" exclude-result-prefixes="xsl fn xs local">
<setHeader name="operationName" xmlns="http://camel.apache.org/schema/blueprint">
<constant><xsl:value-of select="./text()" /></constant>
</setHeader>
</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,434 @@
<!--
~~~~~~licensing~~~~~~
route-producing
==========
Copyright (C) 2020 - 2025 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~~~~~~
-->
<!--
Copyright (c) 2001-2009, Evan Lenz
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of Lenz Consulting Group nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Recent changes:
2010-06-10: Added the $force-exclude-all-namespaces parameter
2009-10-19: Added the $exclude-these-namespaces parameter
2009-10-08: Added $att-value parameter and template name to template rule for attributes.
-->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes"/>
<xsl:param name="use-empty-syntax" select="true()"/>
<xsl:param name="exclude-unused-prefixes" select="true()"/>
<xsl:param name="force-exclude-all-namespaces" select="false()"/>
<!-- a node-set; each node's string-value
will be interpreted as a namespace URI to be
excluded from the serialization. -->
<xsl:param name="namespaces-to-exclude" select="/.."/>
<!-- initialized to empty node-set -->
<xsl:param name="start-tag-start" select="'&lt;'"/>
<xsl:param name="start-tag-end" select="'>'"/>
<xsl:param name="empty-tag-end" select="'/>'"/>
<xsl:param name="end-tag-start" select="'&lt;/'"/>
<xsl:param name="end-tag-end" select="'>'"/>
<xsl:param name="space" select="' '"/>
<xsl:param name="ns-decl" select="'xmlns'"/>
<xsl:param name="colon" select="':'"/>
<xsl:param name="equals" select="'='"/>
<xsl:param name="attribute-delimiter" select="'&quot;'"/>
<xsl:param name="comment-start" select="'&lt;!--'"/>
<xsl:param name="comment-end" select="'-->'"/>
<xsl:param name="pi-start" select="'&lt;?'"/>
<xsl:param name="pi-end" select="'?>'"/>
<xsl:template name="xml-to-string">
<xsl:param name="node-set" select="."/>
<xsl:apply-templates select="$node-set" mode="xml-to-string">
<xsl:with-param name="depth" select="1"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template name="xml-to-string-cdata">
<xsl:param name="node-set" select="."/>
<xsl:apply-templates select="$node-set" mode="xml-to-string-cdata">
<xsl:with-param name="depth" select="1"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="/" name="xml-to-string-root-rule">
<xsl:call-template name="xml-to-string"/>
</xsl:template>
<xsl:template match="/" name="xml-to-string-root-rule-cdata">
<xsl:call-template name="xml-to-string-cdata"/>
</xsl:template>
<xsl:template match="/" mode="xml-to-string">
<xsl:param name="depth"/>
<xsl:apply-templates mode="xml-to-string">
<xsl:with-param name="depth" select="$depth"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="/" mode="xml-to-string-cdata">
<xsl:param name="depth"/>
<xsl:apply-templates mode="xml-to-string-cdata">
<xsl:with-param name="depth" select="$depth"/>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="*" mode="xml-to-string">
<xsl:param name="depth"/>
<xsl:variable name="element" select="."/>
<xsl:value-of select="$start-tag-start"/>
<xsl:call-template name="element-name">
<xsl:with-param name="text" select="name()"/>
</xsl:call-template>
<xsl:apply-templates select="@*" mode="xml-to-string"/>
<xsl:if test="not($force-exclude-all-namespaces)">
<xsl:for-each select="namespace::*">
<xsl:call-template name="process-namespace-node">
<xsl:with-param name="element" select="$element"/>
<xsl:with-param name="depth" select="$depth"/>
</xsl:call-template>
</xsl:for-each>
</xsl:if>
<xsl:choose>
<xsl:when test="node() or not($use-empty-syntax)">
<xsl:value-of select="$start-tag-end"/>
<xsl:apply-templates mode="xml-to-string">
<xsl:with-param name="depth" select="$depth + 1"/>
</xsl:apply-templates>
<xsl:value-of select="$end-tag-start"/>
<xsl:call-template name="element-name">
<xsl:with-param name="text" select="name()"/>
</xsl:call-template>
<xsl:value-of select="$end-tag-end"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$empty-tag-end"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="*" mode="xml-to-string-cdata">
<xsl:param name="depth"/>
<xsl:variable name="element" select="."/>
<xsl:value-of select="$start-tag-start"/>
<xsl:call-template name="element-name">
<xsl:with-param name="text" select="name()"/>
</xsl:call-template>
<xsl:apply-templates select="@*" mode="xml-to-string-cdata"/>
<xsl:if test="not($force-exclude-all-namespaces)">
<xsl:for-each select="namespace::*">
<xsl:call-template name="process-namespace-node">
<xsl:with-param name="element" select="$element"/>
<xsl:with-param name="depth" select="$depth"/>
</xsl:call-template>
</xsl:for-each>
</xsl:if>
<xsl:choose>
<xsl:when test="node() or not($use-empty-syntax)">
<xsl:value-of select="$start-tag-end"/>
<xsl:apply-templates mode="xml-to-string-cdata">
<xsl:with-param name="depth" select="$depth + 1"/>
</xsl:apply-templates>
<xsl:value-of select="$end-tag-start"/>
<xsl:call-template name="element-name">
<xsl:with-param name="text" select="name()"/>
</xsl:call-template>
<xsl:value-of select="$end-tag-end"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$empty-tag-end"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="process-namespace-node">
<xsl:param name="element"/>
<xsl:param name="depth"/>
<xsl:variable name="declaredAbove">
<xsl:call-template name="isDeclaredAbove">
<xsl:with-param name="depth" select="$depth - 1"/>
<xsl:with-param name="element" select="$element/.."/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="is-used-on-this-element" select="($element | $element/@*) [namespace-uri() = current()]"/>
<xsl:variable name="is-used-on-a-descendant" select="($element//* | $element//@*)[namespace-uri() = current()]"/>
<xsl:variable name="is-unused" select="not($is-used-on-this-element) and
not($is-used-on-a-descendant)"/>
<xsl:variable name="exclude-ns" select="($is-unused and $exclude-unused-prefixes) or
(. = $namespaces-to-exclude)"/>
<xsl:variable name="force-include" select="$is-used-on-this-element and (. = $namespaces-to-exclude)"/>
<xsl:if test="(name() != 'xml') and ($force-include or (not($exclude-ns) and not(string($declaredAbove))))">
<xsl:value-of select="$space"/>
<xsl:value-of select="$ns-decl"/>
<xsl:if test="name()">
<xsl:value-of select="$colon"/>
<xsl:call-template name="ns-prefix">
<xsl:with-param name="text" select="name()"/>
</xsl:call-template>
</xsl:if>
<xsl:value-of select="$equals"/>
<xsl:value-of select="$attribute-delimiter"/>
<xsl:call-template name="ns-uri">
<xsl:with-param name="text" select="string(.)"/>
</xsl:call-template>
<xsl:value-of select="$attribute-delimiter"/>
</xsl:if>
</xsl:template>
<xsl:template name="isDeclaredAbove">
<xsl:param name="element"/>
<xsl:param name="depth"/>
<xsl:if test="$depth > 0">
<xsl:choose>
<xsl:when test="$element/namespace::*[name(.)=name(current()) and .=current()]">1</xsl:when>
<xsl:when test="$element/namespace::*[name(.)=name(current())]"/>
<xsl:otherwise>
<xsl:call-template name="isDeclaredAbove">
<xsl:with-param name="depth" select="$depth - 1"/>
<xsl:with-param name="element" select="$element/.."/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
<xsl:template match="@*" mode="xml-to-string" name="serialize-attribute">
<xsl:param name="att-value" select="string(.)"/>
<xsl:value-of select="$space"/>
<xsl:call-template name="attribute-name">
<xsl:with-param name="text" select="name()"/>
</xsl:call-template>
<xsl:value-of select="$equals"/>
<xsl:value-of select="$attribute-delimiter"/>
<xsl:call-template name="attribute-value">
<xsl:with-param name="text" select="$att-value"/>
</xsl:call-template>
<xsl:value-of select="$attribute-delimiter"/>
</xsl:template>
<xsl:template match="@*" mode="xml-to-string-cdata" name="serialize-attribute-cdata">
<xsl:param name="att-value" select="string(.)"/>
<xsl:value-of select="$space"/>
<xsl:call-template name="attribute-name">
<xsl:with-param name="text" select="name()"/>
</xsl:call-template>
<xsl:value-of select="$equals"/>
<xsl:value-of select="$attribute-delimiter"/>
<xsl:call-template name="attribute-value">
<xsl:with-param name="text" select="$att-value"/>
</xsl:call-template>
<xsl:value-of select="$attribute-delimiter"/>
</xsl:template>
<xsl:template match="comment()" mode="xml-to-string">
<xsl:value-of select="$comment-start"/>
<xsl:call-template name="comment-text">
<xsl:with-param name="text" select="string(.)"/>
</xsl:call-template>
<xsl:value-of select="$comment-end"/>
</xsl:template>
<xsl:template match="comment()" mode="xml-to-string-cdata">
<xsl:value-of select="$comment-start"/>
<xsl:call-template name="comment-text">
<xsl:with-param name="text" select="string(.)"/>
</xsl:call-template>
<xsl:value-of select="$comment-end"/>
</xsl:template>
<xsl:template match="processing-instruction()" mode="xml-to-string">
<xsl:value-of select="$pi-start"/>
<xsl:call-template name="pi-target">
<xsl:with-param name="text" select="name()"/>
</xsl:call-template>
<xsl:value-of select="$space"/>
<xsl:call-template name="pi-text">
<xsl:with-param name="text" select="string(.)"/>
</xsl:call-template>
<xsl:value-of select="$pi-end"/>
</xsl:template>
<xsl:template match="processing-instruction()" mode="xml-to-string-cdata">
<xsl:value-of select="$pi-start"/>
<xsl:call-template name="pi-target">
<xsl:with-param name="text" select="name()"/>
</xsl:call-template>
<xsl:value-of select="$space"/>
<xsl:call-template name="pi-text">
<xsl:with-param name="text" select="string(.)"/>
</xsl:call-template>
<xsl:value-of select="$pi-end"/>
</xsl:template>
<xsl:template match="text()" mode="xml-to-string">
<xsl:call-template name="text-content">
<xsl:with-param name="text" select="string(.)"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="text()" mode="xml-to-string-cdata">
<xsl:call-template name="text-content">
<xsl:with-param name="text" select="string(.)"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="element-name">
<xsl:param name="text"/>
<xsl:value-of select="$text"/>
</xsl:template>
<xsl:template name="attribute-name">
<xsl:param name="text"/>
<xsl:value-of select="$text"/>
</xsl:template>
<xsl:template name="attribute-value">
<xsl:param name="text"/>
<xsl:variable name="escaped-markup">
<xsl:call-template name="escape-markup-characters">
<xsl:with-param name="text" select="$text"/>
</xsl:call-template>
</xsl:variable>
<xsl:choose>
<xsl:when test="$attribute-delimiter = &quot;'&quot;">
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$escaped-markup"/>
<xsl:with-param name="replace" select="&quot;'&quot;"/>
<xsl:with-param name="with" select="'&amp;apos;'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="$attribute-delimiter = '&quot;'">
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$escaped-markup"/>
<xsl:with-param name="replace" select="'&quot;'"/>
<xsl:with-param name="with" select="'&amp;quot;'"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$escaped-markup"/>
<xsl:with-param name="replace" select="$attribute-delimiter"/>
<xsl:with-param name="with" select="''"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="ns-prefix">
<xsl:param name="text"/>
<xsl:value-of select="$text"/>
</xsl:template>
<xsl:template name="ns-uri">
<xsl:param name="text"/>
<xsl:call-template name="attribute-value">
<xsl:with-param name="text" select="$text"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="text-content">
<xsl:param name="text"/>
<xsl:call-template name="escape-markup-characters">
<xsl:with-param name="text" select="$text"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="pi-target">
<xsl:param name="text"/>
<xsl:value-of select="$text"/>
</xsl:template>
<xsl:template name="pi-text">
<xsl:param name="text"/>
<xsl:value-of select="$text"/>
</xsl:template>
<xsl:template name="comment-text">
<xsl:param name="text"/>
<xsl:value-of select="$text"/>
</xsl:template>
<xsl:template name="escape-markup-characters">
<xsl:param name="text"/>
<xsl:variable name="ampEscaped">
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$text"/>
<xsl:with-param name="replace" select="'&amp;'"/>
<xsl:with-param name="with" select="'&amp;amp;'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="ltEscaped">
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$ampEscaped"/>
<xsl:with-param name="replace" select="'&lt;'"/>
<xsl:with-param name="with" select="'&amp;lt;'"/>
</xsl:call-template>
</xsl:variable>
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="$ltEscaped"/>
<xsl:with-param name="replace" select="']]>'"/>
<xsl:with-param name="with" select="']]&amp;gt;'"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="replace-string">
<xsl:param name="text"/>
<xsl:param name="replace"/>
<xsl:param name="with"/>
<xsl:variable name="stringText" select="string($text)"/>
<xsl:choose>
<xsl:when test="contains($stringText,$replace)">
<xsl:value-of select="substring-before($stringText,$replace)"/>
<xsl:value-of select="$with"/>
<xsl:call-template name="replace-string">
<xsl:with-param name="text" select="substring-after($stringText,$replace)"/>
<xsl:with-param name="replace" select="$replace"/>
<xsl:with-param name="with" select="$with"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$stringText"/>
</xsl:otherwise>
</xsl:choose>
</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,88 @@
{
"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
},
"camel_autoStartScheduler": {
"@TODO": "this feature should work through the Quartz menu item",
"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,97 @@
{
"factory": {
"id": "cookie-handler",
"type": "entaxy.runtime.route.component",
"isAbstract": false,
"parent": "base-object",
"label": "filter",
"group": "producer"
},
"entaxy.runtime.route.component": {},
"fields": {
"camel_cookieHandler": {
"displayName": "Cookie Handler",
"description": "To use a custom org.apache.camel.http.base.cookie.CookieHandler to maintain a HTTP session",
"label": "producer",
"type": "string",
"kind": "parameter",
"required": false,
"isHidden": false,
"group": "producer",
"@TYPEINFO": {
"type": "enum",
"emptyOptionName": "default",
"values": [
"org.apache.camel.http.base.cookie.ExchangeCookieHandler",
"org.apache.camel.http.base.cookie.InstanceCookieHandler",
"custom"
]
},
"@UI": {
"manageDisplayBlocksByValue": true
}
},
"cookieHandlerReference": {
"displayName": "Cookie Handler reference",
"description": "Reference to custom org.apache.camel.http.base.cookie.CookieHandler without leading #",
"label": "producer",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "producer",
"defaultValue": "cookieHandler",
"@UI": {
"transmitAlways": false,
"displayBlocksManagedBy": "camel_cookieHandler",
"displayBlocks": ["custom"],
"required": true
}
},
"__cookieHandlerTemplate": {
"type": "entaxy.runtime.object",
"isRef": true,
"required": true,
"isHidden": true,
"isRefByValueOnly": true,
"@INTERNAL": true,
"defaultValue": {
"type": "entaxy.runtime.object",
"factoryId": "#OWNER#",
"outputType": "cookie-handler",
"scope": "private",
"properties": {
"objectClass": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.camel_cookieHandler}",
"fallbackObject": null,
"lazy": false
}
},
"reference": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.cookieHandlerReference}",
"fallbackObject": null,
"lazy": false
}
}
}
}
}
},
"outputs": {
"init": {
"fields": {
"__cookieHandlerTemplate": {}
},
"scopes": ["private"]
},
"cookie-handler": {
"fields": {
"objectClass": {},
"reference": {}
},
"scopes": ["private"]
}
}
}

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,130 @@
{
"factory": {
"id": "header-filter-strategy",
"type": "entaxy.runtime.route.component",
"isAbstract": false,
"parent": "base-object",
"label": "filter",
"group": "header filter"
},
"entaxy.runtime.route.component": {},
"fields": {
"camel_headerFilterStrategy": {
"displayName": "Header Filter Strategy",
"description": "To use a custom org.apache.camel.spi.HeaderFilterStrategy to filter header to and from Camel message. For more details see <a target=\"_blank\" href=\"https://camel-docs.entaxy.ru/components/${camel-docs.version}/http-component.html\">Camel docs</a>",
"label": "filter",
"type": "string",
"required": false,
"hidden": false,
"group": "header filter",
"##origin": "camel",
"kind": [
"property",
"parameter"
],
"@TYPEINFO": {
"type": "enum",
"emptyOptionName": "default",
"values": [
"org.apache.camel.http.common.HttpHeaderFilterStrategy",
"org.apache.camel.http.common.HttpProtocolHeaderFilterStrategy",
"org.apache.camel.support.DefaultHeaderFilterStrategy",
"custom"
]
},
"@UI": {
"manageDisplayBlocksByValue": true
}
},
"headerFilterStrategyPattern": {
"displayName": "Filter pattern",
"description": "Sets the \"out\" direction filter regular expression. The \"out\" direction is referred to copying headers from Camel message to an external message. If the pattern matches a header, the header will be filtered out.",
"label": "filter",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "header filter",
"defaultValue": "(?i)Camel.+|org\\\\.apache\\\\.camel.+|JMS.+|NTX_.+",
"@UI": {
"transmitAlways": true,
"displayBlocksManagedBy": "camel_headerFilterStrategy",
"displayBlocks": [
"org.apache.camel.support.DefaultHeaderFilterStrategy"
],
"required": true
}
},
"headerFilterStrategyReference": {
"displayName": "Reference",
"description": "Reference to custom org.apache.camel.spi.HeaderFilterStrategy without leading #",
"label": "filter",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "header filter",
"defaultValue": "headerFilterStrategy",
"@UI": {
"transmitAlways": true,
"displayBlocksManagedBy": "camel_headerFilterStrategy",
"displayBlocks": [
"custom"
],
"required": true
}
},
"__headerFilterStrategyTemplate": {
"type": "entaxy.runtime.object",
"isRef": true,
"required": true,
"isHidden": true,
"isRefByValueOnly": true,
"@INTERNAL": true,
"defaultValue": {
"type": "entaxy.runtime.object",
"factoryId": "#OWNER#",
"outputType": "header-filter-strategy",
"scope": "private",
"properties": {
"objectClass": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.camel_headerFilterStrategy}",
"fallbackObject": null,
"lazy": false
}
},
"reference": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.headerFilterStrategyReference}",
"fallbackObject": null,
"lazy": false
}
},
"pattern": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.headerFilterStrategyPattern}",
"fallbackObject": null,
"lazy": false
}
}
}
}
}
},
"outputs": {
"init": {
"fields": {
"__headerFilterStrategyTemplate": {}
},
"scopes": ["private"]
},
"header-filter-strategy": {
"fields": {
"objectClass": {},
"reference": {}
},
"scopes": ["private"]
}
}
}

View File

@ -0,0 +1,97 @@
{
"factory": {
"id": "hostname-verifier",
"type": "entaxy.runtime.route.component",
"isAbstract": false,
"parent": "base-object",
"group": "producer"
},
"entaxy.runtime.route.component": {},
"fields": {
"camel_hostnameVerifier": {
"displayName": "Hostname verifier",
"description": "To use a custom javax.net.ssl.HostnameVerifier",
"label": "producer",
"type": "string",
"kind": "parameter",
"required": false,
"isHidden": false,
"group": "producer",
"@TYPEINFO": {
"type": "enum",
"emptyOptionName": "default",
"values": [
"org.apache.http.conn.ssl.NoopHostnameVerifier",
"org.apache.http.conn.ssl.DefaultHostnameVerifier",
"org.apache.cxf.transport.https.AllowAllHostnameVerifier",
"custom"
]
},
"@UI": {
"manageDisplayBlocksByValue": true
}
},
"hostnameVerifierReference": {
"displayName": "Hostname verifier reference",
"description": "Reference to custom javax.net.ssl.HostnameVerifier without leading #",
"label": "producer",
"type": "string",
"kind": "parameter",
"required": false,
"hidden": false,
"group": "producer",
"defaultValue": "hostnameVerifier",
"@UI": {
"transmitAlways": false,
"displayBlocksManagedBy": "camel_hostnameVerifier",
"displayBlocks": ["custom"],
"required": true
}
},
"__hostnameVerifierTemplate": {
"type": "entaxy.runtime.object",
"isRef": true,
"required": true,
"isHidden": true,
"isRefByValueOnly": true,
"@INTERNAL": true,
"defaultValue": {
"type": "entaxy.runtime.object",
"factoryId": "#OWNER#",
"outputType": "hostname-verifier",
"scope": "private",
"properties": {
"objectClass": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.camel_hostnameVerifier}",
"fallbackObject": null,
"lazy": false
}
},
"reference": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.hostnameVerifierReference}",
"fallbackObject": null,
"lazy": false
}
}
}
}
}
},
"outputs": {
"init": {
"fields": {
"__hostnameVerifierTemplate": {}
},
"scopes": ["private"]
},
"hostname-verifier": {
"fields": {
"objectClass": {},
"reference": {}
},
"scopes": ["private"]
}
}
}

View File

@ -0,0 +1,596 @@
{
"factory": {
"id": "oauth",
"type": "entaxy.runtime.route.component",
"isAbstract": false,
"parent": "base-object",
"label": "authentication",
"group": "oauth"
},
"entaxy.runtime.route.component": {},
"fields": {
"oauthEnable": {
"displayName": "Enable OAuth",
"description": "Enable OAuth processing",
"type": "Boolean",
"required": false,
"group": "oauth",
"defaultValue": false,
"@UI": {
"manageDisplayBlocksByValue": true
}
},
"oauthStatic": {
"displayName": "Static token",
"description": "Static token processing",
"type": "Boolean",
"required": false,
"group": "oauth",
"defaultValue": false,
"@UI": {
"manageDisplayBlocksByValue": true,
"displayBlocksManagedBy": "oauthEnable",
"displayBlocks": [
true
]
}
},
"oauthStaticToken": {
"displayName": "Token",
"description": "",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "",
"@UI": {
"displayBlocksManagedBy": "oauthStatic",
"displayBlocks": [
true
],
"required": true
}
},
"oauthHeader": {
"displayName": "Target header",
"description": "",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "Authorization",
"@UI": {
"transmitAlways": true,
"displayBlocksManagedBy": "oauthEnable",
"displayBlocks": [
true
]
}
},
"oauthHeaderPattern": {
"displayName": "Target header pattern",
"description": "",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "Bearer ${exchangeProperty.oauthToken}",
"@UI": {
"transmitAlways": true,
"displayBlocksManagedBy": "oauthEnable",
"displayBlocks": [
true
]
}
},
"oauthBase64": {
"displayName": "Encode token to base64",
"description": "",
"type": "Boolean",
"required": false,
"group": "oauth",
"defaultValue": false,
"@UI": {
"transmitAlways": true,
"displayBlocksManagedBy": "oauthEnable",
"displayBlocks": [
true
]
}
},
"oauthType": {
"displayName": "Grant type",
"description": "",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"@TYPEINFO": {
"type": "enum",
"emptyOptionName": "NONE",
"values": [
"password",
"client_credentials"
]
},
"@UI": {
"manageDisplayBlocksByValue": true,
"displayBlocksManagedBy": "oauthStatic",
"displayBlocks": [
false
],
"required": true
}
},
"oauthUrlToken": {
"displayName": "URL token",
"description": "",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "",
"@UI": {
"displayBlocksManagedBy": "oauthType",
"displayBlocks": [
"password",
"client_credentials"
],
"required": true
}
},
"oauthUrlRefresh": {
"displayName": "URL refresh",
"description": "If empty use URL token",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "",
"@UI": {
"displayBlocksManagedBy": "oauthType",
"displayBlocks": [
"password",
"client_credentials"
],
"required": false
}
},
"oauthClientId": {
"displayName": "Client Id",
"description": "",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "",
"@UI": {
"displayBlocksManagedBy": "oauthType",
"displayBlocks": [
"password",
"client_credentials"
],
"required": true
}
},
"oauthClientSecret": {
"displayName": "Client secret",
"description": "",
"type": "password",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "",
"@UI": {
"displayBlocksManagedBy": "oauthType",
"displayBlocks": [
"password",
"client_credentials"
],
"required": true
}
},
"oauthUsername": {
"displayName": "Username",
"description": "",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "",
"@UI": {
"displayBlocksManagedBy": "oauthType",
"displayBlocks": [
"password"
],
"required": true
}
},
"oauthPassword": {
"displayName": "Password",
"description": "",
"type": "password",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "",
"@UI": {
"displayBlocksManagedBy": "oauthType",
"displayBlocks": [
"password"
],
"required": true
}
},
"preToken": {
"displayName": "Pre get token",
"type": "xml:route",
"description": "",
"required": false,
"group": "oauth",
"@RESOURCE": {
"endType": "String",
"format": "base64",
"postprocess": [
{
"processor": "component-library"
}
]
},
"defaultValue": {
"@RESOURCE_REF": "entaxy-file-internal:factories/base-object/pre-token.xml",
"@RESOURCE": {
"provider": "entaxy-file-internal",
"format": "base64"
}
},
"@UI": {
"displayBlocksManagedBy": "oauthType",
"displayBlocks": [
"password",
"client_credentials"
],
"required": true
},
"@TYPEINFO": {
"location": "factories/base-object/oauth_${oauthType}/pre-token.xml",
"dependsOn": [
"oauthType"
]
}
},
"preRefresh": {
"displayName": "Pre refresh",
"type": "xml:route",
"description": "",
"required": false,
"group": "oauth",
"@RESOURCE": {
"endType": "String",
"format": "base64",
"postprocess": [
{
"processor": "component-library"
}
]
},
"defaultValue": {
"@RESOURCE_REF": "entaxy-file-internal:factories/base-object/pre-refresh-token.xml",
"@RESOURCE": {
"provider": "entaxy-file-internal",
"format": "base64"
}
},
"@UI": {
"displayBlocksManagedBy": "oauthType",
"displayBlocks": [
"password",
"client_credentials"
],
"required": true
},
"@TYPEINFO": {
"location": "factories/base-object/oauth_${oauthType}/pre-refresh-token.xml",
"dependsOn": [
"oauthType"
]
}
},
"parseResponse": {
"displayName": "Parse response",
"type": "xml:route",
"description": "",
"required": false,
"group": "oauth",
"@RESOURCE": {
"endType": "String",
"format": "base64",
"postprocess": [
{
"processor": "component-library"
}
]
},
"defaultValue": {
"@RESOURCE_REF": "entaxy-file-internal:factories/base-object/parse-token-response.xml",
"@RESOURCE": {
"provider": "entaxy-file-internal",
"format": "base64"
}
},
"@UI": {
"displayBlocksManagedBy": "oauthType",
"displayBlocks": [
"password",
"client_credentials"
],
"required": true
},
"@TYPEINFO": {
"location": "factories/base-object/oauth_${oauthType}/parse-token-response.xml",
"dependsOn": [
"oauthType"
]
}
},
"oauthRefreshPolicy": {
"displayName": "Refresh policy",
"description": "",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"@TYPEINFO": {
"type": "enum",
"emptyOptionName": "no refresh",
"values": [
"expired",
"timer",
"error"
]
},
"@UI": {
"manageDisplayBlocksByValue": true,
"displayBlocksManagedBy": "oauthStatic",
"displayBlocks": [
false
]
}
},
"oauthRequestBeforehand": {
"displayName": "Request beforehand",
"description": "in seconds",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "30",
"@UI": {
"transmitAlways": true,
"displayBlocksManagedBy": "oauthRefreshPolicy",
"displayBlocks": [
"expired"
],
"required": true
}
},
"oauthRefreshTimer": {
"displayName": "Refresh timer",
"description": "",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "270s",
"@UI": {
"transmitAlways": true,
"displayBlocksManagedBy": "oauthRefreshPolicy",
"displayBlocks": [
"timer"
],
"required": true
}
},
"oauthErrorCode": {
"displayName": "Http error codes",
"description": "codes per comma",
"type": "string",
"required": false,
"hidden": false,
"group": "oauth",
"defaultValue": "401",
"@UI": {
"transmitAlways": true,
"displayBlocksManagedBy": "oauthRefreshPolicy",
"displayBlocks": [
"error"
],
"required": true
}
},
"__oauthTemplate": {
"type": "entaxy.runtime.object",
"isRef": true,
"required": true,
"isHidden": true,
"isRefByValueOnly": true,
"@INTERNAL": true,
"defaultValue": {
"type": "entaxy.runtime.object",
"factoryId": "#OWNER#",
"outputType": "oauth-module",
"scope": "private",
"properties": {
"oauthEnable": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthEnable}",
"fallbackObject": null,
"lazy": false
}
},
"oauthStatic": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthStatic}",
"fallbackObject": null,
"lazy": false
}
},
"oauthStaticToken": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthStaticToken}",
"fallbackObject": null,
"lazy": false
}
},
"oauthHeader": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthHeader}",
"fallbackObject": null,
"lazy": false
}
},
"oauthHeaderPattern": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthHeaderPattern}",
"fallbackObject": null,
"lazy": false
}
},
"oauthBase64": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthBase64}",
"fallbackObject": null,
"lazy": false
}
},
"oauthType": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthType}",
"fallbackObject": null,
"lazy": false
}
},
"oauthUrlToken": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthUrlToken}",
"fallbackObject": null,
"lazy": false
}
},
"oauthUrlRefresh": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthUrlRefresh}",
"fallbackObject": null,
"lazy": false
}
},
"oauthClientId": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthClientId}",
"fallbackObject": null,
"lazy": false
}
},
"oauthClientSecret": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthClientSecret}",
"fallbackObject": null,
"lazy": false
}
},
"oauthUsername": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthUsername}",
"fallbackObject": null,
"lazy": false
}
},
"oauthPassword": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthPassword}",
"fallbackObject": null,
"lazy": false
}
},
"oauthRefreshPolicy": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthRefreshPolicy}",
"fallbackObject": null,
"lazy": false
}
},
"oauthRequestBeforehand": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthRequestBeforehand}",
"fallbackObject": null,
"lazy": false
}
},
"oauthRefreshTimer": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthRefreshTimer}",
"fallbackObject": null,
"lazy": false
}
},
"oauthErrorCode": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.oauthErrorCode}",
"fallbackObject": null,
"lazy": false
}
},
"ownerId": {
"@CALCULATED": {
"expression": "${#OWNER#.objectId}",
"fallbackObject": null,
"lazy": false
}
},
"ownerContextId": {
"@CALCULATED": {
"expression": "${#OWNER#.properties.camelContextId}",
"fallbackObject": null,
"lazy": false
}
}
}
}
}
},
"outputs": {
"init": {
"fields": {
"__oauthTemplate": {}
},
"scopes": [
"private"
]
},
"oauth-module": {
"fields": {
"oauthEnable": {},
"oauthStatic": {},
"oauthStaticToken": {},
"oauthHeader": {},
"oauthHeaderPattern": {},
"oauthType": {},
"oauthUrlToken": {},
"oauthUrlRefresh": {},
"oauthClientId": {},
"oauthClientSecret": {},
"oauthUsername": {},
"oauthPassword": {},
"oauthRefreshPolicy": {},
"oauthRequestBeforehand": {},
"oauthRefreshTimer": {},
"oauthErrorCode": {},
"ownerId": {},
"ownerContextId": {}
},
"scopes": [
"private"
]
}
}
}

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": {
"checkChildrenUniqueness": {
"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,181 @@
{
"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,
"immutable": true,
"@TYPEINFO": {
"validation": {
"rules": {
"checkUniquenessByParentFieldValues": true,
"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,48 @@
{
"factory": {
"id": "aggregation-strategy-entaxy-map",
"type": "entaxy.runtime.route.component.aggregation.strategy",
"displayName": "MAP",
"description": "Aggregate exchanges or bodies into a single combined Exchange holding all the aggregated exchanges or bodies in a Map as the message body.",
"isAbstract": false,
"parent": "abstract-aggregation-strategy-camel-simple",
"label": "",
"category": ""
},
"entaxy.runtime.route.component.aggregation.strategy": {
"className": "ru.entaxy.platform.core.support.runtime.camel.aggregation.MapAggregationStrategy",
"beanId": "aggregation-strategy-string"
},
"fields": {
"keySourceHeader": {
"displayName": "Key source header",
"type": "String",
"description": "Set delimiter used for joining aggregated. The delimiter to join with. Default empty String",
"required": true,
"defaultValue": "AGGREGATION_MAP_KEY"
},
"valueType": {
"displayName": "Value type",
"type": "String",
"description": "Set value type",
"required": true,
"@TYPEINFO": {
"type": "enum",
"values": [
"BODY",
"MESSAGE",
"EXCHANGE"
]
},
"defaultValue": "BODY"
}
},
"outputs": {
"init": {
"fields": {
"keySourceHeader": {},
"valueType": {}
}
}
}
}

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,83 @@
{
"factory": {
"id": "route-listener-queue-jms-artemis",
"type": "entaxy.runtime.route",
"parent": "route-listener-queue-jms",
"isAbstract": false,
"description": "Artemis JMS queue listener route",
"displayName": "LISTENER :: QUEUE :: ARTEMIS"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "ANY",
"routeType": "LISTENER"
},
"fields": {
},
"outputs": {
"init": {
"isDefault": true,
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "artemis-connection",
"location": "outputs.consumer.fields",
"prefix": "",
"filter": {
"contained": [
{
"attribute": "##origin",
"values": [
"camel"
]
},
{
"attribute": "group",
"inverse": true,
"values": [
"security"
]
}
]
}
},
{
"sourceFactoryId": "artemis-connector-in",
"location": "fields",
"prefix": "",
"filter": {
"contained": [
{
"attribute": "$key",
"values": [
"queueOrTopicName",
"entaxyOriginConnection",
"camel_consumerPriority"
]
}
]
}
}
],
"queueOrTopicName": {
"group": "general",
"displayName": "Queue name"
},
"camel_consumerPriority": {
"group": "general"
}
},
"config": {
"configurable": false,
"fieldsConfigurableByDefault": true,
"configurableFields": {
"includeNames": [
"queueOrTopicName"
],
"includePatterns": []
}
}
}
}
}

View File

@ -0,0 +1,17 @@
{
"factory": {
"id": "route-listener-queue-jms",
"type": "entaxy.runtime.route",
"parent": "route-listener-queue",
"isAbstract": true,
"description": "Abstract JMS queue listener route"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "ANY",
"routeType": "LISTENER"
},
"fields": {
},
"outputs": {
}
}

View File

@ -0,0 +1,17 @@
{
"factory": {
"id": "route-listener-queue",
"type": "entaxy.runtime.route",
"parent": "route-listener",
"isAbstract": true,
"description": "Abstract queue listener route"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "ANY",
"routeType": "LISTENER"
},
"fields": {
},
"outputs": {
}
}

View File

@ -0,0 +1,17 @@
{
"factory": {
"id": "route-listener",
"type": "entaxy.runtime.route",
"parent": "abstract-route",
"isAbstract": true,
"description": "Abstract listener route"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "ANY",
"routeType": "LISTENER"
},
"fields": {
},
"outputs": {
}
}

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,83 @@
{
"factory": {
"id": "route-subscription-topic-jms-artemis",
"type": "entaxy.runtime.route",
"parent": "route-subscription-topic-jms",
"isAbstract": false,
"description": "Artemis JMS topic listener route",
"displayName": "SUBSCRIPTION :: TOPIC :: ARTEMIS"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "ANY",
"routeType": "LISTENER"
},
"fields": {
},
"outputs": {
"init": {
"isDefault": true,
"fields": {
"@IMPORT": [
{
"sourceFactoryId": "artemis-connection",
"location": "outputs.consumer.fields",
"prefix": "",
"filter": {
"contained": [
{
"attribute": "##origin",
"values": [
"camel"
]
},
{
"attribute": "group",
"inverse": true,
"values": [
"security"
]
}
]
}
},
{
"sourceFactoryId": "artemis-connector-in",
"location": "fields",
"prefix": "",
"filter": {
"contained": [
{
"attribute": "$key",
"values": [
"queueOrTopicName",
"entaxyOriginConnection",
"camel_consumerPriority"
]
}
]
}
}
],
"queueOrTopicName": {
"group": "general",
"displayName": "Topic name"
},
"camel_consumerPriority": {
"group": "general"
}
},
"config": {
"configurable": false,
"fieldsConfigurableByDefault": true,
"configurableFields": {
"includeNames": [
"queueOrTopicName"
],
"includePatterns": []
}
}
}
}
}

View File

@ -0,0 +1,18 @@
{
"factory": {
"id": "route-subscription-topic-jms",
"type": "entaxy.runtime.route",
"parent": "route-subscription-topic",
"isAbstract": true,
"description": "Abstract JMS topic subscription route",
"displayName": "SUBSCRIPTION :: TOPIC :: JMS"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "ANY",
"routeType": "LISTENER"
},
"fields": {
},
"outputs": {
}
}

View File

@ -0,0 +1,17 @@
{
"factory": {
"id": "route-subscription-topic",
"type": "entaxy.runtime.route",
"parent": "route-listener",
"isAbstract": true,
"description": "Abstract topic subscription route"
},
"entaxy.runtime.route": {
"targetRouteContainerType": "ANY",
"routeType": "LISTENER"
},
"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,271 @@
{
"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,
"displayBlocksManagedBy": "camel_sslContextParameters",
"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,
"displayBlocksManagedBy": "camel_sslContextParameters",
"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"
]
},
"@UI": {
"transmitAlways": false,
"displayBlocksManagedBy": "camel_sslContextParameters",
"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,
"displayBlocksManagedBy": "camel_sslContextParameters",
"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,
"displayBlocksManagedBy": "camel_sslContextParameters",
"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"
]
},
"@UI": {
"transmitAlways": false,
"displayBlocksManagedBy": "camel_sslContextParameters",
"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,
"displayBlocksManagedBy": "camel_sslContextParameters",
"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,
"displayBlocksManagedBy": "camel_sslContextParameters",
"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,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<entaxy:object-route id="oauth-parse-token" 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">
<from uri="direct:oauth-parse-token" />
<setProperty name="oauthToken">
<jsonpath>$.access_token</jsonpath>
</setProperty>
<setProperty name="oauthExpiresIn">
<jsonpath>$.expires_in</jsonpath>
</setProperty>
</entaxy:object-route>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<entaxy:object-route id="oauth-pre-refresh" 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">
<from uri="direct:oauth-pre-refresh" />
<setHeader name="Content-Type">
<constant>application/x-www-form-urlencoded</constant>
</setHeader>
<setBody>
<simple>
client_id=${exchangeProperty.oauthClientId}&amp;client_secret=${exchangeProperty.oauthClientSecret}&amp;grant_type=${exchangeProperty.oauthType}
</simple>
</setBody>
</entaxy:object-route>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<entaxy:object-route id="oauth-pre-token" 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">
<from uri="direct:oauth-pre-token" />
<setHeader name="Content-Type">
<constant>application/x-www-form-urlencoded</constant>
</setHeader>
<setBody>
<simple>
client_id=${exchangeProperty.oauthClientId}&amp;client_secret=${exchangeProperty.oauthClientSecret}&amp;grant_type=${exchangeProperty.oauthType}
</simple>
</setBody>
</entaxy:object-route>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<entaxy:object-route id="oauth-parse-token" 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">
<from uri="direct:oauth-parse-token" />
<setProperty name="oauthToken">
<jsonpath>$.access_token</jsonpath>
</setProperty>
<setProperty name="oauthRefreshToken">
<jsonpath>$.refresh_token</jsonpath>
</setProperty>
<setProperty name="oauthExpiresIn">
<jsonpath>$.expires_in</jsonpath>
</setProperty>
</entaxy:object-route>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<entaxy:object-route id="oauth-pre-refresh" 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">
<from uri="direct:oauth-pre-refresh" />
<setHeader name="Content-Type">
<constant>application/x-www-form-urlencoded</constant>
</setHeader>
<setBody>
<simple>
client_id=${exchangeProperty.oauthClientId}&amp;client_secret=${exchangeProperty.oauthClientSecret}&amp;grant_type=${exchangeProperty.oauthType}&amp;refresh_token=${exchangeProperty.oauthRefreshToken}
</simple>
</setBody>
</entaxy:object-route>

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<entaxy:object-route id="oauth-pre-token" 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">
<from uri="direct:oauth-pre-token" />
<setHeader name="Content-Type">
<constant>application/x-www-form-urlencoded</constant>
</setHeader>
<setBody>
<simple>
client_id=${exchangeProperty.oauthClientId}&amp;client_secret=${exchangeProperty.oauthClientSecret}&amp;grant_type=${exchangeProperty.oauthType}&amp;password=${exchangeProperty.oauthPassword}&amp;username=${exchangeProperty.oauthUsername}
</simple>
</setBody>
</entaxy:object-route>

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