public static Path lookupPath(String string, ELContext env, Path pwd) throws ELException { if (env == null) env = Config.getEnvironment(); string = rewritePathString(string); Expr expr = new ELParser(env, string).parse(); Object obj = expr.evalObject(env); if (obj == null) throw new NullPointerException(L.l("Path '{0}' evaluated to null.", string)); if (obj instanceof Path) return (Path) obj; String value = Expr.toString(obj, env); if (pwd != null) return pwd.lookup(value); else return Vfs.lookup(value); }
public void addPhaseListener(Class cl) { Config.validate(cl, PhaseListener.class); _phaseListenerList.add(cl); }
public static Path lookupPath(String string) throws ELException { return lookupPath(string, Config.getEnvironment(), Vfs.lookup()); }