|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object xdoclet.template.TemplateTagHandler xdoclet.XDocletTagSupport xdoclet.modules.ejb.env.EnvTagsHandler xdoclet.modules.ejb.env.EnvEjbRefTagsHandler
Field Summary |
Fields inherited from class xdoclet.modules.ejb.env.EnvTagsHandler |
currentMember, currentTag, currentTagType |
Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
Constructor Summary | |
EnvEjbRefTagsHandler()
|
Method Summary | |
String |
componentInterface()
Returns the component interface for the current ejb reference |
protected void |
doGenerate(String template)
Called for each tag in the forTags loop. |
String |
ejbRefId()
Returns unique id for the specified ejb-ref. |
String |
ejbRefJndiName()
Returns the global JNDI name for the current EJB ref. |
protected xjavadoc.XClass |
findEjb(String ejbName)
Finds and returns the class with the specified ejbName. |
void |
forAllEjbRefMembers(String template,
Properties attributes)
Evaluates the body block for each method- and field-level ejb reference. |
void |
forAllEjbRefMethods(String template,
Properties attributes)
Evaluates the body block for each method-level ejb reference. |
void |
forAllEjbRefs(String template,
Properties attributes)
Evaluates the body block for each ejb reference. |
String |
homeInterface()
Returns the home interface for the current ejb reference |
void |
ifLocalEjbRef(String template)
Generates code if the ejb-ref is local |
void |
ifRemoteEjbRef(String template)
Generates code if the ejb-ref is local |
protected boolean |
isLocalEjbRef(xjavadoc.XTag ejbRefTag)
Return true if the ejb-ref is local |
protected boolean |
isRemoteEjbRef(xjavadoc.XTag ejbRefTag)
Return true if the ejb-ref is remote |
String |
name(Properties attributes)
Returns the name parameter value for the current tag. |
protected void |
storeReferringClassId()
Stores the id of current EJB for further use by other tags in referringClassId attribute. |
Methods inherited from class xdoclet.modules.ejb.env.EnvTagsHandler |
forAllMemberTags, forAllMethodTags, forAllTags, forTags, ifHasParam, ifHasTag, ifHasType, ifNotPrimitiveMember, ifParamValueEquals, ifParamValueNotEquals, ifPrimitiveMember, memberName, memberType, methodSignature, paramValue, type |
Methods inherited from class xdoclet.template.TemplateTagHandler |
getXJavaDoc, setXJavaDoc |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EnvEjbRefTagsHandler()
Method Detail |
public String ejbRefId() throws XDocletException
XDocletException
public void forAllEjbRefs(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void forAllEjbRefMembers(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public void forAllEjbRefMethods(String template, Properties attributes) throws XDocletException
template
- The body of the block tagattributes
- The attributes of the template tag
XDocletException
public String ejbRefJndiName() throws XDocletException
XDocletException
public void ifLocalEjbRef(String template) throws XDocletException
template
-
XDocletException
public void ifRemoteEjbRef(String template) throws XDocletException
template
-
XDocletException
public String name(Properties attributes) throws XDocletException
EnvTagsHandler
name
in class EnvTagsHandler
attributes
- the attributes
XDocletException
- if an error occurespublic String homeInterface() throws XDocletException
XDocletException
- if an error occurespublic String componentInterface() throws XDocletException
XDocletException
- if an error occuresprotected boolean isLocalEjbRef(xjavadoc.XTag ejbRefTag) throws XDocletException
ejbRefTag
-
XDocletException
protected boolean isRemoteEjbRef(xjavadoc.XTag ejbRefTag) throws XDocletException
ejbRefTag
-
XDocletException
protected void doGenerate(String template) throws XDocletException
EnvTagsHandler
forTags
loop. The default behaviour is to call generate(template)
doGenerate
in class EnvTagsHandler
template
- the template
XDocletException
- if an error occuresprotected void storeReferringClassId() throws XDocletException
XDocletException
protected xjavadoc.XClass findEjb(String ejbName) throws XDocletException
ejbName
- Description of Parameter
XDocletException
|
http://xdoclet.sourceforge.net/ | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |