User: vharcq
Date: 02/04/02 22:39:12
Modified: core/resources/xdoclet/ejb home-local.j home.j
Log:
Handles create and finder method using forAllHomeMethods of HomeTagsHandler.
Remove FinderTagsHandler (HomeTagsHandler is better)
Adapt test cases to accept new structure
Only 1 test does not pass now.
Revision Changes Path
1.36 +10 -19 xdoclet/core/resources/xdoclet/ejb/home-local.j
Index: home-local.j
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/resources/xdoclet/ejb/home-local.j,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -w -r1.35 -r1.36
--- home-local.j 2 Apr 2002 11:29:42 -0000 1.35
+++ home-local.j 3 Apr 2002 06:39:12 -0000 1.36
@@ -18,26 +18,17 @@
</XDtType:ifIsOfType>
</XDtEjb:ifIsAConcreteEJBean>
- <XDtEjbSession:ifStatelessSession>
- public <XDtEjbIntf:componentInterface type="local"/> create() throws
javax.ejb.CreateException;
- </XDtEjbSession:ifStatelessSession>
- <XDtEjbSession:ifNotStatelessSession>
- <XDtMethod:forAllMethods>
- <XDtEjbHome:ifIsCreateMethod superclasses="false">
-<XDtMethod:methodComment indent="3"/>
- public <XDtEjbIntf:componentInterface type="local"/>
<XDtEjbIntf:interfaceMethodName/>(<XDtParameter:parameterList/>)
<XDtMethod:exceptionList append="javax.ejb.CreateException"/>;
- </XDtEjbHome:ifIsCreateMethod>
- </XDtMethod:forAllMethods>
- </XDtEjbSession:ifNotStatelessSession>
+ <XDtEjbHome:forAllHomeMethods type="local" tagName="ejb:create">
+<XDtComment:comment>TODO we might not have a currentMethod<XDtMethod:methodComment
indent="3"/></XDtComment:comment>
+ public <XDtEjbHome:currentSignature/>
+ throws <XDtEjbHome:currentExceptions/>;
+ </XDtEjbHome:forAllHomeMethods>
- <XDtEjbCmp:ifEntityIsCmp>
- public <XDtEjbIntf:componentInterface type="local"/>
findByPrimaryKey(<XDtEjbPk:pkClass/> pk)
- throws javax.ejb.FinderException;
- </XDtEjbCmp:ifEntityIsCmp>
- <XDtEjbFinder:forAllFinders type="local">
- public <XDtEjbFinder:currentSignature/>
- throws <XDtEjbFinder:currentExceptions/>;
- </XDtEjbFinder:forAllFinders>
+ <XDtEjbHome:forAllHomeMethods type="local" tagName="ejb:finder">
+<XDtComment:comment>TODO we might not have a currentMethod<XDtMethod:methodComment
indent="3"/></XDtComment:comment>
+ public <XDtEjbHome:currentSignature/>
+ throws <XDtEjbHome:currentExceptions/>;
+ </XDtEjbHome:forAllHomeMethods>
<XDtMethod:forAllMethods superclasses="false">
<XDtEjbHome:ifIsHomeMethod>
1.40 +10 -22 xdoclet/core/resources/xdoclet/ejb/home.j
Index: home.j
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/resources/xdoclet/ejb/home.j,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -w -r1.39 -r1.40
--- home.j 2 Apr 2002 11:29:42 -0000 1.39
+++ home.j 3 Apr 2002 06:39:12 -0000 1.40
@@ -18,29 +18,17 @@
</XDtType:ifIsOfType>
</XDtEjb:ifIsAConcreteEJBean>
- <XDtEjbSession:ifStatelessSession>
- public <XDtEjbIntf:componentInterface type="remote"/> create()
- throws javax.ejb.CreateException, java.rmi.RemoteException;
- </XDtEjbSession:ifStatelessSession>
- <XDtEjbSession:ifNotStatelessSession>
- <XDtMethod:forAllMethods>
- <XDtEjbHome:ifIsCreateMethod superclasses="false">
-<XDtMethod:methodComment indent="3"/>
- public <XDtEjbIntf:componentInterface type="remote"/>
<XDtEjbIntf:interfaceMethodName/>(<XDtParameter:parameterList/>)
- <XDtMethod:exceptionList
append="java.rmi.RemoteException,javax.ejb.CreateException"
skip="javax.ejb.EJBException"/>;
- </XDtEjbHome:ifIsCreateMethod>
- </XDtMethod:forAllMethods>
- </XDtEjbSession:ifNotStatelessSession>
+ <XDtEjbHome:forAllHomeMethods type="remote" tagName="ejb:create">
+<XDtComment:comment>TODO we might not have a currentMethod<XDtMethod:methodComment
indent="3"/></XDtComment:comment>
+ public <XDtEjbHome:currentSignature/>
+ throws <XDtEjbHome:currentExceptions/>;
+ </XDtEjbHome:forAllHomeMethods>
- <XDtEjbCmp:ifEntityIsCmp>
- public <XDtEjbIntf:componentInterface type="remote"/>
findByPrimaryKey(<XDtEjbPk:pkClass/> pk)
- throws java.rmi.RemoteException,javax.ejb.FinderException;
- </XDtEjbCmp:ifEntityIsCmp>
- <XDtEjbFinder:forAllFinders type="remote">
-<XDtMethod:methodComment indent="3"/>
- public <XDtEjbFinder:currentSignature/>
- throws <XDtEjbFinder:currentExceptions/>;
- </XDtEjbFinder:forAllFinders>
+ <XDtEjbHome:forAllHomeMethods type="remote" tagName="ejb:finder">
+<XDtComment:comment>TODO we might not have a currentMethod<XDtMethod:methodComment
indent="3"/></XDtComment:comment>
+ public <XDtEjbHome:currentSignature/>
+ throws <XDtEjbHome:currentExceptions/>;
+ </XDtEjbHome:forAllHomeMethods>
<XDtMethod:forAllMethods superclasses="false">
<XDtEjbHome:ifIsHomeMethod>
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel