use of org.apache.knox.gateway.topology.builder.property.interpreter.PropertyInterpreter in project knox by apache.
the class PropertyTopologyBuilder method build.
public Topology build() {
Topology topology = new Topology();
PropertyInterpreter propertyInterpreter = new PropertyInterpreter(topology);
for (Property property : properties) {
try {
propertyInterpreter.interpret(property.getName(), property.getValue());
} catch (InterpretException ie) {
log.failedToInterpretProperty(property.getName(), ie);
throw new IllegalArgumentException(gatewayResources.wrongTopologyDataFormatError());
}
}
return topology;
}
Aggregations