Search in sources :

Example 1 with ProducerInvocationContextMapperFactory

use of org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerInvocationContextMapperFactory 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;
}
Also used : ProducerInvocationContextMapperFactory(org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerInvocationContextMapperFactory) ProducerArgumentsMapperFactory(org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerArgumentsMapperFactory) ConsumerInvocationContextMapperFactory(org.apache.servicecomb.swagger.invocation.arguments.consumer.ConsumerInvocationContextMapperFactory) SwaggerEnvironment(org.apache.servicecomb.swagger.engine.SwaggerEnvironment) ConverterMgr(org.apache.servicecomb.swagger.invocation.converter.ConverterMgr) ConsumerArgumentsMapperFactory(org.apache.servicecomb.swagger.invocation.arguments.consumer.ConsumerArgumentsMapperFactory)

Aggregations

SwaggerEnvironment (org.apache.servicecomb.swagger.engine.SwaggerEnvironment)1 ConsumerArgumentsMapperFactory (org.apache.servicecomb.swagger.invocation.arguments.consumer.ConsumerArgumentsMapperFactory)1 ConsumerInvocationContextMapperFactory (org.apache.servicecomb.swagger.invocation.arguments.consumer.ConsumerInvocationContextMapperFactory)1 ProducerArgumentsMapperFactory (org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerArgumentsMapperFactory)1 ProducerInvocationContextMapperFactory (org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerInvocationContextMapperFactory)1 ConverterMgr (org.apache.servicecomb.swagger.invocation.converter.ConverterMgr)1