[Ejtools-cvs] applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb EJBHo
Brought to you by:
letiemble
From: <let...@us...> - 2002-05-30 22:37:03
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb In directory usw-pr-cvs1:/tmp/cvs-serv17595/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb Modified Files: EJBHomeProxy.java EJBObjectProxy.java Log Message: Add support for BeanInfo generation bby XDoclet Index: EJBHomeProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb/EJBHomeProxy.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EJBHomeProxy.java 25 May 2002 20:54:22 -0000 1.6 --- EJBHomeProxy.java 30 May 2002 22:36:59 -0000 1.7 *************** *** 17,20 **** --- 17,21 ---- import javax.ejb.EJBHome; + import javax.naming.*; import javax.rmi.PortableRemoteObject; *************** *** 30,37 **** * @version $Revision$ * @todo Reference to Rickard Öberg ! * @beaninfo:class displayName="Enterprise Java Bean" shortDescription="EJB Home interface" ! * @beaninfo:icons color16="/toolbarButtonGraphics/development/EnterpriseJavaBeanJar16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the EJB Home" ! * @beaninfo:property name="className" class="java.lang.String" displayName="Home interface" shortDescription="Class of EJB Home" */ public class EJBHomeProxy extends JNDIEntry implements InvocationHandler --- 31,39 ---- * @version $Revision$ * @todo Reference to Rickard Öberg ! * @javabean:class displayName="Enterprise Java Bean" shortDescription="EJB Home interface" ! * @javabean:icons color16="/toolbarButtonGraphics/development/EnterpriseJavaBeanJar16.gif" ! * @javabean:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the EJB Home" ! * @javabean:property name="className" class="java.lang.String" displayName="Home interface" shortDescription="Class of EJB Home" ! * @javabean:property name="path" class="java.lang.String" displayName="Full Path" shortDescription="Absolute path of the context" */ public class EJBHomeProxy extends JNDIEntry implements InvocationHandler *************** *** 50,59 **** * Create the proxy by encapsulating the EJB Home interface * ! * @param o The EJB Home interface * @exception Exception Exception in case of errors */ ! public EJBHomeProxy(Object o) throws Exception { // Try to narrow to an EJBHome class home = (EJBHome) PortableRemoteObject.narrow(o, EJBHome.class); --- 52,63 ---- * Create the proxy by encapsulating the EJB Home interface * ! * @param context Description of the Parameter ! * @param jndiName Description of the Parameter * @exception Exception Exception in case of errors */ ! public EJBHomeProxy(Context context, String jndiName) throws Exception { // Try to narrow to an EJBHome class + Object o = context.lookup(jndiName); home = (EJBHome) PortableRemoteObject.narrow(o, EJBHome.class); *************** *** 68,72 **** } ! this.className = homeClass.getName(); // Create the BeanInfo of the home class --- 72,77 ---- } ! setName(jndiName); ! setClassName(homeClass.getName()); // Create the BeanInfo of the home class Index: EJBObjectProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb/EJBObjectProxy.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** EJBObjectProxy.java 25 May 2002 20:54:22 -0000 1.6 --- EJBObjectProxy.java 30 May 2002 22:36:59 -0000 1.7 *************** *** 29,34 **** * @version $Revision$ * @todo Reference to Rickard Öberg ! * @beaninfo:class displayName="Enterprise Java Bean" shortDescription="EJB Remote interface" ! * @beaninfo:icons color16="/toolbarButtonGraphics/development/EnterpriseJavaBean16.gif" */ public class EJBObjectProxy extends JNDIEntry implements InvocationHandler --- 29,34 ---- * @version $Revision$ * @todo Reference to Rickard Öberg ! * @javabean:class displayName="Enterprise Java Bean" shortDescription="EJB Remote interface" ! * @javabean:icons color16="/toolbarButtonGraphics/development/EnterpriseJavaBean16.gif" */ public class EJBObjectProxy extends JNDIEntry implements InvocationHandler |