KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > kohsuke > stapler > jelly > ParentScopeTag


1 package org.kohsuke.stapler.jelly;
2
3 import org.apache.commons.jelly.JellyTagException;
4 import org.apache.commons.jelly.TagSupport;
5 import org.apache.commons.jelly.XMLOutput;
6
7 /**
8  * Executes the body in the parent scope.
9  * This is useful for creating a 'local' scope.
10  *
11  * @author Kohsuke Kawaguchi
12  */

13 public class ParentScopeTag extends TagSupport {
14     public void doTag(XMLOutput output) throws JellyTagException {
15         getBody().run(context.getParent(), output);
16     }
17 }
18
Popular Tags