public void addAppClass(String className) throws ConfigurationException { if (this.delegationType == DELEGATION_SYSTEM) { throw new ConfigurationException("Can't extend system CLASSPATH"); } appclasses.add(className); }
public void addAppClassPath(String path) throws ConfigurationException { if (this.delegationType == DELEGATION_SYSTEM) { throw new ConfigurationException("Can't extend system CLASSPATH"); } appclasspath.add(path); }
public void setDelegationType(String delegationType) throws ConfigurationException { if ("strict".equalsIgnoreCase(delegationType)) { this.delegationType = DELEGATION_STRICT; } else if ("relaxed".equalsIgnoreCase(delegationType)) { this.delegationType = DELEGATION_RELAXED; } else if ("delegating".equalsIgnoreCase(delegationType)) { this.delegationType = DELEGATION_DELEGATING; } else if ("system".equalsIgnoreCase(delegationType)) { if ((appclasses.size() != 0) || (appclasspath.size() != 0)) { throw new ConfigurationException("Can't extend system CLASSPATH"); } this.delegationType = DELEGATION_SYSTEM; } else { throw new ConfigurationException("Unknown delegationType [" + delegationType + "]"); } delegationSelected = true; }
} else if ((arg.equals("--appclasspath")) || (arg.equals("-appclasspath")) || (arg.equals("-appcp"))) { if (clConfig == null) { throw new ConfigurationException("Wrong command line argument order"); } else if (arg.equals("--appclass")) { if (clConfig == null) { throw new ConfigurationException("Wrong command line argument order");