xdoclet.modules.ejb.dd
Class EjbRefTagsHandler
EjbTagsHandlerxdoclet.modules.ejb.dd.EjbRefTagsHandler
public class EjbRefTagsHandler
extends EjbTagsHandler
- refactor ejbRefId properly to account for ejb:bean - it may not be needed anymore.
- refactor storeReferringClassId properly to take ejb:bean into account - may not be needed anymore.
protected String | referringClassId- The id of the EJB referencing another EJB, used for setting up a correct unique id for the ejb-ref.
|
String | ejbRefId()- Returns unique id for the specified ejb-ref.
|
String | ejbRefJndiName()- Returns the global JNDI name for the current EJB ref.
|
protected XClass | findEjb(String ejbName)- Finds and returns the class with the specified ejbName.
|
void | forAllEjbRefs(String template, Properties attributes)- Evaluates the body block for each ejb:ejb-ref defined for the EJB.
|
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(XTag ejbRefTag)- Return true if the ejb-ref is local
|
protected boolean | isRemoteEjbRef(XTag ejbRefTag)- Return true if the ejb-ref is remote
|
protected void | storeReferringClassId()- Stores the id of current EJB for further use by other tags in referringClassId attribute.
|
referringClassId
protected String referringClassId
The id of the EJB referencing another EJB, used for setting up a correct unique id for the ejb-ref.
ejbRefId
public String ejbRefId()
throws xdoclet.XDocletException Returns unique id for the specified ejb-ref. It prefixes it with the referring class's id, then a _ and the id of
the ejb object.
- Description of the Returned Value
xdoclet.XDocletException -
- refactor this properly to account for ejb:bean - it may not be needed anymore.
ejbRefJndiName
public String ejbRefJndiName()
throws xdoclet.XDocletException Returns the global JNDI name for the current EJB ref.
- The JNDI name of current EJB ref.
xdoclet.XDocletException -
findEjb
protected XClass findEjb(String ejbName)
throws xdoclet.XDocletException Finds and returns the class with the specified ejbName. An XDocletException is thrown if not found.
ejbName - Description of Parameter
- Description of the Returned Value
xdoclet.XDocletException -
forAllEjbRefs
public void forAllEjbRefs(String template,
Properties attributes)
throws xdoclet.XDocletException Evaluates the body block for each ejb:ejb-ref defined for the EJB. One of the useful things is does is to lookup
the EJB using the ejb-name parameter of ejb:ejb-ref and fill in other required info.
template - The body of the block tagattributes - The attributes of the template tag
xdoclet.XDocletException -
ifLocalEjbRef
public void ifLocalEjbRef(String template)
throws xdoclet.XDocletException Generates code if the ejb-ref is local
xdoclet.XDocletException -
ifRemoteEjbRef
public void ifRemoteEjbRef(String template)
throws xdoclet.XDocletException Generates code if the ejb-ref is local
xdoclet.XDocletException -
isLocalEjbRef
protected boolean isLocalEjbRef(XTag ejbRefTag)
throws xdoclet.XDocletException Return true if the ejb-ref is local
- true if the ejb-ref is local otherwise false
xdoclet.XDocletException -
isRemoteEjbRef
protected boolean isRemoteEjbRef(XTag ejbRefTag)
throws xdoclet.XDocletException Return true if the ejb-ref is remote
- true if the ejb-ref is remote otherwise false
xdoclet.XDocletException -
storeReferringClassId
protected void storeReferringClassId()
throws xdoclet.XDocletException Stores the id of current EJB for further use by other tags in referringClassId attribute.
xdoclet.XDocletException -
- refactor this properly to take ejb:bean into account - may not be needed anymore.