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

com.ijson.rest.proxy.RestServiceProxyFactoryBean Maven / Gradle / Ivy

There is a newer version: 1.0.7
Show newest version
package com.ijson.rest.proxy;

import lombok.Data;
import org.springframework.beans.factory.FactoryBean;

/**
 * Created by cuiyongxu on 26/12/2016.
 */
@Data
public class RestServiceProxyFactoryBean implements FactoryBean {
    private RestServiceProxyFactory factory;
    private Class type;

    @Override
    public T getObject() throws Exception {
        return factory.newRestServiceProxy(type);
    }

    @Override
    public Class getObjectType() {
        return type;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy