/** * Evaluate a script from a file with injected variables and a context object, then return the resultant value. * * @param file The file to process * @param ctx The context to evaluate the script against. * @param vars Variables to be injected * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file, Object ctx, VariableResolverFactory vars) throws IOException { return _evalFile(file, ctx, vars); }
/** * Evaluate a script from a file with injected variables and a context object, then return the resultant value. * * @param file The file to process * @param ctx The context to evaluate the script against. * @param vars Variables to be injected * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file, Object ctx, VariableResolverFactory vars) throws IOException { return _evalFile(file, ctx, vars); }
/** * Evaluate a script from a file with injected variables and a context object, then return the resultant value. * * @param file The file to process * @param ctx The context to evaluate the script against. * @param vars Variables to be injected * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file, Object ctx, VariableResolverFactory vars) throws IOException { return _evalFile(file, ctx, vars); }
public static Object evalFile(File file, String encoding, Object ctx, VariableResolverFactory vars) throws IOException { return _evalFile(file, encoding, ctx, vars); }
private static Object _evalFile(File file, Object ctx, VariableResolverFactory factory) throws IOException { return _evalFile(file, null, ctx, factory); }
public static Object evalFile(File file, String encoding, Object ctx, VariableResolverFactory vars) throws IOException { return _evalFile(file, encoding, ctx, vars); }
/** * Evaluate a script from a file and return the resultant value. * * @param file The file to process * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file) throws IOException { return _evalFile(file, null, new CachedMapVariableResolverFactory(new HashMap())); }
/** * Evaluate a script from a file, against a context object and return the resultant value. * * @param file The file to process * @param ctx The context to evaluate the script against. * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file, Object ctx) throws IOException { return _evalFile(file, ctx, new CachedMapVariableResolverFactory(new HashMap())); }
/** * Evaluate a script from a file and return the resultant value. * * @param file The file to process * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file) throws IOException { return _evalFile(file, null, new CachedMapVariableResolverFactory(new HashMap())); }
/** * Evaluate a script from a file, against a context object and return the resultant value. * * @param file The file to process * @param ctx The context to evaluate the script against. * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file, Object ctx) throws IOException { return _evalFile(file, ctx, new CachedMapVariableResolverFactory(new HashMap())); }
/** * Evaluate a script from a file and return the resultant value. * * @param file The file to process * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file) throws IOException { return _evalFile(file, null, new MapVariableResolverFactory(new HashMap())); }
/** * Evaluate a script from a file with injected variables and return the resultant value. * * @param file The file to process * @param vars Variables to be injected * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file, Map<String, Object> vars) throws IOException { return _evalFile(file, null, new MapVariableResolverFactory(vars)); }
/** * Evaluate a script from a file with injected variables and a context object, then return the resultant value. * * @param file The file to process * @param ctx The context to evaluate the script against. * @param vars Variables to be injected * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file, Object ctx, Map<String, Object> vars) throws IOException { return _evalFile(file, ctx, new MapVariableResolverFactory(vars)); }
/** * Evaluate a script from a file, against a context object and return the resultant value. * * @param file The file to process * @param ctx The context to evaluate the script against. * @return The resultant value * @throws IOException Exception thrown if there is an IO problem accessing the file. */ public static Object evalFile(File file, Object ctx) throws IOException { return _evalFile(file, ctx, new MapVariableResolverFactory(new HashMap())); }
public static Object evalFile(File file, String encoding) throws IOException { return _evalFile(file, encoding, null, new CachedMapVariableResolverFactory(new HashMap())); }
public static Object evalFile(File file, String encoding, Object ctx) throws IOException { return _evalFile(file, encoding, ctx, new CachedMapVariableResolverFactory(new HashMap())); }
public static Object evalFile(File file, String encoding, Object ctx) throws IOException { return _evalFile(file, encoding, ctx, new CachedMapVariableResolverFactory(new HashMap())); }
public static Object evalFile(File file, String encoding, Object ctx, Map<String, Object> vars) throws IOException { return _evalFile(file, encoding, ctx, new MapVariableResolverFactory(vars)); }
public static Object evalFile(File file, String encoding, Object ctx, Map<String, Object> vars) throws IOException { CachingMapVariableResolverFactory factory = new CachingMapVariableResolverFactory(vars); try { return _evalFile(file, encoding, ctx, factory); } finally { factory.externalize(); } }
public static Object evalFile(File file, String encoding, Object ctx, Map<String, Object> vars) throws IOException { CachingMapVariableResolverFactory factory = new CachingMapVariableResolverFactory(vars); try { return _evalFile(file, encoding, ctx, factory); } finally { factory.externalize(); } }