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

com.github.daknin.ftpserver.plugin.spring.DataConnectionConfigurationFactoryBean Maven / Gradle / Ivy

package com.github.daknin.ftpserver.plugin.spring;

import org.apache.ftpserver.DataConnectionConfiguration;
import org.apache.ftpserver.DataConnectionConfigurationFactory;
import org.springframework.beans.factory.FactoryBean;

/**
 * Spring {@link FactoryBean} which extends {@link DataConnectionConfigurationFactory}
 * making it easier to use Spring's standard <bean> tag instead of
 * FtpServer's custom XML tags to configure things.
 *
 * @author Apache MINA Project
 * @see DataConnectionConfigurationFactory
 */
public class DataConnectionConfigurationFactoryBean extends DataConnectionConfigurationFactory implements FactoryBean {

    public Object getObject() throws Exception {
        return createDataConnectionConfiguration();
    }

    public Class getObjectType() {
        return DataConnectionConfiguration.class;
    }

    public boolean isSingleton() {
        return false;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy