Subversion Repositories SmartDukaan

Rev

Rev 23506 | Rev 23784 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23506 Rev 23568
Line 1... Line 1...
1
package com.spice.profitmandi.web.config;
1
package com.spice.profitmandi.web.config;
2
 
2
 
3
import java.io.IOException;
3
import java.io.IOException;
4
import java.util.Properties;
4
import java.util.Properties;
5
 
5
 
6
import org.slf4j.Logger;
6
import org.apache.logging.log4j.Logger;
7
import org.slf4j.LoggerFactory;
7
import org.apache.logging.log4j.LogManager;
8
import org.springframework.context.annotation.Bean;
8
import org.springframework.context.annotation.Bean;
9
import org.springframework.context.annotation.ComponentScan;
9
import org.springframework.context.annotation.ComponentScan;
10
import org.springframework.context.annotation.Configuration;
10
import org.springframework.context.annotation.Configuration;
11
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
11
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
12
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
12
import org.springframework.context.support.ReloadableResourceBundleMessageSource;
Line 23... Line 23...
23
public class AppConfig {
23
public class AppConfig {
24
 
24
 
25
	private static final String VELOCITY_PATH_PREFIX="/WEB-INF/views/ftl/";
25
	private static final String VELOCITY_PATH_PREFIX="/WEB-INF/views/ftl/";
26
	private static final String VELOCITY_PATH_SUFFIX=".vm";
26
	private static final String VELOCITY_PATH_SUFFIX=".vm";
27
	private static final String MESSAGE_PATH_SOURCE_NAME="classpath:message";
27
	private static final String MESSAGE_PATH_SOURCE_NAME="classpath:message";
28
	private static final Logger LOGGER=LoggerFactory.getLogger(AppConfig.class);
28
	private static final Logger LOGGER=LogManager.getLogger(AppConfig.class);
29
	private static Resource resource;
29
	private static Resource resource;
30
	
30
	
31
	public static Resource getResource() {
31
	public static Resource getResource() {
32
		return resource;
32
		return resource;
33
	}
33
	}