Projekt

Obecné

Profil

« Předchozí | Další » 

Revize dc10a24d

Přidáno uživatelem Tomáš Šimandl před asi 6 roky(ů)

Moved ConfigurationLoader from package loader.configuration to configutation

Zobrazit rozdíly:

sources/src/main/java/cz/zcu/kiv/offscreen/configuration/ConfigurationLoader.java
1
package cz.zcu.kiv.offscreen.configuration;
2

  
3
import javax.servlet.ServletContext;
4

  
5
/**
6
 * 
7
 * @author Jindra Pavlíková <jindra.pav2@seznam.cz>
8
 */
9
public class ConfigurationLoader {
10

  
11
	private static final String PROP_CONFIG_LOCATION = "configLocation";
12

  
13
	/**
14
	 * Get configuration location property from web.xml.
15
	 *
16
	 * @param context App context.
17
	 * @return Storage location path.
18
	 */
19
	public static String getConfigLocation(ServletContext context) {
20
		return context.getInitParameter(PROP_CONFIG_LOCATION);
21
	}
22
}
sources/src/main/java/cz/zcu/kiv/offscreen/loader/configuration/ConfigurationLoader.java
1
package cz.zcu.kiv.offscreen.loader.configuration;
2

  
3
import javax.servlet.ServletContext;
4

  
5
/**
6
 * 
7
 * @author Jindra Pavlíková <jindra.pav2@seznam.cz>
8
 */
9
public class ConfigurationLoader {
10

  
11
	private static final String PROP_CONFIG_LOCATION = "configLocation";
12

  
13
	/**
14
	 * Get configuration location property from web.xml.
15
	 *
16
	 * @param context App context.
17
	 * @return Storage location path.
18
	 */
19
	public static String getConfigLocation(ServletContext context) {
20
		return context.getInitParameter(PROP_CONFIG_LOCATION);
21
	}
22
}
sources/src/main/java/cz/zcu/kiv/offscreen/servlets/api/LoadGraphData.java
6 6
import cz.zcu.kiv.offscreen.graph.loader.DemoDiagramLoader;
7 7
import cz.zcu.kiv.offscreen.graph.loader.GraphJSONDataLoader;
8 8
import cz.zcu.kiv.offscreen.graph.loader.JSONConfigLoader;
9
import cz.zcu.kiv.offscreen.loader.configuration.ConfigurationLoader;
9
import cz.zcu.kiv.offscreen.configuration.ConfigurationLoader;
10 10
import cz.zcu.kiv.offscreen.servlets.BaseServlet;
11 11
import cz.zcu.kiv.offscreen.user.DB;
12 12
import cz.zcu.kiv.offscreen.user.Diagram;

Také k dispozici: Unified diff