import org.springframework.context.annotation.Bean;\r
import org.springframework.context.annotation.Configuration;\r
import org.springframework.context.annotation.PropertySource;\r
+import org.springframework.context.annotation.PropertySources;\r
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;\r
\r
/**\r
* The Class AsdcClientConfiguration.\r
*/\r
@Configuration\r
-@PropertySource(value="${container.classpath:}/WEB-INF/conf/asdc.properties")\r
+\r
+@PropertySources({\r
+ @PropertySource(value="asdc.properties", ignoreResourceNotFound = true),\r
+ @PropertySource(value="${container.classpath:}/WEB-INF/conf/asdc.properties", ignoreResourceNotFound = true)\r
+})\r
public class AsdcClientConfiguration {\r
- \r
- @Bean \r
- public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { \r
- return new PropertySourcesPlaceholderConfigurer(); \r
+\r
+ @Bean\r
+ public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {\r
+ return new PropertySourcesPlaceholderConfigurer();\r
}\r
\r
@Value("${asdc.client.type}")\r
private AsdcClientType asdcClientType;\r
- \r
+\r
/** The asdc client host. */\r
@Value("${asdc.client.rest.host}")\r
private String asdcClientHost;\r
- \r
+\r
/** The asdc client port. */\r
@Value("${asdc.client.rest.port}")\r
private int asdcClientPort;\r
- \r
+\r
/** The asdc client auth. */\r
@Value("${asdc.client.rest.auth}")\r
public String asdcClientAuth;\r
/** The asdc client protocol. */\r
@Value("${asdc.client.rest.protocol}")\r
public String asdcClientProtocol;\r
- \r
+\r
/**\r
* Gets the asdc client type.\r
*\r
public String getAsdcClientProtocol() {\r
return asdcClientProtocol;\r
}\r
- \r
+\r
/**\r
* The Enum AsdcClientType.\r
*/\r
public enum AsdcClientType {\r
- \r
+\r
/** The in memory. */\r
IN_MEMORY,\r
- \r
+\r
/** The rest. */\r
- REST\r
+ REST,\r
+\r
+ /** The local. */\r
+ LOCAL\r
}\r
}\r