1 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 22 public class AspectRepositoryTag extends TagSupport { 23 private String id = "default"; 24 private AspectRepository aspectRepository; 25 26 public void setId(String 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 |