All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.squaredesk.nova.comm.rpc.RpcRequestProcessorConfiguration Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
/*
 * Copyright (c) Squaredesk GmbH and Oliver Dotzauer.
 *
 * This program is distributed under the squaredesk open source license. See the LICENSE file
 * distributed with this work for additional information regarding copyright ownership. You may also
 * obtain a copy of the license at
 *
 *   https://squaredesk.ch/license/oss/LICENSE
 *
 */

package ch.squaredesk.nova.comm.rpc;

import ch.squaredesk.nova.Nova;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RpcRequestProcessorConfiguration {
    @Autowired
    private Nova nova;

    @Bean
    public RpcRequestProcessor rpcRequestProcessor() {
        return new RpcRequestProcessor(nova.metrics);
    }

    @Bean
    public RpcRequestHandlingBeanPostprocessor rpcRequestHandlingBeanPostprocessor() {
        return new RpcRequestHandlingBeanPostprocessor();
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy