xdoclet.modules.ejb.session

Class SessionTagsHandler


public class SessionTagsHandler
extends EjbTagsHandler

Version:
$Revision: 1.13 $
Author:
Ara Abrahamian (ara_e@email.com)
xdoclet.taghandler
namespace = "EjbSession"
created
Oct 16, 2001

Method Summary

void
forAllSessionBeans(String template)
Evaluates the body block for each EJBean derived from SessionBean.
void
forAllStatefulSessionBeans(String template)
Evaluates the body block for each EJBean derived from SessionBean which is stateful.
void
forAllStatelessSessionBeans(String template)
Evaluates the body block for each EJBean derived from SessionBean which is stateless.
static String
getSessionClassFor(XClass clazz)
Gets the SessionClassFor attribute of the SessionTagsHandler class
protected static String
getSessionClassPattern()
Gets the SessionClassPattern attribute of the SessionTagsHandler class
void
ifNotStatefulSession(String template)
Evaluate the body block if current class is not of a stateful session bean type.
void
ifNotStatelessSession(String template)
Evaluate the body block if current class is not of an stateless session bean type.
void
ifStatefulSession(String template)
Evaluate the body block if current class is of an stateful session bean type.
void
ifStatelessSession(String template)
Evaluate the body block if current class is of an stateless session bean type.
static boolean
isSession(XClass clazz)
Returns true if clazz is a session bean, false otherwise.
boolean
isStatefulSession(XClass clazz)
Returns true if clazz is a stateful session bean, false otherwise.
boolean
isStatelessSession(XClass clazz)
Returns true if clazz is a stateless session bean, false otherwise.
String
sessionClass()
Returns the name of generated session class.

Method Details

forAllSessionBeans

public void forAllSessionBeans(String template)
            throws xdoclet.XDocletException
Evaluates the body block for each EJBean derived from SessionBean.
Parameters:
template - The body of the block tag
Throws:
xdoclet.XDocletException -
See Also:
isSession(xjavadoc.XClass)
doc.tag
type = "block"

forAllStatefulSessionBeans

public void forAllStatefulSessionBeans(String template)
            throws xdoclet.XDocletException
Evaluates the body block for each EJBean derived from SessionBean which is stateful.
Parameters:
template - The body of the block tag
Throws:
xdoclet.XDocletException -
See Also:
isStatefulSession(xjavadoc.XClass)
doc.tag
type = "block"

forAllStatelessSessionBeans

public void forAllStatelessSessionBeans(String template)
            throws xdoclet.XDocletException
Evaluates the body block for each EJBean derived from SessionBean which is stateless.
Parameters:
template - The body of the block tag
Throws:
xdoclet.XDocletException -
See Also:
isStatelessSession(xjavadoc.XClass)
doc.tag
type = "block"

getSessionClassFor

public static String getSessionClassFor(XClass clazz)
Gets the SessionClassFor attribute of the SessionTagsHandler class
Parameters:
clazz - Describe what the parameter does
Returns:
The SessionClassFor value

getSessionClassPattern

protected static String getSessionClassPattern()
Gets the SessionClassPattern attribute of the SessionTagsHandler class
Returns:
The SessionClassPattern value

ifNotStatefulSession

public void ifNotStatefulSession(String template)
            throws xdoclet.XDocletException
Evaluate the body block if current class is not of a stateful session bean type.
Parameters:
template - The body of the block tag
Throws:
xdoclet.XDocletException -
See Also:
isStatefulSession(xjavadoc.XClass)
doc.tag
type = "block"

ifNotStatelessSession

public void ifNotStatelessSession(String template)
            throws xdoclet.XDocletException
Evaluate the body block if current class is not of an stateless session bean type.
Parameters:
template - The body of the block tag
Throws:
xdoclet.XDocletException -
See Also:
isStatelessSession(xjavadoc.XClass)
doc.tag
type = "block"

ifStatefulSession

public void ifStatefulSession(String template)
            throws xdoclet.XDocletException
Evaluate the body block if current class is of an stateful session bean type.
Parameters:
template - The body of the block tag
Throws:
xdoclet.XDocletException -
See Also:
isStatefulSession(xjavadoc.XClass)
doc.tag
type = "block"

ifStatelessSession

public void ifStatelessSession(String template)
            throws xdoclet.XDocletException
Evaluate the body block if current class is of an stateless session bean type.
Parameters:
template - The body of the block tag
Throws:
xdoclet.XDocletException -
See Also:
isStatelessSession(xjavadoc.XClass)
doc.tag
type = "block"

isSession

public static boolean isSession(XClass clazz)
Returns true if clazz is a session bean, false otherwise.
Parameters:
clazz - Description of Parameter
Returns:
The Session value

isStatefulSession

public boolean isStatefulSession(XClass clazz)
            throws xdoclet.XDocletException
Returns true if clazz is a stateful session bean, false otherwise. Entity type is determined by looking at the ejb:bean's type parameter.
Parameters:
clazz - Description of Parameter
Returns:
The StatefulSession value
Throws:
xdoclet.XDocletException -

isStatelessSession

public boolean isStatelessSession(XClass clazz)
            throws xdoclet.XDocletException
Returns true if clazz is a stateless session bean, false otherwise. Entity type is determined by looking at the ejb:bean's type parameter.
Parameters:
clazz - Description of Parameter
Returns:
The StatelessSession value
Throws:
xdoclet.XDocletException -

sessionClass

public String sessionClass()
            throws xdoclet.XDocletException
Returns the name of generated session class.
Returns:
The name of generated session class.
Throws:
xdoclet.XDocletException -
doc.tag
type = "content"