/** * Creates {@link JellyContext} for compiling view scripts * for classes in this classloader. */ public JellyContext createContext() { JellyContext context = new CustomJellyContext(ROOT_CONTEXT); context.setClassLoader(owner.loader); context.setExportLibraries(false); return context; }
/** * Creates {@link JellyContext} for compiling view scripts * for classes in this classloader. */ public JellyContext createContext() { JellyContext context = new CustomJellyContext(ROOT_CONTEXT); context.setClassLoader(owner.loader); context.setExportLibraries(false); return context; }
newJellyContext.setExportLibraries(false); newJellyContext.setVariable( "attrs", args );
context.setExportLibraries(false); if(this.it!=null) context.setVariable("it",this.it);
protected void runTest() throws Throwable { // create a new child context so that each test case // will have its own variable scopes JellyContext newContext = new JellyContext( context ); // disable inheritence of variables and tag libraries newContext.setExportLibraries(false); newContext.setExport(false); // invoke the test case getBody().run(newContext, output); } };