User: ara_e_w
Date: 02/05/26 13:29:54
Modified: modules/ejb/src/xdoclet/modules/ejb/session Tag:
MODULE_REFACTORING_BRANCH SessionSubTask.java
SessionTagsHandler.java
Log:
xjavadoc javabeaninifiction refactoring
Revision Changes Path
No revision
No revision
1.1.2.10 +6 -6
xdoclet/modules/ejb/src/xdoclet/modules/ejb/session/Attic/SessionSubTask.java
Index: SessionSubTask.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/session/Attic/SessionSubTask.java,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -u -w -r1.1.2.9 -r1.1.2.10
--- SessionSubTask.java 15 May 2002 19:19:29 -0000 1.1.2.9
+++ SessionSubTask.java 26 May 2002 20:29:54 -0000 1.1.2.10
@@ -25,7 +25,7 @@
* @author Ara Abrahamian ([EMAIL PROTECTED])
* @created Oct 15, 2001
* @xdoclet:subtask name="session" parent="xdoclet.modules.ejb.EjbDocletTask"
- * @version $Revision: 1.1.2.9 $
+ * @version $Revision: 1.1.2.10 $
*/
public class SessionSubTask extends AbstractEjbCodeGeneratorSubTask
{
@@ -139,7 +139,7 @@
protected void engineStarted() throws XDocletException
{
System.out.println(Translator.getString("xdoclet.modules.ejb.Messages",
"generating_session_for",
- new String[]{getCurrentClass().qualifiedName()}));
+ new String[]{getCurrentClass().getQualifiedName()}));
}
@@ -155,14 +155,14 @@
Log log = LogUtil.getLog(SessionSubTask.class, "matchesGenerationRules");
if (super.matchesGenerationRules(clazz) == false) {
- log.debug("Skip bean " + clazz.qualifiedName() + " because
super.matchesGenerationRules() returned false.");
+ log.debug("Skip bean " + clazz.getQualifiedName() + " because
super.matchesGenerationRules() returned false.");
return false;
}
- String generate = getCurrentClass().doc().tagAttributeValue("ejb:bean",
"generate", false);
+ String generate =
getCurrentClass().getDoc().getTagAttributeValue("ejb:bean", "generate", false);
if ((generate != null) && (generate.equals("false") ||
generate.equals("no"))) {
- log.debug("Skip session class for " + clazz.qualifiedName() + " because
of generate=" + generate + " flag.");
+ log.debug("Skip session class for " + clazz.getQualifiedName() + "
because of generate=" + generate + " flag.");
return false;
}
@@ -170,7 +170,7 @@
return true;
}
else {
- log.debug("Skip bean " + clazz.qualifiedName() + " because it's not a
concrete bean.");
+ log.debug("Skip bean " + clazz.getQualifiedName() + " because it's not
a concrete bean.");
return false;
}
}
1.1.2.6 +12 -12
xdoclet/modules/ejb/src/xdoclet/modules/ejb/session/Attic/SessionTagsHandler.java
Index: SessionTagsHandler.java
===================================================================
RCS file:
/cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/session/Attic/SessionTagsHandler.java,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -w -r1.1.2.5 -r1.1.2.6
--- SessionTagsHandler.java 15 May 2002 19:19:29 -0000 1.1.2.5
+++ SessionTagsHandler.java 26 May 2002 20:29:54 -0000 1.1.2.6
@@ -23,7 +23,7 @@
* @author Ara Abrahamian ([EMAIL PROTECTED])
* @created Oct 16, 2001
* @xdoclet:taghandler namespace="EjbSession"
- * @version $Revision: 1.1.2.5 $
+ * @version $Revision: 1.1.2.6 $
*/
public class SessionTagsHandler extends EjbTagsHandler
{
@@ -37,7 +37,7 @@
*/
public static String getSessionClassFor(XClass clazz) throws XDocletException
{
- String fileName = clazz.containingPackage().name();
+ String fileName = clazz.getContainingPackage().getName();
String session_name = MessageFormat.format(getSessionClassPattern(), new
Object[]{getShortEjbNameFor(clazz)});
// Fix package name
@@ -96,7 +96,7 @@
return false;
}
- String value = getCurrentClass().doc().tagAttributeValue("ejb:bean",
"type", false);
+ String value = getCurrentClass().getDoc().getTagAttributeValue("ejb:bean",
"type", false);
if (value != null && value.equals("Stateful")) {
return true;
@@ -121,7 +121,7 @@
return false;
}
- String value = getCurrentClass().doc().tagAttributeValue("ejb:bean",
"type", false);
+ String value = getCurrentClass().getDoc().getTagAttributeValue("ejb:bean",
"type", false);
if (value != null) {
return value.equals("Stateless");
@@ -136,7 +136,7 @@
//it's stateful if it has create methods with parameters,
//stateless if has a single ejbCreate() method with no args and
returning void
- XMethod[] methods = clazz.methods();
+ XMethod[] methods = clazz.getMethods();
boolean has_empty_create_method = false;
boolean has_other_create_methods = false;
@@ -144,12 +144,12 @@
XMethod method = methods[i];
//if an empty create method
- if (method.name().equals("ejbCreate") && method.parameters().length
== 0) {
+ if (method.getName().equals("ejbCreate") &&
method.getParameters().length == 0) {
has_empty_create_method = true;
}
- else if (method.name().startsWith("ejbCreate") &&
- method.parameters().length > 0 &&
- method.returnType().qualifiedName().equals("void")) {
+ else if (method.getName().startsWith("ejbCreate") &&
+ method.getParameters().length > 0 &&
+ method.getReturnType().getQualifiedName().equals("void")) {
has_other_create_methods = true;
}
}
@@ -238,7 +238,7 @@
XClass[] classes = null;
try {
- XJavaDoc.getInstance().sourceClasses();
+ XJavaDoc.getInstance().getSourceClasses();
}
catch (XJavaDocException e) {
throw new XDocletException(e, e.getMessage());
@@ -271,7 +271,7 @@
XClass[] classes = null;
try {
- XJavaDoc.getInstance().sourceClasses();
+ XJavaDoc.getInstance().getSourceClasses();
}
catch (XJavaDocException e) {
throw new XDocletException(e, e.getMessage());
@@ -304,7 +304,7 @@
XClass[] classes = null;
try {
- XJavaDoc.getInstance().sourceClasses();
+ XJavaDoc.getInstance().getSourceClasses();
}
catch (XJavaDocException e) {
throw new XDocletException(e, e.getMessage());
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel