Search in sources :

Example 11 with ServiceBinder

use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.

the class ActionKnotVerticle method start.

@Override
public void start() throws Exception {
    LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
    // register the service proxy on event bus
    serviceBinder = new ServiceBinder(getVertx());
    consumer = serviceBinder.setAddress(configuration.address()).register(KnotProxy.class, new ActionKnotProxyImpl(vertx, configuration, new DefaultFormSimplifier()));
}
Also used : DefaultFormSimplifier(io.knotx.knot.action.domain.DefaultFormSimplifier) ServiceBinder(io.vertx.serviceproxy.ServiceBinder) KnotProxy(io.knotx.proxy.KnotProxy)

Example 12 with ServiceBinder

use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.

the class FragmentAssemblerVerticle method start.

@Override
public void start() throws Exception {
    LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
    // register the service proxy on event bus
    serviceBinder = new ServiceBinder(getVertx());
    consumer = serviceBinder.setAddress(configuration.address()).register(KnotProxy.class, new FragmentAssemblerKnotProxyImpl(config()));
}
Also used : FragmentAssemblerKnotProxyImpl(io.knotx.knot.assembler.impl.FragmentAssemblerKnotProxyImpl) ServiceBinder(io.vertx.serviceproxy.ServiceBinder) KnotProxy(io.knotx.proxy.KnotProxy)

Example 13 with ServiceBinder

use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.

the class HandlebarsKnotVerticle method start.

@Override
public void start() throws Exception {
    LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
    // register the service proxy on event bus
    serviceBinder = new ServiceBinder(getVertx());
    consumer = serviceBinder.setAddress(configuration.address()).register(KnotProxy.class, new HandlebarsKnotProxyImpl(configuration));
}
Also used : ServiceBinder(io.vertx.serviceproxy.ServiceBinder) KnotProxy(io.knotx.proxy.KnotProxy) HandlebarsKnotProxyImpl(io.knotx.knot.templating.impl.HandlebarsKnotProxyImpl)

Example 14 with ServiceBinder

use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.

the class HttpActionAdapterVerticle method start.

@Override
public void start() throws Exception {
    LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
    // register the service proxy on event bus
    serviceBinder = new ServiceBinder(getVertx());
    consumer = serviceBinder.setAddress(configuration.getAddress()).register(AdapterProxy.class, new HttpActionAdapterProxyImpl(vertx, configuration));
}
Also used : ServiceBinder(io.vertx.serviceproxy.ServiceBinder) AdapterProxy(io.knotx.proxy.AdapterProxy) HttpActionAdapterProxyImpl(io.knotx.adapter.action.http.impl.HttpActionAdapterProxyImpl)

Example 15 with ServiceBinder

use of io.vertx.serviceproxy.ServiceBinder in project knotx by Cognifide.

the class GatewayKnotVerticle method start.

@Override
public void start() throws Exception {
    LOGGER.info("Starting <{}>", this.getClass().getSimpleName());
    // register the service proxy on event bus
    serviceBinder = new ServiceBinder(getVertx());
    consumer = serviceBinder.setAddress(configuration.getAddress()).register(KnotProxy.class, new GatewayKnotProxyImpl());
}
Also used : ServiceBinder(io.vertx.serviceproxy.ServiceBinder) KnotProxy(io.knotx.proxy.KnotProxy) GatewayKnotProxyImpl(io.knotx.gateway.impl.GatewayKnotProxyImpl)

Aggregations

ServiceBinder (io.vertx.serviceproxy.ServiceBinder)15 KnotProxy (io.knotx.proxy.KnotProxy)8 AdapterProxy (io.knotx.proxy.AdapterProxy)3 RepositoryConnectorProxy (io.knotx.proxy.RepositoryConnectorProxy)2 DatabaseService (com.bob.vertx.webapi.service.DatabaseService)1 Lists (com.google.common.collect.Lists)1 HttpActionAdapterProxyImpl (io.knotx.adapter.action.http.impl.HttpActionAdapterProxyImpl)1 HttpServiceAdapterProxyImpl (io.knotx.adapter.service.http.impl.HttpServiceAdapterProxyImpl)1 AdapterRequest (io.knotx.dataobjects.AdapterRequest)1 AdapterResponse (io.knotx.dataobjects.AdapterResponse)1 ClientResponse (io.knotx.dataobjects.ClientResponse)1 Fragment (io.knotx.dataobjects.Fragment)1 KnotContext (io.knotx.dataobjects.KnotContext)1 GatewayKnotProxyImpl (io.knotx.gateway.impl.GatewayKnotProxyImpl)1 RequestProcessorKnotProxyImpl (io.knotx.gateway.impl.RequestProcessorKnotProxyImpl)1 ResponseProviderKnotProxyImpl (io.knotx.gateway.impl.ResponseProviderKnotProxyImpl)1 MultiMapCollector (io.knotx.http.MultiMapCollector)1 KnotxConfiguration (io.knotx.junit.rule.KnotxConfiguration)1 Logback (io.knotx.junit.rule.Logback)1 TestVertxDeployer (io.knotx.junit.rule.TestVertxDeployer)1