Thread: [Ejtools-cvs] CVS: applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb
Brought to you by:
letiemble
From: Laurent E. <let...@us...> - 2002-05-02 21:06:39
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb In directory usw-pr-cvs1:/tmp/cvs-serv29853/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb Modified Files: EJBHomeProxy.java EJBObjectProxy.java PropertyChanger.java Log Message: Add some JavaDocs Index: EJBHomeProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb/EJBHomeProxy.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** EJBHomeProxy.java 30 Apr 2002 21:13:19 -0000 1.2 --- EJBHomeProxy.java 2 May 2002 20:52:10 -0000 1.3 *************** *** 15,18 **** --- 15,19 ---- import java.util.Collection; import java.util.Iterator; + import javax.ejb.EJBHome; import javax.rmi.PortableRemoteObject; *************** *** 22,47 **** /** ! *Description of the Class * ! * @author letiembl ! * @created 13 décembre 2001 */ public class EJBHomeProxy extends JNDIEntry implements InvocationHandler { ! /**Description of the Field */ protected Class homeClass; ! /**Description of the Field */ protected BeanInfo info; ! /**Description of the Field */ ! protected EJBHome home; ! /** Description of the Field */ protected Object proxy; /** ! *Sets the home attribute of the EJBean object * ! * @param o Description of Parameter ! * @exception Exception Description of Exception */ public EJBHomeProxy(Object o) throws Exception --- 23,48 ---- /** ! * Description of the Class * ! * @author letiembl ! * @created 13 décembre 2001 */ public class EJBHomeProxy extends JNDIEntry implements InvocationHandler { ! /** Description of the Field */ ! protected EJBHome home; ! /** Description of the Field */ protected Class homeClass; ! /** Description of the Field */ protected BeanInfo info; ! /** Description of the Field */ protected Object proxy; /** ! * Sets the home attribute of the EJBean object * ! * @param o Description of Parameter ! * @exception Exception Description of Exception */ public EJBHomeProxy(Object o) throws Exception *************** *** 65,71 **** /** ! *Gets the component attribute of the EJBHomeProxy object * ! * @return The component value */ public Component getComponent() --- 66,72 ---- /** ! * Gets the component attribute of the EJBHomeProxy object * ! * @return The component value */ public Component getComponent() *************** *** 87,97 **** /** ! *Description of the Method * ! * @param proxy Description of Parameter ! * @param method Description of Parameter ! * @param args Description of Parameter ! * @return Description of the Returned Value ! * @exception Throwable Description of Exception */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable --- 88,98 ---- /** ! * Description of the Method * ! * @param proxy Description of Parameter ! * @param method Description of Parameter ! * @param args Description of Parameter ! * @return Description of the Returned Value ! * @exception Throwable Description of Exception */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable *************** *** 132,140 **** } ! ! public String toString() ! { ! return homeClass.getName().substring(homeClass.getName().lastIndexOf(".") + 1); ! } ! } --- 133,146 ---- } ! ! /** ! * Description of the Method ! * ! * @return Description of the Return Value ! */ ! public String toString() ! { ! return homeClass.getName().substring(homeClass.getName().lastIndexOf(".") + 1); ! } ! } Index: EJBObjectProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb/EJBObjectProxy.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** EJBObjectProxy.java 30 Apr 2002 21:13:19 -0000 1.2 --- EJBObjectProxy.java 2 May 2002 20:52:10 -0000 1.3 *************** *** 16,20 **** import java.lang.reflect.Method; import java.lang.reflect.Proxy; ! import java.util.Collection; import javax.ejb.EJBObject; --- 16,20 ---- import java.lang.reflect.Method; import java.lang.reflect.Proxy; ! import javax.ejb.EJBObject; *************** *** 23,55 **** /** ! * @author Rickard Oberg (ri...@dr...) ! * @created 2 janvier 2002 ! * @see <related> ! * @version $Revision$ */ public class EJBObjectProxy extends JNDIEntry implements InvocationHandler { ! /** Description of the Field */ ! protected BeanInfo info; ! /** Description of the Field */ ! protected Object obj; ! /** Description of the Field */ protected transient Customizer c; ! /** Description of the Field */ ! protected Class remote; ! /** Description of the Field */ protected String desc; ! /** Description of the Field */ protected Object proxy; ! /** Description of the Field */ protected PropertyChangeSupport ps; /** ! *Constructor for the EJBObjectProxy object * ! * @param obj Description of Parameter ! * @param cl Description of Parameter ! * @exception Exception Description of Exception */ public EJBObjectProxy(Object obj, ClassLoader cl) throws Exception --- 23,55 ---- /** ! * @author Rickard Oberg (ri...@dr...) ! * @created 2 janvier 2002 ! * @see <related> ! * @version $Revision$ */ public class EJBObjectProxy extends JNDIEntry implements InvocationHandler { ! /** Description of the Field */ protected transient Customizer c; ! /** Description of the Field */ protected String desc; ! /** Description of the Field */ ! protected BeanInfo info; ! /** Description of the Field */ ! protected Object obj; ! /** Description of the Field */ protected Object proxy; ! /** Description of the Field */ protected PropertyChangeSupport ps; + /** Description of the Field */ + protected Class remote; /** ! * Constructor for the EJBObjectProxy object * ! * @param obj Description of Parameter ! * @param cl Description of Parameter ! * @exception Exception Description of Exception */ public EJBObjectProxy(Object obj, ClassLoader cl) throws Exception *************** *** 73,79 **** /** ! *Gets the component attribute of the EJBObjectProxy object * ! * @return The component value */ public Component getComponent() --- 73,79 ---- /** ! * Gets the component attribute of the EJBObjectProxy object * ! * @return The component value */ public Component getComponent() *************** *** 88,98 **** /** ! *Description of the Method * ! * @param proxy Description of Parameter ! * @param method Description of Parameter ! * @param args Description of Parameter ! * @return Description of the Returned Value ! * @exception Throwable Description of Exception */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable --- 88,98 ---- /** ! * Description of the Method * ! * @param proxy Description of Parameter ! * @param method Description of Parameter ! * @param args Description of Parameter ! * @return Description of the Returned Value ! * @exception Throwable Description of Exception */ public Object invoke(Object proxy, Method method, Object[] args) throws Throwable *************** *** 136,142 **** /** ! *Description of the Method * ! * @return Description of the Returned Value */ public String toString() --- 136,142 ---- /** ! * Description of the Method * ! * @return Description of the Returned Value */ public String toString() *************** *** 144,160 **** if (desc == null) { ! try ! { ! Method m = EJBObject.class.getMethod("getPrimaryKey", new Class[0]); ! desc = m.invoke(obj, new Object[0]).toString(); ! } ! catch (Exception e) ! { ! ! desc = remote.getName().substring(remote.getName().lastIndexOf(".") + 1); ! //desc = remote.toString(); ! ! } ! } return desc; --- 144,160 ---- if (desc == null) { ! try ! { ! Method m = EJBObject.class.getMethod("getPrimaryKey", new Class[0]); ! desc = m.invoke(obj, new Object[0]).toString(); ! } ! catch (Exception e) ! { ! ! desc = remote.getName().substring(remote.getName().lastIndexOf(".") + 1); ! //desc = remote.toString(); ! ! } ! } return desc; Index: PropertyChanger.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb/PropertyChanger.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PropertyChanger.java 30 Apr 2002 21:13:19 -0000 1.2 --- PropertyChanger.java 2 May 2002 20:52:10 -0000 1.3 *************** *** 10,24 **** /** ! *Description of the Interface * ! * @author letiembl ! * @created 2 janvier 2002 */ public interface PropertyChanger { /** ! *Adds a feature to the PropertyChangeListener attribute of the PropertyChanger object * ! * @param pcl The feature to be added to the PropertyChangeListener attribute */ public void addPropertyChangeListener(PropertyChangeListener pcl); --- 10,26 ---- /** ! * Description of the Interface * ! * @author letiembl ! * @created 2 janvier 2002 */ public interface PropertyChanger { /** ! * Adds a feature to the PropertyChangeListener attribute of the ! * PropertyChanger object * ! * @param pcl The feature to be added to the PropertyChangeListener ! * attribute */ public void addPropertyChangeListener(PropertyChangeListener pcl); *************** *** 26,34 **** /** ! *Description of the Method * ! * @param pcl Description of Parameter */ public void removePropertyChangeListener(PropertyChangeListener pcl); } - --- 28,35 ---- /** ! * Description of the Method * ! * @param pcl Description of Parameter */ public void removePropertyChangeListener(PropertyChangeListener pcl); } |