View Javadoc
1   package fr.paris.lutece.util;
2   import java.util.Set;
3   
4   import org.eclipse.microprofile.config.spi.ConfigSource;
5   
6   public class LuteceConfigSource implements ConfigSource{
7   
8   	@Override
9       public int getOrdinal() {
10          return 100;
11      }
12  	
13  	@Override
14  	public String getName() {
15  
16  		return LuteceConfigSource.class.getSimpleName( );
17  	}
18  
19  	@Override
20  	public Set<String> getPropertyNames() {
21  		
22  		return AppInitPropertiesService.getPropertiesAsMap().keySet();
23  	}
24  
25  	@Override
26  	public String getValue(String strProperty) {
27  		
28  		return AppInitPropertiesService.getProperty(strProperty);
29  	}
30  
31  }