use of org.apache.servicecomb.swagger.invocation.arguments.consumer.ConsumerInvocationContextMapperFactory in project incubator-servicecomb-java-chassis by apache.
the class BootstrapNormal method boot.
public SwaggerEnvironment boot() {
SwaggerEnvironment env = new SwaggerEnvironment();
ConverterMgr converterMgr = new ConverterMgr();
ProducerArgumentsMapperFactory producerArgumentsFactory = new ProducerArgumentsMapperFactory();
producerArgumentsFactory.setFactoryList(Arrays.asList(new ProducerInvocationContextMapperFactory()));
producerArgumentsFactory.setConverterMgr(converterMgr);
env.setProducerArgumentsFactory(producerArgumentsFactory);
ConsumerArgumentsMapperFactory consumerArgumentsFactory = new ConsumerArgumentsMapperFactory();
consumerArgumentsFactory.setFactoryList(Arrays.asList(new ConsumerInvocationContextMapperFactory()));
consumerArgumentsFactory.setConverterMgr(converterMgr);
env.setConsumerArgumentsFactory(consumerArgumentsFactory);
env.setConverterMgr(converterMgr);
return env;
}
Aggregations