1 20 package org.apache.cactus.internal.configuration; 21 22 import org.apache.cactus.util.ChainedRuntimeException; 23 24 31 public class BaseConfiguration implements Configuration 32 { 33 38 public static final String CACTUS_CONTEXT_URL_PROPERTY = 39 "cactus.contextURL"; 40 41 45 private static final String CACTUS_INITIALIZER_PROPERTY = 46 "cactus.initializer"; 47 48 51 public String getContextURL() 52 { 53 String contextURL = System.getProperty(CACTUS_CONTEXT_URL_PROPERTY); 56 57 if (contextURL == null) 58 { 59 throw new ChainedRuntimeException("Missing Cactus property [" 60 + CACTUS_CONTEXT_URL_PROPERTY + "]"); 61 } 62 63 return contextURL; 64 } 65 66 71 public String getInitializer() 72 { 73 return System.getProperty(CACTUS_INITIALIZER_PROPERTY); 74 } 75 } 76 | Popular Tags |