use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class CamelReactiveStreamsTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
registry.bind("dummy", new ReactiveStreamsTestService("from-registry"));
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class XmlSignatureTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry registry = super.createRegistry();
registry.bind("accessor", getKeyAccessor(keyPair.getPrivate()));
registry.bind("canonicalizationMethod1", getCanonicalizationMethod());
registry.bind("selector", KeySelector.singletonKeySelector(keyPair.getPublic()));
registry.bind("selectorKeyValue", getKeyValueKeySelector());
registry.bind("transformsXPath2", getTransformsXPath2());
registry.bind("transformsXsltXPath", getTransformsXsltXpath());
registry.bind("uriDereferencer", getSameDocumentUriDereferencer());
registry.bind("baseUri", getBaseUri());
registry.bind("cryptoContextProperties", getCrytoContextProperties());
registry.bind("keyAccessorDefault", getDefaultKeyAccessor());
registry.bind("keySelectorDefault", getDefaultKeySelector());
registry.bind("envelopingSignatureChecker", getEnvelopingXmlSignatureChecker());
registry.bind("xmlSignature2MessageWithTimestampProperty", getXmlSignature2MessageWithTimestampdProperty());
registry.bind("validationFailedHandlerIgnoreManifestFailures", getValidationFailedHandlerIgnoreManifestFailures());
registry.bind("signatureProperties", getSignatureProperties());
registry.bind("nodesearchxpath", getNodeSerachXPath());
Map<String, String> namespaceMap = Collections.singletonMap("ns", "http://test");
List<XPathFilterParameterSpec> xpaths = Collections.singletonList(XmlSignatureHelper.getXpathFilter("/ns:root/a/@ID", namespaceMap));
registry.bind("xpathsToIdAttributes", xpaths);
registry.bind("parentXpathBean", getParentXPathBean());
return registry;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class CafeRouteBuilder method createRegistry.
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = new JndiRegistry();
jndi.bind("drinkRouter", new DrinkRouter());
jndi.bind("orderSplitter", new OrderSplitter());
jndi.bind("barista", new Barista());
jndi.bind("waiter", new Waiter());
jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class CafeRouteBuilderTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("drinkRouter", driverRouter);
jndi.bind("orderSplitter", new OrderSplitter());
jndi.bind("barista", new Barista());
jndi.bind("waiter", waiter);
jndi.bind("aggregatorStrategy", new CafeAggregationStrategy());
return jndi;
}
use of org.apache.camel.impl.JndiRegistry in project camel by apache.
the class HttpAsyncDslTest method createRegistry.
@Override
protected JndiRegistry createRegistry() throws Exception {
JndiRegistry jndi = super.createRegistry();
jndi.bind("validateOrder", new MyValidateOrderBean());
jndi.bind("handleOrder", new MyHandleOrderBean());
return jndi;
}
Aggregations