|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--xdoclet.template.TemplateTagHandler
|
+--xdoclet.XDocletTagSupport
|
+--xdoclet.ejb.tags.EjbTagsHandler
|
+--xdoclet.ejb.tags.HomeTagsHandler
| Fields inherited from class xdoclet.ejb.tags.EjbTagsHandler |
LOCAL_SUFFIX |
| Fields inherited from class xdoclet.XDocletTagSupport |
FOR_CLASS, FOR_CONSTRUCTOR, FOR_FIELD, FOR_METHOD, PARAMETER_DELIMITER |
| Constructor Summary | |
HomeTagsHandler()
|
|
| Method Summary | |
java.lang.String |
compName(java.util.Properties attributes)
|
java.lang.String |
extendsFrom(java.util.Properties attributes)
Returns the name of the class home interface extends. |
static com.sun.javadoc.MethodDoc |
findFirstCreateMethodFor(com.sun.javadoc.ClassDoc clazz)
|
static java.lang.String |
getCompNameFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String type)
|
protected java.lang.String |
getDependentClassFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String type)
sub-classes which deal with patternized class names return a reasonable value |
protected static java.lang.String |
getHomeClassPattern()
|
static java.lang.String |
getHomeInterface(java.lang.String type,
com.sun.javadoc.ClassDoc clazz)
Similar to InterfaceTagsHandler.getComponentInterface(java.lang.String, com.sun.javadoc.ClassDoc). |
protected static java.lang.String |
getLocalHomeClassPattern()
|
java.lang.String |
homeInterface(java.util.Properties attributes)
Returns the full qualified local or remote home interface name for the bean, depending on the value of type parameter. |
void |
ifIsCreateMethod(java.lang.String template,
java.util.Properties attributes)
Evaluates the body block if current method is a create method. |
void |
ifIsFinderMethod(java.lang.String template,
java.util.Properties attributes)
Evaluates the body block if current method is a ejbFind method. |
void |
ifIsHomeMethod(java.lang.String template,
java.util.Properties attributes)
Evaluates the body block if current method is a home method. |
void |
ifNotRemoveMethod(java.lang.String template)
Evaluates the body block if current method is ejbRemove method. |
static boolean |
isCreateMethod(com.sun.javadoc.MethodDoc method)
Returns true if method is a create method marked with a ejb:create-method tag, false otherwise. |
static boolean |
isFinderMethod(com.sun.javadoc.MethodDoc method)
Returns true if method is an ejbFind method, false otherwise. |
static boolean |
isHomeMethod(com.sun.javadoc.MethodDoc method)
Returns true if method is a home method marked with a ejb:home-method tag, false otherwise. |
static boolean |
isRemoveMethod(com.sun.javadoc.MethodDoc method)
Returns true if method is an ejbRemove method, false otherwise. |
java.lang.String |
jndiName(java.util.Properties attributes)
|
protected boolean |
shouldTraverseSuperclassForDependentClass(com.sun.javadoc.ClassDoc clazz,
java.lang.String tag_name)
|
static java.lang.String |
toCreateMethod(java.lang.String methodName)
Converts ejbCreateblabla to createblabla , the one that should appear in home interface. |
static java.lang.String |
toFinderMethod(java.lang.String methodName)
Converts ejbFindblabla to findblabla , the one that should appear in home interface. |
static java.lang.String |
toHomeMethod(java.lang.String methodName)
Converts ejbHomeblabla to homeblabla , the one that should appear in home interface. |
| Methods inherited from class xdoclet.ejb.tags.EjbTagsHandler |
beanType, choosePackage, concreteFullClassName, ejbExternalRefName, ejbName, ejbRefName, extendsFromFor, forAllBeans, getDependentClassTagName, getEjbIdFor, getEjbNameFor, getEjbSpec, getShortEjbNameFor, hasPermission, hasTransaction, id, ifIsAConcreteEJBean, ifLocalEjb, ifNotLocalEjb, ifNotRemoteEjb, ifRemoteEjb, isAConcreteEJBean, isEjb, isLocalEjb, isOnlyLocalEjb, isOnlyRemoteEjb, isRemoteEjb, prefixWithEjbSlash, shortEjbName, symbolicClassName |
| Methods inherited from class xdoclet.template.TemplateTagHandler |
generate, getContext, getEngine, getParser, setContext, setEngine, setParser |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HomeTagsHandler()
| Method Detail |
public static java.lang.String getHomeInterface(java.lang.String type,
com.sun.javadoc.ClassDoc clazz)
throws XDocletException
InterfaceTagsHandler.getComponentInterface(java.lang.String, com.sun.javadoc.ClassDoc). Relies on the
ejb:home tag, which has the following relevant properties:
type - The type of home interface - can be remote or
local.clazz - Description of ParameterXDocletException - Description of Exception
public static boolean isFinderMethod(com.sun.javadoc.MethodDoc method)
throws XDocletException
method - Description of ParameterXDocletException - Description of Exception
public static boolean isRemoveMethod(com.sun.javadoc.MethodDoc method)
throws XDocletException
method - Description of ParameterXDocletException - Description of Exception
public static boolean isCreateMethod(com.sun.javadoc.MethodDoc method)
throws XDocletException
method - Description of ParameterXDocletException - Description of Exception
public static boolean isHomeMethod(com.sun.javadoc.MethodDoc method)
throws XDocletException
method - Description of ParameterXDocletException - Description of Exception
public static java.lang.String getCompNameFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String type)
throws XDocletException
public static java.lang.String toHomeMethod(java.lang.String methodName)
throws XDocletException
methodName - Description of ParameterXDocletException - Description of Exception
public static java.lang.String toCreateMethod(java.lang.String methodName)
throws XDocletException
methodName - Description of ParameterXDocletException - Description of Exception
public static java.lang.String toFinderMethod(java.lang.String methodName)
throws XDocletException
methodName - Description of ParameterXDocletException - Description of Exception
public static com.sun.javadoc.MethodDoc findFirstCreateMethodFor(com.sun.javadoc.ClassDoc clazz)
throws XDocletException
protected static java.lang.String getLocalHomeClassPattern()
protected static java.lang.String getHomeClassPattern()
public java.lang.String homeInterface(java.util.Properties attributes)
throws XDocletException
attributes - The attributes of the template tagXDocletException - Description of Exception
public void ifIsCreateMethod(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of ExceptionisCreateMethod(com.sun.javadoc.MethodDoc)
public void ifIsHomeMethod(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of ExceptionisHomeMethod(com.sun.javadoc.MethodDoc)
public void ifNotRemoveMethod(java.lang.String template)
throws XDocletException
template - The body of the block tagXDocletException - Description of ExceptionisRemoveMethod(com.sun.javadoc.MethodDoc)
public void ifIsFinderMethod(java.lang.String template,
java.util.Properties attributes)
throws XDocletException
template - The body of the block tagattributes - The attributes of the template tagXDocletException - Description of ExceptionisHomeMethod(com.sun.javadoc.MethodDoc)
public java.lang.String compName(java.util.Properties attributes)
throws XDocletException
attributes - The attributes of the template tagXDocletException - Description of Exception
public java.lang.String jndiName(java.util.Properties attributes)
throws XDocletException
attributes - XDocletException - Description of Exception
public java.lang.String extendsFrom(java.util.Properties attributes)
throws XDocletException
attributes - XDocletException - Description of Exception
protected java.lang.String getDependentClassFor(com.sun.javadoc.ClassDoc clazz,
java.lang.String type)
throws XDocletException
EjbTagsHandlergetDependentClassFor in class EjbTagsHandlerxdoclet.ejb.tags.EjbTagsHandlerclazz - the classtype - type value used for view-type of remote/localXDocletException -
protected boolean shouldTraverseSuperclassForDependentClass(com.sun.javadoc.ClassDoc clazz,
java.lang.String tag_name)
throws XDocletException
shouldTraverseSuperclassForDependentClass in class EjbTagsHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||