Subversion Repositories SmartDukaan

Rev

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

Rev 22171 Rev 22172
Line 30... Line 30...
30
	private static final String VELOCITY_PATH_SUFFIX=".vm";
30
	private static final String VELOCITY_PATH_SUFFIX=".vm";
31
	private static final String MESSAGE_PATH_SOURCE_NAME="classpath:message";
31
	private static final String MESSAGE_PATH_SOURCE_NAME="classpath:message";
32
	private static final Logger LOGGER=LoggerFactory.getLogger(AppConfig.class);
32
	private static final Logger LOGGER=LoggerFactory.getLogger(AppConfig.class);
33
	private static Resource resource;
33
	private static Resource resource;
34
	
34
	
35
 
-
 
36
	
-
 
37
	@Value("${mongo.host}")
-
 
38
	private String mongoHost;
-
 
39
 
-
 
40
	@Value("${content.mongo.host}")
-
 
41
	private String contentMongoHost;
-
 
42
 
-
 
43
	public static Resource getResource() {
35
	public static Resource getResource() {
44
		return resource;
36
		return resource;
45
	}
37
	}
46
 
38
 
47
	public void setResource(Resource resource) {
39
	public void setResource(Resource resource) {
Line 106... Line 98...
106
 
98
 
107
		propertySourcesPlaceholderConfigurer.setLocation(resource);
99
		propertySourcesPlaceholderConfigurer.setLocation(resource);
108
 
100
 
109
		return propertySourcesPlaceholderConfigurer;
101
		return propertySourcesPlaceholderConfigurer;
110
	}
102
	}
111
	
-
 
112
	@Bean
-
 
113
    public Mongo mongoClient() {
-
 
114
        return new Mongo(mongoHost, contentMongoHost);
-
 
115
    }
-
 
116
 
103
 
117
}
104
}
118
105