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

org.zodiac.autoconfigure.file.PlatformFileAutoConfiguration Maven / Gradle / Ivy

There is a newer version: 1.6.8
Show newest version
package org.zodiac.autoconfigure.file;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.zodiac.core.file.constants.PlatformFileSystemPropertiesConstants;

@SpringBootConfiguration
@ConditionalOnProperty(name = PlatformFileSystemPropertiesConstants.PLATFORM_FILE_ENABLED, havingValue = "true")
public class PlatformFileAutoConfiguration {

    public PlatformFileAutoConfiguration() {
    }

    @Bean
    @ConditionalOnMissingBean
    @ConfigurationProperties(prefix = PlatformFileSystemPropertiesConstants.PLATFORM_FILE_PREFIX)
    protected PlatformFileConfigProperties platformFileConfigProperties() {
        return new PlatformFileConfigProperties();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy