public class VertxConfigDrivenComponentRegistry
extends io.apiman.gateway.engine.impl.ConfigDrivenComponentRegistry
ConfigDrivenComponentRegistry to allow components to be constructed with a Vertx
instance; else the standard mechanisms are fallen back on.ConfigDrivenComponentRegistry| Constructor and Description |
|---|
VertxConfigDrivenComponentRegistry(org.vertx.java.core.Vertx vertx,
VertxEngineConfig engineConfig) |
| Modifier and Type | Method and Description |
|---|---|
<T extends io.apiman.gateway.engine.IComponent> |
createAndRegisterComponent(Class<T> componentType) |
protected <T> T |
createWithVertx(Class<T> type,
VertxEngineConfig engineConfig,
Map<String,String> mapConfig)
Creates components, but allows a
vertx instance to be passed in. |
public VertxConfigDrivenComponentRegistry(org.vertx.java.core.Vertx vertx,
VertxEngineConfig engineConfig)
public <T extends io.apiman.gateway.engine.IComponent> T createAndRegisterComponent(Class<T> componentType) throws io.apiman.gateway.engine.beans.exceptions.ComponentNotFoundException
createAndRegisterComponent in class io.apiman.gateway.engine.impl.ConfigDrivenComponentRegistryio.apiman.gateway.engine.beans.exceptions.ComponentNotFoundExceptionprotected <T> T createWithVertx(Class<T> type, VertxEngineConfig engineConfig, Map<String,String> mapConfig)
vertx instance to be passed in.
Note that we can't have a static vertx object, so we can't override the super method.type - component typeconfig - configuration (if necessary).Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.