1 5 package org.exoplatform.portlet.exomvc.config; 6 7 import org.exoplatform.portlet.exomvc.Page; 8 13 public class GroovyPageConfig extends PageConfig { 14 private String groovyScript_ ; 15 16 public String getGroovyScript() { return groovyScript_ ; } 17 public GroovyPageConfig setGroovyScript(String s) { 18 groovyScript_ = s ; 19 return this ; 20 } 21 22 public Page getPageObject(Configuration configuration) throws Exception { 23 Page page = (Page) configuration.getGroovyResourceManager(). 24 getGroovyManager(). 25 getObject(groovyScript_) ; 26 page.setConfiguration(configuration) ; 27 page.setPageName(getPageName()) ; 28 return page ; 29 } 30 } | Popular Tags |