KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tirsen > nanning > jelly > AspectRepositoryTag


1 /*
2  * Nanning Aspects
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package com.tirsen.nanning.jelly;
8
9 import com.tirsen.nanning.definition.AspectRepository;
10 import org.apache.commons.jelly.JellyTagException;
11 import org.apache.commons.jelly.TagSupport;
12 import org.apache.commons.jelly.XMLOutput;
13
14 /**
15  * TODO document AspectRepositoryTag
16  *
17  * <!-- $Id: AspectRepositoryTag.java,v 1.7 2003/05/11 13:40:52 tirsen Exp $ -->
18  *
19  * @author $Author: tirsen $
20  * @version $Revision: 1.7 $
21  */

22 public class AspectRepositoryTag extends TagSupport {
23     private String JavaDoc id = "default";
24     private AspectRepository aspectRepository;
25
26     public void setId(String JavaDoc id) {
27         this.id = id;
28     }
29
30     public AspectRepository getAspectRepository() {
31         return aspectRepository;
32     }
33
34     public void doTag(XMLOutput xmlOutput) throws JellyTagException {
35         aspectRepository = new AspectRepository();
36         invokeBody(xmlOutput);
37         getContext().setVariable(id, "parent", aspectRepository);
38     }
39 }
40
Popular Tags