KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > jboss > web > JBossWebTagsHandler


1 /*
2  * Copyright (c) 2001, 2002 The XDoclet team
3  * All rights reserved.
4  */

5 package xdoclet.modules.jboss.web;
6
7 import xdoclet.XDocletException;
8 import xdoclet.tagshandler.ClassTagsHandler;
9
10 /**
11  * @author Marcus Brito (pazu@animegaiden.com.br)
12  * @created September 08, 2002
13  * @modified Jon Barnett (jbarnett@pobox.com)
14  * @xdoclet.taghandler namespace="JBossWeb"
15  * @version $Revision: 1.5 $
16  */

17 public class JBossWebTagsHandler extends ClassTagsHandler
18 {
19     /**
20      * Iterates over all \@jboss.resource-ref tags.
21      *
22      * @param template The body of the block tag
23      * @throws XDocletException if something goes wrong
24      */

25     public void forAllResourceRefs(String JavaDoc template) throws XDocletException
26     {
27         ClassTagsHandler.forAllDistinctClassTags(getEngine(), template, "jboss.resource-ref", "res-ref-name");
28     }
29
30     /**
31      * Iterates over all \@jboss.ejb-ref-jndi tags.
32      *
33      * @param template The body of the block tag
34      * @throws XDocletException if something goes wrong
35      */

36     public void forAllEjbRefs(String JavaDoc template) throws XDocletException
37     {
38         ClassTagsHandler.forAllDistinctClassTags(getEngine(), template, "jboss.ejb-ref-jndi", "ref-name");
39     }
40
41     /**
42      * Iterates over all \@jboss.ejb-local-ref tags.
43      *
44      * @param template The body of the block tag
45      * @throws XDocletException if something goes wrong
46      */

47     public void forAllLocalRefs(String JavaDoc template) throws XDocletException
48     {
49         ClassTagsHandler.forAllDistinctClassTags(getEngine(), template, "jboss.ejb-local-ref", "ref-name");
50     }
51
52     public void forAllResourceEnvRefs(String JavaDoc template) throws XDocletException
53     {
54         ClassTagsHandler.forAllDistinctClassTags(getEngine(), template, "jboss:resource-env-ref", "resource-env-ref-name");
55     }
56
57     public void forAllDepends(String JavaDoc template) throws XDocletException
58     {
59         ClassTagsHandler.forAllDistinctClassTags(getEngine(), template, "jboss.depends", "name");
60     }
61 }
62
Popular Tags