KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > portlet > exomvc > config > GroovyPageConfig


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.portlet.exomvc.config;
6
7 import org.exoplatform.portlet.exomvc.Page;
8 /**
9  * @author Tuan Nguyen (tuan08@users.sourceforge.net)
10  * @since Nov 11, 2004
11  * @version $Id$
12  */

13 public class GroovyPageConfig extends PageConfig {
14   private String JavaDoc groovyScript_ ;
15   
16   public String JavaDoc getGroovyScript() { return groovyScript_ ; }
17   public GroovyPageConfig setGroovyScript(String JavaDoc s) {
18     groovyScript_ = s ;
19     return this ;
20   }
21   
22   public Page getPageObject(Configuration configuration) throws Exception JavaDoc {
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