[linux-l] Java Frage: globales java.util.Properties Object verfügbar machen
Ivan Villanueva
iv at artificialidea.com
Mi Mai 18 18:01:03 CEST 2005
Hallo Rocco,
> Das Problem ist aber, dass ich beim ersten "getParameter()" die xml Datei
> [...]
> //return the properties object for this simulation
> public static Properties getSimulationProperties() {
> if(simulationProperties == null){
> System.out.println("use initSimulationProperties(String File)
> first");
> System.exit(1);
> }
> return (simulationProperties);
> }
Richtig. Schöner wäre aber mit:
throw new RuntimeException("getSimulationProperties() called before getSimulationProperties(XMLFile)")
Iván
--
Encrypted mail preferred.
GPG Key Id: 3FDBF85F 2004-10-18 Ivan-Fernando Villanueva Barrio
Mehr Informationen über die Mailingliste linux-l