ejtools-cvs Mailing List for EJTools (Page 90)
Brought to you by:
letiemble
You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
(471) |
May
(303) |
Jun
(176) |
Jul
(67) |
Aug
(64) |
Sep
(84) |
Oct
(148) |
Nov
(57) |
Dec
(272) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(356) |
Feb
(304) |
Mar
(214) |
Apr
(22) |
May
(7) |
Jun
(25) |
Jul
|
Aug
(5) |
Sep
(106) |
Oct
|
Nov
(95) |
Dec
(193) |
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2016 |
Jan
(2) |
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
|
Jun
|
Jul
(2) |
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: <let...@us...> - 2002-05-30 22:37:29
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/mail In directory usw-pr-cvs1:/tmp/cvs-serv17918/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/mail Added Files: SessionProxy.java Log Message: Add support for BeanInfo generation bby XDoclet --- NEW FILE: SessionProxy.java --- /* * EJTools, the Enterprise Java Tools * * Distributable under LGPL license. * See terms of license at www.gnu.org. */ package net.sourceforge.ejtools.jndibrowser.model.mail; import java.util.Properties; import javax.mail.Provider; import javax.mail.Session; import javax.naming.Context; import javax.rmi.PortableRemoteObject; import net.sourceforge.ejtools.jndibrowser.model.JNDIContext; /** * Describe a mail session. * * @author letiemble * @created 13 décembre 2001 * @version $Revision: 1.3 $ * @todo Javadoc to complete * @javabean:class displayName="Mail Session" shortDescription="Mail Session" * @javabean:icons color16="/toolbarButtonGraphics/general/File16.gif" * @javabean:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the entry" * @javabean:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the entry" * @javabean:property name="path" class="java.lang.String" displayName="Full Path" shortDescription="Absolute path of the context" * @javabean:property name="properties" class="java.util.Properties" displayName="Properties" shortDescription="Properties of the session" * @javabean:property name="providers" class="javax.mail.Provider" displayName="Providers" shortDescription="Providers of the session" */ public class SessionProxy extends JNDIContext { /** Description of the Field */ protected Session session; /** * Constructor for the SessionProxy object * * @param context Description of the Parameter * @param jndiName Description of the Parameter * @exception Exception Description of the Exception */ public SessionProxy(Context context, String jndiName) throws Exception { // Try to narrow to an EJBHome class Object o = context.lookup(jndiName); session = (Session) PortableRemoteObject.narrow(o, Session.class); setName(jndiName); setClassName(session.getClass().getName()); } /** * Gets the properties attribute of the SessionProxy object * * @return The properties value */ public Properties getProperties() { return session.getProperties(); } /** * Gets the providers attribute of the SessionProxy object * * @return The providers value */ public Provider[] getProviders() { return session.getProviders(); } } |
From: <let...@us...> - 2002-05-30 22:37:15
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms In directory usw-pr-cvs1:/tmp/cvs-serv17726/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms Modified Files: BytesMessageProxy.java ConnectionFactoryProxy.java MapMessageProxy.java MessageProxy.java ObjectMessageProxy.java QueueProxy.java StreamMessageProxy.java TextMessageProxy.java TopicProxy.java Log Message: Add support for BeanInfo generation bby XDoclet Index: BytesMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/BytesMessageProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BytesMessageProxy.java 25 May 2002 20:54:35 -0000 1.3 --- BytesMessageProxy.java 30 May 2002 22:37:12 -0000 1.4 *************** *** 21,34 **** * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Bytes Message" shortDescription="JMS Bytes Message" ! * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/BytesMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class BytesMessageProxy extends MessageProxy --- 21,34 ---- * @version $Revision$ * @todo Javadoc to complete ! * @javabean:class displayName="JMS Bytes Message" shortDescription="JMS Bytes Message" ! * @javabean:icons color16="toolbarButtonGraphics/development/jms/BytesMessage16.gif" ! * @javabean:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @javabean:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @javabean:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @javabean:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class BytesMessageProxy extends MessageProxy Index: ConnectionFactoryProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/ConnectionFactoryProxy.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ConnectionFactoryProxy.java 25 May 2002 20:54:35 -0000 1.6 --- ConnectionFactoryProxy.java 30 May 2002 22:37:12 -0000 1.7 *************** *** 30,39 **** * @todo Add log4j logs * @todo Review the exception raised ! * @beaninfo:class displayName="Connection Factory" shortDescription="Connection Factory" ! * @beaninfo:icons color16="/toolbarButtonGraphics/development/Server16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the Connection Factory" ! * @beaninfo:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the Connection Factory" ! * @beaninfo:property name="queueConnectionFactory" class="boolean" displayName="Can Create QueueConnection" shortDescription="JNDI context factory" ! * @beaninfo:property name="topicConnectionFactory" class="boolean" displayName="Can Create QueueConnection" shortDescription="JNDI context factory" */ public class ConnectionFactoryProxy extends JNDIEntry --- 30,42 ---- * @todo Add log4j logs * @todo Review the exception raised ! * @javabean:class displayName="Connection Factory" shortDescription="Connection Factory" ! * @javabean:icons color16="/toolbarButtonGraphics/development/Server16.gif" ! * @javabean:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the Connection Factory" ! * @javabean:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the Connection Factory" ! * @javabean:property name="path" class="java.lang.String" displayName="Full Path" shortDescription="Absolute path of the context" ! * @javabean:property name="queueConnectionFactory" class="boolean" displayName="Can Create QueueConnection" shortDescription="Ability to create ! * QueueConnection objects" ! * @javabean:property name="topicConnectionFactory" class="boolean" displayName="Can Create TopicConnection" shortDescription="Ability to create ! * TopicConnection objects" */ public class ConnectionFactoryProxy extends JNDIEntry *************** *** 56,64 **** * Constructor for the JMSQueue object * ! * @param o Description of Parameter * @exception Exception Description of Exception */ ! public ConnectionFactoryProxy(Object o) throws Exception { if (o instanceof QueueConnectionFactory) { --- 59,74 ---- * Constructor for the JMSQueue object * ! * @param context Description of the Parameter ! * @param jndiName Description of the Parameter * @exception Exception Description of Exception */ ! public ConnectionFactoryProxy(Context context, String jndiName) throws Exception { + // Try to narrow to an EJBHome class + Object o = context.lookup(jndiName); + + setName(jndiName); + setClassName(o.getClass().getName()); + if (o instanceof QueueConnectionFactory) { Index: MapMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/MapMessageProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MapMessageProxy.java 25 May 2002 20:54:35 -0000 1.3 --- MapMessageProxy.java 30 May 2002 22:37:12 -0000 1.4 *************** *** 21,34 **** * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Map Message" shortDescription="JMS Map Message" ! * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/MapMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class MapMessageProxy extends MessageProxy --- 21,34 ---- * @version $Revision$ * @todo Javadoc to complete ! * @javabean:class displayName="JMS Map Message" shortDescription="JMS Map Message" ! * @javabean:icons color16="toolbarButtonGraphics/development/jms/MapMessage16.gif" ! * @javabean:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @javabean:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @javabean:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @javabean:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class MapMessageProxy extends MessageProxy Index: MessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/MessageProxy.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** MessageProxy.java 25 May 2002 20:54:35 -0000 1.7 --- MessageProxy.java 30 May 2002 22:37:12 -0000 1.8 *************** *** 35,48 **** * @todo Javadoc to complete * @todo Add log4j logs ! * @beaninfo:class displayName="JMS Message" shortDescription="JMS Message" ! * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/Message16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class MessageProxy extends JNDIEntry --- 35,48 ---- * @todo Javadoc to complete * @todo Add log4j logs ! * @javabean:class displayName="JMS Message" shortDescription="JMS Message" ! * @javabean:icons color16="toolbarButtonGraphics/development/jms/Message16.gif" ! * @javabean:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @javabean:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @javabean:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @javabean:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class MessageProxy extends JNDIEntry Index: ObjectMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/ObjectMessageProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ObjectMessageProxy.java 25 May 2002 20:54:35 -0000 1.3 --- ObjectMessageProxy.java 30 May 2002 22:37:12 -0000 1.4 *************** *** 21,34 **** * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Object Message" shortDescription="JMS Object Message" ! * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/ObjectMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class ObjectMessageProxy extends MessageProxy --- 21,34 ---- * @version $Revision$ * @todo Javadoc to complete ! * @javabean:class displayName="JMS Object Message" shortDescription="JMS Object Message" ! * @javabean:icons color16="toolbarButtonGraphics/development/jms/ObjectMessage16.gif" ! * @javabean:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @javabean:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @javabean:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @javabean:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class ObjectMessageProxy extends MessageProxy Index: QueueProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/QueueProxy.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** QueueProxy.java 25 May 2002 20:54:35 -0000 1.7 --- QueueProxy.java 30 May 2002 22:37:12 -0000 1.8 *************** *** 41,49 **** * @todo Other type of message to create * @todo More parameters for creation of message ! * @beaninfo:class displayName="JMS Queue" shortDescription="JMS Queue" ! * @beaninfo:icons color16="/toolbarButtonGraphics/development/jms/Queue16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the entry" ! * @beaninfo:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the entry" ! * @beaninfo:property name="count" class="int" displayName="Message(s)" shortDescription="Number of messages in Queue" */ public class QueueProxy extends JNDIEntry --- 41,50 ---- * @todo Other type of message to create * @todo More parameters for creation of message ! * @javabean:class displayName="JMS Queue" shortDescription="JMS Queue" ! * @javabean:icons color16="/toolbarButtonGraphics/development/jms/Queue16.gif" ! * @javabean:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the entry" ! * @javabean:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the entry" ! * @javabean:property name="path" class="java.lang.String" displayName="Full Path" shortDescription="Absolute path of the context" ! * @javabean:property name="count" class="int" displayName="Message(s)" shortDescription="Number of messages in Queue" */ public class QueueProxy extends JNDIEntry *************** *** 60,68 **** * Constructor for the JMSQueue object * ! * @param o Description of Parameter * @exception Exception Description of Exception */ ! public QueueProxy(Object o) throws Exception { this.queue = (Queue) PortableRemoteObject.narrow(o, Queue.class); } --- 61,76 ---- * Constructor for the JMSQueue object * ! * @param context Description of the Parameter ! * @param jndiName Description of the Parameter * @exception Exception Description of Exception */ ! public QueueProxy(Context context, String jndiName) throws Exception { + // Try to narrow to an Queue class + Object o = context.lookup(jndiName); + + setName(jndiName); + setClassName(o.getClass().getName()); + this.queue = (Queue) PortableRemoteObject.narrow(o, Queue.class); } *************** *** 73,77 **** * * @todo Add Log4j log ! * @beaninfo:method name="browse" displayName="Browse" shortDescription="Browse the queue" */ public void browse() --- 81,85 ---- * * @todo Add Log4j log ! * @javabean:method name="browse" displayName="Browse" shortDescription="Browse the queue" */ public void browse() *************** *** 139,143 **** * Description of the Method * ! * @beaninfo:method name="createMessage" displayName="Create Message" shortDescription="Create a simple message" */ public void createMessage() --- 147,151 ---- * Description of the Method * ! * @javabean:method name="createMessage" displayName="Create Message" shortDescription="Create a simple message" */ public void createMessage() *************** *** 187,192 **** * * @param text Description of Parameter ! * @beaninfo:method name="createTextMessage" displayName="Create Text Message" shortDescription="Create a text message" ! * @beaninfo:param name="text" displayName="Text" */ public void createTextMessage(String text) --- 195,200 ---- * * @param text Description of Parameter ! * @javabean:method name="createTextMessage" displayName="Create Text Message" shortDescription="Create a text message" ! * @javabean:param name="text" displayName="Text" */ public void createTextMessage(String text) Index: StreamMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/StreamMessageProxy.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** StreamMessageProxy.java 25 May 2002 20:54:35 -0000 1.3 --- StreamMessageProxy.java 30 May 2002 22:37:12 -0000 1.4 *************** *** 21,34 **** * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Stream Message" shortDescription="JMS Stream Message" ! * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/StreamMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class StreamMessageProxy extends MessageProxy --- 21,34 ---- * @version $Revision$ * @todo Javadoc to complete ! * @javabean:class displayName="JMS Stream Message" shortDescription="JMS Stream Message" ! * @javabean:icons color16="toolbarButtonGraphics/development/jms/StreamMessage16.gif" ! * @javabean:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @javabean:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @javabean:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @javabean:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class StreamMessageProxy extends MessageProxy Index: TextMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/TextMessageProxy.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TextMessageProxy.java 25 May 2002 20:54:35 -0000 1.6 --- TextMessageProxy.java 30 May 2002 22:37:12 -0000 1.7 *************** *** 21,35 **** * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Text Message" shortDescription="JMS Text Message" ! * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/TextMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" ! * @beaninfo:property name="text" class="java.lang.String" displayName="Text" shortDescription="Text of the message" propertyeditor="com.dreambean.awt.editors.TextEditor" */ public class TextMessageProxy extends MessageProxy --- 21,35 ---- * @version $Revision$ * @todo Javadoc to complete ! * @javabean:class displayName="JMS Text Message" shortDescription="JMS Text Message" ! * @javabean:icons color16="toolbarButtonGraphics/development/jms/TextMessage16.gif" ! * @javabean:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @javabean:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @javabean:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @javabean:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @javabean:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @javabean:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @javabean:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" ! * @javabean:property name="text" class="java.lang.String" displayName="Text" shortDescription="Text of the message" propertyeditor="com.dreambean.awt.editors.TextEditor" */ public class TextMessageProxy extends MessageProxy Index: TopicProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/TopicProxy.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** TopicProxy.java 25 May 2002 20:54:35 -0000 1.7 --- TopicProxy.java 30 May 2002 22:37:12 -0000 1.8 *************** *** 34,41 **** * @todo Javadoc to complete * @todo Add log4j logs ! * @beaninfo:class displayName="JMS Topic" shortDescription="JMS Topic" ! * @beaninfo:icons color16="/toolbarButtonGraphics/development/jms/Topic16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the entry" ! * @beaninfo:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the entry" */ public class TopicProxy extends JNDIEntry --- 34,42 ---- * @todo Javadoc to complete * @todo Add log4j logs ! * @javabean:class displayName="JMS Topic" shortDescription="JMS Topic" ! * @javabean:icons color16="/toolbarButtonGraphics/development/jms/Topic16.gif" ! * @javabean:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the entry" ! * @javabean:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the entry" ! * @javabean:property name="path" class="java.lang.String" displayName="Full Path" shortDescription="Absolute path of the context" */ public class TopicProxy extends JNDIEntry *************** *** 50,58 **** * Constructor for the JMSTopic object * ! * @param o Description of Parameter * @exception Exception Description of Exception */ ! public TopicProxy(Object o) throws Exception { this.topic = (Topic) PortableRemoteObject.narrow(o, Topic.class); } --- 51,66 ---- * Constructor for the JMSTopic object * ! * @param context Description of the Parameter ! * @param jndiName Description of the Parameter * @exception Exception Description of Exception */ ! public TopicProxy(Context context, String jndiName) throws Exception { + // Try to narrow to an Topic class + Object o = context.lookup(jndiName); + + setName(jndiName); + setClassName(o.getClass().getName()); + this.topic = (Topic) PortableRemoteObject.narrow(o, Topic.class); } *************** *** 63,68 **** * * @param text Description of Parameter ! * @beaninfo:method name="createTextMessage" displayName="Create Text Message" shortDescription="Create a text message" ! * @beaninfo:param name="text" displayName="Text" */ public void createTextMessage(String text) --- 71,76 ---- * * @param text Description of Parameter ! * @javabean:method name="createTextMessage" displayName="Create Text Message" shortDescription="Create a text message" ! * @javabean:param name="text" displayName="Text" */ public void createTextMessage(String text) |
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 |
From: <let...@us...> - 2002-05-30 22:13:53
|
Update of /cvsroot/ejtools/thirdparty/sun/j2ee In directory usw-pr-cvs1:/tmp/cvs-serv1456 Modified Files: j2ee.jar Removed Files: javax.servlet.jar Log Message: Merge J2EE classes in j2ee.jar Index: j2ee.jar =================================================================== RCS file: /cvsroot/ejtools/thirdparty/sun/j2ee/j2ee.jar,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsBMLL93 and /tmp/cvscNXfBw differ --- javax.servlet.jar DELETED --- |
From: <let...@us...> - 2002-05-30 21:44:23
|
Update of /cvsroot/ejtools/libraries/taglib/src/main/net/sourceforge/ejtools/servlet/http/jsp/tagext In directory usw-pr-cvs1:/tmp/cvs-serv16382/taglib/src/main/net/sourceforge/ejtools/servlet/http/jsp/tagext Modified Files: BeanContextTreeTag.java Log Message: Pretty print code Index: BeanContextTreeTag.java =================================================================== RCS file: /cvsroot/ejtools/libraries/taglib/src/main/net/sourceforge/ejtools/servlet/http/jsp/tagext/BeanContextTreeTag.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BeanContextTreeTag.java 24 May 2002 21:07:06 -0000 1.2 --- BeanContextTreeTag.java 30 May 2002 21:44:20 -0000 1.3 *************** *** 41,46 **** * Description of the Method * ! * @return Description of the Returned Value ! * @exception JspException Description of Exception */ public int doStartTag() throws JspException --- 41,46 ---- * Description of the Method * ! * @return Description of the Return Value ! * @exception JspException Description of the Exception */ public int doStartTag() throws JspException *************** *** 88,94 **** /** ! * Getter for the ignore attribute * ! * @return The value of ignore attribute */ public boolean getIgnore() --- 88,94 ---- /** ! * Gets the ignore attribute of the BeanContextTreeTag object * ! * @return The ignore value */ public boolean getIgnore() *************** *** 131,135 **** ! /** Release all allocated resources. */ public void release() { --- 131,135 ---- ! /** Description of the Method */ public void release() { |
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt In directory usw-pr-cvs1:/tmp/cvs-serv15055/adwt/src/main/net/sourceforge/ejtools/awt Modified Files: BeanContextListView.java GenericCustomizer.java GenericMBeanCustomizer.java GenericMBeanMethodDialog.java GenericTitledBorder.java Log Message: Pretty print code Index: BeanContextListView.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/BeanContextListView.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BeanContextListView.java 5 May 2002 20:13:45 -0000 1.3 --- BeanContextListView.java 30 May 2002 21:42:08 -0000 1.4 *************** *** 124,129 **** /** ! * Adds a feature to the ListDataListener attribute of the ! * BeanContextListModel object * * @param l The feature to be added to the ListDataListener attribute --- 124,128 ---- /** ! * Adds a feature to the ListDataListener attribute of the BeanContextListModel object * * @param l The feature to be added to the ListDataListener attribute Index: GenericCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericCustomizer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** GenericCustomizer.java 5 May 2002 20:13:22 -0000 1.3 --- GenericCustomizer.java 30 May 2002 21:42:08 -0000 1.4 *************** *** 118,128 **** /** ! * Adds a feature to the ArrayProperty attribute of the GenericCustomizer ! * object * ! * @param propertyeditor The feature to be added to the ArrayProperty ! * attribute ! * @param propertydescriptor The feature to be added to the ArrayProperty ! * attribute */ public void addArrayProperty(PropertyEditor propertyeditor, PropertyDescriptor propertydescriptor) --- 118,125 ---- /** ! * Adds a feature to the ArrayProperty attribute of the GenericCustomizer object * ! * @param propertyeditor The feature to be added to the ArrayProperty attribute ! * @param propertydescriptor The feature to be added to the ArrayProperty attribute */ public void addArrayProperty(PropertyEditor propertyeditor, PropertyDescriptor propertydescriptor) *************** *** 232,239 **** * Adds a feature to the Property attribute of the GenericCustomizer object * ! * @param propertyeditor The feature to be added to the Property ! * attribute ! * @param propertydescriptor The feature to be added to the Property ! * attribute */ public void addProperty(PropertyEditor propertyeditor, PropertyDescriptor propertydescriptor) --- 229,234 ---- * Adds a feature to the Property attribute of the GenericCustomizer object * ! * @param propertyeditor The feature to be added to the Property attribute ! * @param propertydescriptor The feature to be added to the Property attribute */ public void addProperty(PropertyEditor propertyeditor, PropertyDescriptor propertydescriptor) Index: GenericMBeanCustomizer.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericMBeanCustomizer.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** GenericMBeanCustomizer.java 5 May 2002 20:13:45 -0000 1.5 --- GenericMBeanCustomizer.java 30 May 2002 21:42:08 -0000 1.6 *************** *** 97,107 **** /** ! * Adds a feature to the ArrayProperty attribute of the GenericCustomizer ! * object * ! * @param propertyeditor The feature to be added to the ArrayProperty ! * attribute ! * @param attributeInfo The feature to be added to the ArrayProperty ! * attribute */ public void addArrayProperty(PropertyEditor propertyeditor, MBeanAttributeInfo attributeInfo) --- 97,104 ---- /** ! * Adds a feature to the ArrayProperty attribute of the GenericCustomizer object * ! * @param propertyeditor The feature to be added to the ArrayProperty attribute ! * @param attributeInfo The feature to be added to the ArrayProperty attribute */ public void addArrayProperty(PropertyEditor propertyeditor, MBeanAttributeInfo attributeInfo) *************** *** 326,334 **** /** ! * Adds a feature to the UnsupportedProperty attribute of the ! * GenericMBeanCustomizer object * ! * @param attributeInfo The feature to be added to the UnsupportedProperty ! * attribute */ public void addUnsupportedProperty(MBeanAttributeInfo attributeInfo) --- 323,329 ---- /** ! * Adds a feature to the UnsupportedProperty attribute of the GenericMBeanCustomizer object * ! * @param attributeInfo The feature to be added to the UnsupportedProperty attribute */ public void addUnsupportedProperty(MBeanAttributeInfo attributeInfo) *************** *** 549,554 **** /** ! * This class makes sure that the customizer is updated with the object ! * changes * * @author andreass --- 544,548 ---- /** ! * This class makes sure that the customizer is updated with the object changes * * @author andreass Index: GenericMBeanMethodDialog.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericMBeanMethodDialog.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** GenericMBeanMethodDialog.java 5 May 2002 20:13:45 -0000 1.3 --- GenericMBeanMethodDialog.java 30 May 2002 21:42:08 -0000 1.4 *************** *** 58,63 **** * * @param pConnector Connector to the remote MBean Server ! * @param pService Remote Service Bean on which the method should be ! * invoked * @param pOperation Operation to be invoked if accepted * @param pOwner Owner of the dialog controlling its appearance --- 58,62 ---- * * @param pConnector Connector to the remote MBean Server ! * @param pService Remote Service Bean on which the method should be invoked * @param pOperation Operation to be invoked if accepted * @param pOwner Owner of the dialog controlling its appearance Index: GenericTitledBorder.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/GenericTitledBorder.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GenericTitledBorder.java 5 May 2002 20:13:45 -0000 1.2 --- GenericTitledBorder.java 30 May 2002 21:42:08 -0000 1.3 *************** *** 56,62 **** public final static int DEFAULT_JUSTIFICATION = 0; /** ! * Position title text at the left side of the border line for left to right ! * orientation, at the right side of the border line for right to left ! * orientation. */ public final static int LEADING = 4; --- 56,60 ---- public final static int DEFAULT_JUSTIFICATION = 0; /** ! * Position title text at the left side of the border line for left to right orientation, at the right side of the border line for right to left orientation. */ public final static int LEADING = 4; *************** *** 66,72 **** public final static int RIGHT = 3; /** ! * Position title text at the right side of the border line for left to right ! * orientation, at the left side of the border line for right to left ! * orientation. */ public final static int TRAILING = 5; --- 64,68 ---- public final static int RIGHT = 3; /** ! * Position title text at the right side of the border line for left to right orientation, at the left side of the border line for right to left orientation. */ public final static int TRAILING = 5; *************** *** 103,108 **** /** ! * Creates a TitledBorder instance with the specified border and an empty ! * title. * * @param border the border --- 99,103 ---- /** ! * Creates a TitledBorder instance with the specified border and an empty title. * * @param border the border *************** *** 140,145 **** /** ! * Creates a TitledBorder instance with the specified border, title, ! * title-justification, title-position, title-font, and title-color. * * @param border the border --- 135,139 ---- /** ! * Creates a TitledBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color. * * @param border the border *************** *** 252,257 **** /** ! * Returns the minimum dimensions this border requires in order to fully ! * display the border and title. * * @param c the component where this border will be drawn --- 246,250 ---- /** ! * Returns the minimum dimensions this border requires in order to fully display the border and title. * * @param c the component where this border will be drawn *************** *** 320,325 **** /** ! * Paints the border for the specified component with the specified position ! * and size. * * @param c the component for which this border is being painted --- 313,317 ---- /** ! * Paints the border for the specified component with the specified position and size. * * @param c the component for which this border is being painted |
From: <let...@us...> - 2002-05-30 21:40:10
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action In directory usw-pr-cvs1:/tmp/cvs-serv13996/adwt/src/main/net/sourceforge/ejtools/awt/action Modified Files: Command.java CommandAction.java Log Message: Pretty print code Index: Command.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/Command.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Command.java 5 May 2002 20:09:56 -0000 1.3 --- Command.java 30 May 2002 21:40:07 -0000 1.4 *************** *** 7,10 **** --- 7,11 ---- package net.sourceforge.ejtools.awt.action; + /** * Interface needed to implement to Command Pattern. Index: CommandAction.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/action/CommandAction.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CommandAction.java 5 May 2002 20:09:56 -0000 1.3 --- CommandAction.java 30 May 2002 21:40:07 -0000 1.4 *************** *** 86,91 **** /** ! * actionPerformed is what executed the command. actionPerformed is called ! * whenever the action is acted upon. * * @param e the action event --- 86,90 ---- /** ! * actionPerformed is what executed the command. actionPerformed is called whenever the action is acted upon. * * @param e the action event *************** *** 98,106 **** /** ! * Adds a feature to the PropertyChangeListener attribute of the ! * CommandAction object * ! * @param listener The feature to be added to the PropertyChangeListener ! * attribute */ public void addPropertyChangeListener(PropertyChangeListener listener) --- 97,103 ---- /** ! * Adds a feature to the PropertyChangeListener attribute of the CommandAction object * ! * @param listener The feature to be added to the PropertyChangeListener attribute */ public void addPropertyChangeListener(PropertyChangeListener listener) |
From: <let...@us...> - 2002-05-30 21:38:52
|
Update of /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services In directory usw-pr-cvs1:/tmp/cvs-serv12656/adwt/src/main/net/sourceforge/ejtools/awt/services Modified Files: AboutServiceProvider.java FrameServiceProvider.java HistoryServiceProvider.java MDIDesktopPane.java MenuBarService.java MenuBarServiceProvider.java PreferencesService.java StatusBarServiceProvider.java ToolBarServiceProvider.java Log Message: Pretty print code Index: AboutServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/AboutServiceProvider.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AboutServiceProvider.java 5 May 2002 20:13:46 -0000 1.3 --- AboutServiceProvider.java 30 May 2002 21:38:49 -0000 1.4 *************** *** 65,70 **** /** ! * Gets the currentServiceSelectors attribute of the ! * ApplicationServiceProvider object * * @param bcs Description of Parameter --- 65,69 ---- /** ! * Gets the currentServiceSelectors attribute of the ApplicationServiceProvider object * * @param bcs Description of Parameter Index: FrameServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/FrameServiceProvider.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FrameServiceProvider.java 5 May 2002 20:13:46 -0000 1.3 --- FrameServiceProvider.java 30 May 2002 21:38:49 -0000 1.4 *************** *** 91,96 **** /** ! * Adds a feature to the WindowListener attribute of the FrameServiceProvider ! * object * * @param l The feature to be added to the WindowListener attribute --- 91,95 ---- /** ! * Adds a feature to the WindowListener attribute of the FrameServiceProvider object * * @param l The feature to be added to the WindowListener attribute *************** *** 137,142 **** /** ! * Gets the currentServiceSelectors attribute of the ! * ApplicationServiceProvider object * * @param bcs Description of Parameter --- 136,140 ---- /** ! * Gets the currentServiceSelectors attribute of the ApplicationServiceProvider object * * @param bcs Description of Parameter Index: HistoryServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/HistoryServiceProvider.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** HistoryServiceProvider.java 5 May 2002 20:13:46 -0000 1.3 --- HistoryServiceProvider.java 30 May 2002 21:38:49 -0000 1.4 *************** *** 66,71 **** /** ! * Gets the currentServiceSelectors attribute of the HistoryServiceProvider ! * object * * @param bcs Description of Parameter --- 66,70 ---- /** ! * Gets the currentServiceSelectors attribute of the HistoryServiceProvider object * * @param bcs Description of Parameter Index: MDIDesktopPane.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/MDIDesktopPane.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MDIDesktopPane.java 5 May 2002 20:13:46 -0000 1.3 --- MDIDesktopPane.java 30 May 2002 21:38:49 -0000 1.4 *************** *** 23,28 **** /** ! * An extension of WDesktopPane that supports often used MDI functionality. This ! * class also handles setting scroll bars for when windows move too far to the * left or bottom, providing the MDIDesktopPane is in a ScrollPane. * --- 23,27 ---- /** ! * An extension of WDesktopPane that supports often used MDI functionality. This class also handles setting scroll bars for when windows move too far to the * left or bottom, providing the MDIDesktopPane is in a ScrollPane. * *************** *** 138,143 **** /** ! * Sets all component size properties ( maximum, minimum, preferred) to the ! * given dimension. * * @param d The new AllSize value --- 137,141 ---- /** ! * Sets all component size properties ( maximum, minimum, preferred) to the given dimension. * * @param d The new AllSize value *************** *** 152,157 **** /** ! * Sets all component size properties ( maximum, minimum, preferred) to the ! * given width and height. * * @param width The new AllSize value --- 150,154 ---- /** ! * Sets all component size properties ( maximum, minimum, preferred) to the given width and height. * * @param width The new AllSize value *************** *** 206,211 **** /** ! * Private class used to replace the standard DesktopManager for ! * JDesktopPane. Used to provide scrollbar functionality. * * @author laurent --- 203,207 ---- /** ! * Private class used to replace the standard DesktopManager for JDesktopPane. Used to provide scrollbar functionality. * * @author laurent *************** *** 253,259 **** ! /** ! * Sets the NormalSize attribute of the MDIDesktopManager object ! */ public void setNormalSize() { --- 249,253 ---- ! /** Sets the NormalSize attribute of the MDIDesktopManager object */ public void setNormalSize() { Index: MenuBarService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/MenuBarService.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MenuBarService.java 5 May 2002 20:13:46 -0000 1.3 --- MenuBarService.java 30 May 2002 21:38:49 -0000 1.4 *************** *** 28,33 **** /** ! * Adds a feature to the MenuBarListener attribute of the MenuBarService ! * object * * @param mbsl The feature to be added to the MenuBarListener attribute --- 28,32 ---- /** ! * Adds a feature to the MenuBarListener attribute of the MenuBarService object * * @param mbsl The feature to be added to the MenuBarListener attribute Index: MenuBarServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/MenuBarServiceProvider.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MenuBarServiceProvider.java 5 May 2002 20:13:46 -0000 1.3 --- MenuBarServiceProvider.java 30 May 2002 21:38:49 -0000 1.4 *************** *** 57,62 **** /** ! * Adds a feature to the MenuBarListener attribute of the ! * MenuBarServiceProvider object * * @param mbsl The feature to be added to the MenuBarListener attribute --- 57,61 ---- /** ! * Adds a feature to the MenuBarListener attribute of the MenuBarServiceProvider object * * @param mbsl The feature to be added to the MenuBarListener attribute *************** *** 80,85 **** /** ! * Gets the currentServiceSelectors attribute of the ! * ApplicationServiceProvider object * * @param bcs Description of Parameter --- 79,83 ---- /** ! * Gets the currentServiceSelectors attribute of the ApplicationServiceProvider object * * @param bcs Description of Parameter *************** *** 200,205 **** /** ! * Adds a feature to the MenuItem attribute of the MenuBarServiceProvider ! * object * * @param action The feature to be added to the MenuItem attribute --- 198,202 ---- /** ! * Adds a feature to the MenuItem attribute of the MenuBarServiceProvider object * * @param action The feature to be added to the MenuItem attribute *************** *** 310,315 **** /** ! * Gets the toolTipLocation attribute of the MenuItemWithFixedTooltip ! * object * * @param e Description of Parameter --- 307,311 ---- /** ! * Gets the toolTipLocation attribute of the MenuItemWithFixedTooltip object * * @param e Description of Parameter Index: PreferencesService.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/PreferencesService.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** PreferencesService.java 5 May 2002 20:13:46 -0000 1.3 --- PreferencesService.java 30 May 2002 21:38:49 -0000 1.4 *************** *** 7,10 **** --- 7,11 ---- package net.sourceforge.ejtools.awt.services; + /** * Description of the Class Index: StatusBarServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/StatusBarServiceProvider.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** StatusBarServiceProvider.java 5 May 2002 20:13:46 -0000 1.3 --- StatusBarServiceProvider.java 30 May 2002 21:38:49 -0000 1.4 *************** *** 45,50 **** /** ! * Adds a feature to the Zone attribute of the StatusBarServiceProvider ! * object * * @param name The feature to be added to the Zone attribute --- 45,49 ---- /** ! * Adds a feature to the Zone attribute of the StatusBarServiceProvider object * * @param name The feature to be added to the Zone attribute *************** *** 55,60 **** /** ! * Adds a feature to the Zone attribute of the StatusBarServiceProvider ! * object * * @param name The feature to be added to the Zone attribute --- 54,58 ---- /** ! * Adds a feature to the Zone attribute of the StatusBarServiceProvider object * * @param name The feature to be added to the Zone attribute *************** *** 75,80 **** /** ! * Gets the currentServiceSelectors attribute of the ! * ApplicationServiceProvider object * * @param bcs Description of Parameter --- 73,77 ---- /** ! * Gets the currentServiceSelectors attribute of the ApplicationServiceProvider object * * @param bcs Description of Parameter Index: ToolBarServiceProvider.java =================================================================== RCS file: /cvsroot/ejtools/libraries/adwt/src/main/net/sourceforge/ejtools/awt/services/ToolBarServiceProvider.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ToolBarServiceProvider.java 5 May 2002 20:13:46 -0000 1.3 --- ToolBarServiceProvider.java 30 May 2002 21:38:49 -0000 1.4 *************** *** 62,67 **** /** ! * Gets the currentServiceSelectors attribute of the ! * ApplicationServiceProvider object * * @param bcs Description of Parameter --- 62,66 ---- /** ! * Gets the currentServiceSelectors attribute of the ApplicationServiceProvider object * * @param bcs Description of Parameter |
From: Laurent E. <let...@us...> - 2002-05-30 21:38:09
|
Update of /cvsroot/ejtools/CVSROOT In directory usw-pr-cvs1:/tmp/cvs-serv12218 Modified Files: syncmail Log Message: Update to 3.21 Index: syncmail =================================================================== RCS file: /cvsroot/ejtools/CVSROOT/syncmail,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** syncmail 3 Apr 2002 20:07:10 -0000 1.1 --- syncmail 30 May 2002 21:38:04 -0000 1.2 *************** *** 1,4 **** #! /usr/bin/python ! # -*- Python -*- """Complicated notification for CVS checkins. --- 1,6 ---- #! /usr/bin/python ! ! # NOTE: Until SourceForge installs a modern version of Python on the cvs ! # servers, this script MUST be compatible with Python 1.5.2. """Complicated notification for CVS checkins. *************** *** 30,34 **** %(PROGRAM)s [options] <%%S> email-addr [email-addr ...] ! Where options is: --cvsroot=<path> --- 32,36 ---- %(PROGRAM)s [options] <%%S> email-addr [email-addr ...] ! Where options are: --cvsroot=<path> *************** *** 36,43 **** variable must exist in the environment. - --help - -h - Print this text. - --context=# -C # --- 38,41 ---- *************** *** 48,52 **** -u ! Produce a unified diff (smaller, but harder to read). <%%S> --- 46,64 ---- -u ! Produce a unified diff (smaller). ! ! --quiet / -q ! Don't print as much status to stdout. ! ! --fromhost=hostname ! -f hostname ! The hostname that email messages appear to be coming from. The From: ! header will of the outgoing message will look like user@hostname. By ! default, hostname is the machine's fully qualified domain name. ! ! --help / -h ! Print this text. ! ! The rest of the command line arguments are: <%%S> *************** *** 59,73 **** email-addrs At least one email address. - """ - import os import sys ! import string import time import getopt ! # Notification command ! MAILCMD = '/bin/mail -s "CVS: %(SUBJECT)s" %(PEOPLE)s 2>&1 > /dev/null' # Diff trimming stuff --- 71,108 ---- email-addrs At least one email address. """ import os import sys ! import re import time + import string import getopt + import smtplib + import pwd + import socket ! try: ! from socket import getfqdn ! except ImportError: ! def getfqdn(): ! # Python 1.5.2 :( ! hostname = socket.gethostname() ! byaddr = socket.gethostbyaddr(socket.gethostbyname(hostname)) ! aliases = byaddr[1] ! aliases.insert(0, byaddr[0]) ! aliases.insert(0, hostname) ! for fqdn in aliases: ! if '.' in fqdn: ! break ! else: ! fqdn = 'localhost.localdomain' ! return fqdn ! ! ! from cStringIO import StringIO ! ! # Which SMTP server to do we connect to? Empty string means localhost. ! MAILHOST = '' ! MAILPORT = 25 # Diff trimming stuff *************** *** 76,79 **** --- 111,119 ---- DIFF_TRUNCATE_IF_LARGER = 1000 + EMPTYSTRING = '' + SPACE = ' ' + DOT = '.' + COMMASPACE = ', ' + PROGRAM = sys.argv[0] *************** *** 82,85 **** --- 122,130 ---- ] + REVCRE = re.compile("^(NONE|[0-9.]+)$") + NOVERSION = "Couldn't generate diff; no version number found in filespec: %s" + BACKSLASH = "Couldn't generate diff: backslash in filespec's filename: %s" + + def usage(code, msg=''): *************** *** 92,100 **** def calculate_diff(filespec, contextlines): ! try: ! file, oldrev, newrev = string.split(filespec, ',') ! except ValueError: ! # No diff to report ! return '***** Bogus filespec: %s' % filespec if oldrev == 'NONE': try: --- 137,165 ---- def calculate_diff(filespec, contextlines): ! file, oldrev, newrev = string.split(filespec, ',') ! # Make sure we can find a CVS version number ! if not REVCRE.match(oldrev): ! return NOVERSION % filespec ! if not REVCRE.match(newrev): ! return NOVERSION % filespec ! ! if string.find(file, '\\') <> -1: ! # I'm sorry, a file name that contains a backslash is just too much. ! # XXX if someone wants to figure out how to escape the backslashes in ! # a safe way to allow filenames containing backslashes, this is the ! # place to do it. --Zooko 2002-03-17 ! return BACKSLASH % filespec ! ! if string.find(file, "'") <> -1: ! # Those crazy users put single-quotes in their file names! Now we ! # have to escape everything that is meaningful inside double-quotes. ! filestr = string.replace(file, '`', '\`') ! filestr = string.replace(filestr, '"', '\"') ! filestr = string.replace(filestr, '$', '\$') ! # and quote it with double-quotes. ! filestr = '"' + filestr + '"' ! else: ! # quote it with single-quotes. ! filestr = "'" + file + "'" if oldrev == 'NONE': try: *************** *** 102,106 **** fp = open(file) else: ! update_cmd = 'cvs -fn update -r %s -p %s' % (newrev, file) fp = os.popen(update_cmd) lines = fp.readlines() --- 167,171 ---- fp = open(file) else: ! update_cmd = "cvs -fn update -r %s -p %s" % (newrev, filestr) fp = os.popen(update_cmd) lines = fp.readlines() *************** *** 110,113 **** --- 175,180 ---- for line in lines[:5]: for c in string.rstrip(line): + if c in string.whitespace: + continue if c < ' ' or c > chr(127): lines = BINARY_EXPLANATION_LINES[:] *************** *** 126,131 **** else: difftype = "-u" ! diffcmd = "/usr/bin/cvs -f diff -kk %s --minimal -r %s -r %s '%s'" % ( ! difftype, oldrev, newrev, file) fp = os.popen(diffcmd) lines = fp.readlines() --- 193,198 ---- else: difftype = "-u" ! diffcmd = "/usr/bin/cvs -f diff -kk %s --minimal -r %s -r %s %s" \ ! % (difftype, oldrev, newrev, filestr) fp = os.popen(diffcmd) lines = fp.readlines() *************** *** 143,147 **** ! def blast_mail(mailcmd, filestodiff, contextlines): # cannot wait for child process or that will cause parent to retain cvs # lock for too long. Urg! --- 210,214 ---- ! def blast_mail(subject, people, filestodiff, contextlines, fromhost): # cannot wait for child process or that will cause parent to retain cvs # lock for too long. Urg! *************** *** 150,162 **** # give up the lock you cvs thang! time.sleep(2) ! fp = os.popen(mailcmd, 'w') ! fp.write(sys.stdin.read()) ! fp.write('\n') ! # append the diffs if available ! for file in filestodiff: ! fp.write(calculate_diff(file, contextlines)) ! fp.write('\n') ! fp.close() ! # doesn't matter what code we return, it isn't waited on os._exit(0) --- 217,246 ---- # give up the lock you cvs thang! time.sleep(2) ! # Create the smtp connection to the localhost ! conn = smtplib.SMTP() ! conn.connect(MAILHOST, MAILPORT) ! user = pwd.getpwuid(os.getuid())[0] ! domain = fromhost or getfqdn() ! author = '%s@%s' % (user, domain) ! s = StringIO() ! sys.stdout = s ! try: ! print '''\ ! From: %(author)s ! To: %(people)s ! Subject: %(subject)s ! ''' % {'author' : author, ! 'people' : string.join(people, COMMASPACE), ! 'subject': subject, ! } ! s.write(sys.stdin.read()) ! # append the diffs if available ! print ! for file in filestodiff: ! print calculate_diff(file, contextlines) ! finally: ! sys.stdout = sys.__stdout__ ! resp = conn.sendmail(author, people, s.getvalue()) ! conn.close() os._exit(0) *************** *** 165,176 **** # scan args for options def main(): - contextlines = 2 try: ! opts, args = getopt.getopt(sys.argv[1:], 'hC:cu', ! ['context=', 'cvsroot=', 'help']) except getopt.error, msg: usage(1, msg) # parse the options for opt, arg in opts: if opt in ('-h', '--help'): --- 249,263 ---- # scan args for options def main(): try: ! opts, args = getopt.getopt( ! sys.argv[1:], 'hC:cuqf:', ! ['fromhost=', 'context=', 'cvsroot=', 'help', 'quiet']) except getopt.error, msg: usage(1, msg) # parse the options + contextlines = 2 + verbose = 1 + fromhost = None for opt, arg in opts: if opt in ('-h', '--help'): *************** *** 185,188 **** --- 272,279 ---- elif opt == '-u': contextlines = 0 + elif opt in ('-q', '--quiet'): + verbose = 0 + elif opt in ('-f', '--fromhost'): + fromhost = arg # What follows is the specification containing the files that were *************** *** 192,196 **** if not args: usage(1, 'No CVS module specified') ! SUBJECT = args[0] specs = string.split(args[0]) del args[0] --- 283,287 ---- if not args: usage(1, 'No CVS module specified') ! subject = args[0] specs = string.split(args[0]) del args[0] *************** *** 201,208 **** # Now do the mail command ! PEOPLE = string.join(args) ! mailcmd = MAILCMD % vars() - print 'Mailing %s...' % PEOPLE if specs == ['-', 'Imported', 'sources']: return --- 292,300 ---- # Now do the mail command ! people = args ! ! if verbose: ! print 'Mailing %s...' % string.join(people, COMMASPACE) if specs == ['-', 'Imported', 'sources']: return *************** *** 213,224 **** for s in specs[2:]: prev = L[-1] ! if string.count(prev, ",") < 2: L[-1] = "%s %s" % (prev, s) else: L.append(s) specs = L ! print 'Generating notification message...' ! blast_mail(mailcmd, specs[1:], contextlines) ! print 'Generating notification message... done.' --- 305,319 ---- for s in specs[2:]: prev = L[-1] ! if string.count(prev, ',') < 2: L[-1] = "%s %s" % (prev, s) else: L.append(s) specs = L ! ! if verbose: ! print 'Generating notification message...' ! blast_mail(subject, people, specs[1:], contextlines, fromhost) ! if verbose: ! print 'Generating notification message... done.' |
From: Laurent E. <let...@us...> - 2002-05-30 21:33:06
|
Update of /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/jmx In directory usw-pr-cvs1:/tmp/cvs-serv8584/common/src/main/net/sourceforge/ejtools/jmx Modified Files: MBeanAccessor.java ObjectNameFinder.java Log Message: Pretty print code Index: MBeanAccessor.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/jmx/MBeanAccessor.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MBeanAccessor.java 2 May 2002 19:43:36 -0000 1.5 --- MBeanAccessor.java 30 May 2002 21:33:00 -0000 1.6 *************** *** 13,18 **** /** ! * Tag interface to be implemented by object that provides access to MBean ! * informations * * @author letiemble --- 13,17 ---- /** ! * Tag interface to be implemented by object that provides access to MBean informations * * @author letiemble Index: ObjectNameFinder.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/jmx/ObjectNameFinder.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ObjectNameFinder.java 2 May 2002 19:43:36 -0000 1.4 --- ObjectNameFinder.java 30 May 2002 21:33:00 -0000 1.5 *************** *** 7,13 **** package net.sourceforge.ejtools.jmx; /** ! * Interface implemented by structure that allows ObjectName search by canonical ! * string. * * @author letiemble --- 7,13 ---- package net.sourceforge.ejtools.jmx; + /** ! * Interface implemented by structure that allows ObjectName search by canonical string. * * @author letiemble |
From: Laurent E. <let...@us...> - 2002-05-30 21:32:55
|
Update of /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/servlet/http In directory usw-pr-cvs1:/tmp/cvs-serv8485/common/src/main/net/sourceforge/ejtools/servlet/http Modified Files: CharResponseWrapper.java StringResponseWrapper.java XSLFilter.java Log Message: Pretty print code Index: CharResponseWrapper.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/servlet/http/CharResponseWrapper.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** CharResponseWrapper.java 2 May 2002 19:43:36 -0000 1.4 --- CharResponseWrapper.java 30 May 2002 21:32:52 -0000 1.5 *************** *** 14,19 **** /** ! * A Response wrapper that allows the manipulation of the Servlet Response. ! * Create a buffer based on a Char array. * * @author letiemble --- 14,18 ---- /** ! * A Response wrapper that allows the manipulation of the Servlet Response. Create a buffer based on a Char array. * * @author letiemble Index: StringResponseWrapper.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/servlet/http/StringResponseWrapper.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** StringResponseWrapper.java 2 May 2002 19:43:36 -0000 1.4 --- StringResponseWrapper.java 30 May 2002 21:32:52 -0000 1.5 *************** *** 14,19 **** /** ! * A Response wrapper that allows the manipulation of the Servlet Response. ! * Create a buffer based on a String. * * @author letiemble --- 14,18 ---- /** ! * A Response wrapper that allows the manipulation of the Servlet Response. Create a buffer based on a String. * * @author letiemble Index: XSLFilter.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/servlet/http/XSLFilter.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** XSLFilter.java 2 May 2002 19:43:36 -0000 1.5 --- XSLFilter.java 30 May 2002 21:32:52 -0000 1.6 *************** *** 60,65 **** * @param request Incoming request * @param response Outgoing response ! * @param chain Filter chain to forward the request and the ! * response * @exception IOException In case of error * @exception ServletException In case of error --- 60,64 ---- * @param request Incoming request * @param response Outgoing response ! * @param chain Filter chain to forward the request and the response * @exception IOException In case of error * @exception ServletException In case of error *************** *** 107,112 **** * * @param config The filter configuration ! * @exception ServletException Exception thrown if the filter was not ! * properly configured */ public void init(FilterConfig config) throws ServletException --- 106,110 ---- * * @param config The filter configuration ! * @exception ServletException Exception thrown if the filter was not properly configured */ public void init(FilterConfig config) throws ServletException |
From: Laurent E. <let...@us...> - 2002-05-30 21:32:55
|
Update of /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util In directory usw-pr-cvs1:/tmp/cvs-serv8394/common/src/main/net/sourceforge/ejtools/util Modified Files: ClassTools.java LimitedStack.java Sort.java Log Message: Pretty print code Index: ClassTools.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util/ClassTools.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ClassTools.java 2 May 2002 19:43:36 -0000 1.4 --- ClassTools.java 30 May 2002 21:32:45 -0000 1.5 *************** *** 7,10 **** --- 7,11 ---- package net.sourceforge.ejtools.util; + /** * Utility class to handle Class realted stuff. *************** *** 18,23 **** /** ! * Pretty print a full qualified class name. Specially useful for object ! * arrays. * * @param className The fully qualified class name --- 19,23 ---- /** ! * Pretty print a full qualified class name. Specially useful for object arrays. * * @param className The fully qualified class name Index: LimitedStack.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util/LimitedStack.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** LimitedStack.java 2 May 2002 19:43:36 -0000 1.3 --- LimitedStack.java 30 May 2002 21:32:45 -0000 1.4 *************** *** 10,15 **** /** ! * Extension of the Stack class, which has a limited depth (FIFO stack). This ! * class doesn't allow duplicates. * * @author letiemble --- 10,14 ---- /** ! * Extension of the Stack class, which has a limited depth (FIFO stack). This class doesn't allow duplicates. * * @author letiemble Index: Sort.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util/Sort.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 |
From: Laurent E. <let...@us...> - 2002-05-30 21:32:36
|
Update of /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util In directory usw-pr-cvs1:/tmp/cvs-serv8160/common/src/main/net/sourceforge/ejtools/util Modified Files: JNDI.java Log Message: Add separator constant Index: JNDI.java =================================================================== RCS file: /cvsroot/ejtools/libraries/common/src/main/net/sourceforge/ejtools/util/JNDI.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** JNDI.java 2 May 2002 19:43:36 -0000 1.5 --- JNDI.java 30 May 2002 21:32:29 -0000 1.6 *************** *** 24,35 **** public abstract class JNDI { /** Log4j Logger */ ! static Category logger = Category.getInstance(JNDI.class); ! /** ! * Look-up for a file named jndi.properties in the classpath. If found, it is ! * load into the VM environment. ! */ public static void setJNDIProperties() { --- 24,34 ---- public abstract class JNDI { + /** J2EE JNDI Separator */ + public static String SEPARATOR = "/"; /** Log4j Logger */ ! private static Category logger = Category.getInstance(JNDI.class); ! /** Look-up for a file named jndi.properties in the classpath. If found, it is load into the VM environment. */ public static void setJNDIProperties() { |
From: Laurent E. <let...@us...> - 2002-05-29 20:29:27
|
Update of /cvsroot/ejtools/libraries/xdoclet/src/resources/xdoclet/beans In directory usw-pr-cvs1:/tmp/cvs-serv9033/xdoclet/src/resources/xdoclet/beans Modified Files: Messages.properties beaninfo.j i18n.j Log Message: Final implementation of JavaBean BeanInfo generation. Index: Messages.properties =================================================================== RCS file: /cvsroot/ejtools/libraries/xdoclet/src/resources/xdoclet/beans/Messages.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Messages.properties 24 May 2002 21:05:39 -0000 1.1 --- Messages.properties 29 May 2002 20:29:24 -0000 1.2 *************** *** 4,7 **** generating_beaninfo=Generating {0} source file ! generating_properties_default=Generating properties file {0} for Default Locale. ! generating_properties=Generating properties file {0} for Locale {1}. --- 4,6 ---- generating_beaninfo=Generating {0} source file ! generating_properties=Generating properties file {0} for default Locale. Index: beaninfo.j =================================================================== RCS file: /cvsroot/ejtools/libraries/xdoclet/src/resources/xdoclet/beans/beaninfo.j,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** beaninfo.j 24 May 2002 21:05:39 -0000 1.1 --- beaninfo.j 29 May 2002 20:29:24 -0000 1.2 *************** *** 1,2 **** --- 1,3 ---- + <XDtTagDef:tagDef namespace="JavaBean" handler="xdoclet.beans.tags.JavaBeanTagsHandler"/> /* * <XDtI18n:getString bundle="xdoclet.beans.Messages" resource="do_not_edit"/> *************** *** 23,37 **** { /** Description of the Field */ ! protected BeanDescriptor bd = new BeanDescriptor(<XDtClass:fullClassName/>.class<XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="customizer">, <XDtClass:classTagValue tagName="beaninfo:class" paramName="customizer"/>.class</XDtClass:ifHasClassTag>); /** Description of the Field */ ! protected Image iconMono16<XDtClass:ifHasClassTag tagName="beaninfo:icons" paramName="mono16"> = loadImage("<XDtClass:classTagValue tagName="beaninfo:icons" paramName="mono16"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ ! protected Image iconColor16<XDtClass:ifHasClassTag tagName="beaninfo:icons" paramName="color16"> = loadImage("<XDtClass:classTagValue tagName="beaninfo:icons" paramName="color16"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ ! protected Image iconMono32<XDtClass:ifHasClassTag tagName="beaninfo:icons" paramName="mono32"> = loadImage("<XDtClass:classTagValue tagName="beaninfo:icons" paramName="mono32"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ ! protected Image iconColor32<XDtClass:ifHasClassTag tagName="beaninfo:icons" paramName="color32"> = loadImage("<XDtClass:classTagValue tagName="beaninfo:icons" paramName="color32"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("<XDtClass:fullClassName/>BeanInfo"); --- 24,40 ---- { /** Description of the Field */ ! protected BeanDescriptor bd = new BeanDescriptor(<XDtClass:fullClassName/>.class<XDtClass:ifHasClassTag tagName="javabean:class" paramName="customizer">, <XDtClass:classTagValue tagName="javabean:class" paramName="customizer"/>.class</XDtClass:ifHasClassTag>); /** Description of the Field */ ! protected Image iconMono16<XDtClass:ifHasClassTag tagName="javabean:iconss" paramName="mono16"> = loadImage("<XDtClass:classTagValue tagName="javabean:icons" paramName="mono16"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ ! protected Image iconColor16<XDtClass:ifHasClassTag tagName="javabean:icons" paramName="color16"> = loadImage("<XDtClass:classTagValue tagName="javabean:icons" paramName="color16"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ ! protected Image iconMono32<XDtClass:ifHasClassTag tagName="javabean:icons" paramName="mono32"> = loadImage("<XDtClass:classTagValue tagName="javabean:icons" paramName="mono32"/>")</XDtClass:ifHasClassTag>; /** Description of the Field */ ! protected Image iconColor32<XDtClass:ifHasClassTag tagName="javabean:icons" paramName="color32"> = loadImage("<XDtClass:classTagValue tagName="javabean:icons" paramName="color32"/>")</XDtClass:ifHasClassTag>; ! <XDtConfig:ifConfigParamEquals paramName="i18n" value="true"> /** Description of the Field */ private final static ResourceBundle res = ResourceBundle.getBundle("<XDtClass:fullClassName/>BeanInfo"); + </XDtConfig:ifConfigParamEquals> *************** *** 61,65 **** /** ! * Gets the additionalBeanInfo attribute ... * * @return The additionalBeanInfo value --- 64,68 ---- /** ! * Gets the additionalBeanInfo * * @return The additionalBeanInfo value *************** *** 71,76 **** try { ! <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="stopClass"> ! for (Class cl = <XDtClass:fullClassName/>.class.getSuperclass(); !cl.equals(<XDtClass:classTagValue tagName="beaninfo:class" paramName="stopClass"/>.class.getSuperclass()); cl = cl.getSuperclass()) { bi.addElement(Introspector.getBeanInfo(cl)); } --- 74,79 ---- try { ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="stopClass"> ! for (Class cl = <XDtClass:fullClassName/>.class.getSuperclass(); !cl.equals(<XDtClass:classTagValue tagName="javabean:class" paramName="stopClass"/>.class.getSuperclass()); cl = cl.getSuperclass()) { bi.addElement(Introspector.getBeanInfo(cl)); } *************** *** 88,92 **** /** ! * Gets the beanDescriptor attribute ... * * @return The beanDescriptor value --- 91,95 ---- /** ! * Gets the beanDescriptor * * @return The beanDescriptor value *************** *** 94,106 **** public BeanDescriptor getBeanDescriptor() { ! <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="name">bd.setName("<XDtClass:classTagValue tagName="beaninfo:class" paramName="name"/>");</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="displayName">bd.setDisplayName("<XDtClass:classTagValue tagName="beaninfo:class" paramName="displayName"/>");</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="shortDescription">bd.setShortDescription("<XDtClass:classTagValue tagName="beaninfo:class" paramName="shortDescription"/>");</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="expert">bd.setExpert(<XDtClass:classTagValue tagName="beaninfo:class" paramName="expert" values="true,false"/>);</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="hidden">bd.setHidden(<XDtClass:classTagValue tagName="beaninfo:class" paramName="hidden" values="true,false"/>);</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="preferred">bd.setPreferred(<XDtClass:classTagValue tagName="beaninfo:class" paramName="preferred" values="true,false"/>);</XDtClass:ifHasClassTag> ! <XDtClass:forAllClassTags tagName="beaninfo:attribute"> ! bd.setValue("<XDtClass:classTagValue tagName="beaninfo:attribute" paramName="name"/>","<XDtClass:classTagValue tagName="beaninfo:attribute" paramName="value"/>"); </XDtClass:forAllClassTags> --- 97,118 ---- public BeanDescriptor getBeanDescriptor() { ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="name">bd.setName("<XDtClass:classTagValue tagName="javabean:class" paramName="name"/>");</XDtClass:ifHasClassTag> ! <XDtConfig:ifConfigParamEquals paramName="i18n" value="true"> ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="displayName">bd.setDisplayName(res.getString("bean.displayName"));</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="shortDescription">bd.setShortDescription(res.getString("bean.shortDescription"));</XDtClass:ifHasClassTag> ! </XDtConfig:ifConfigParamEquals> ! ! <XDtConfig:ifConfigParamNotEquals paramName="i18n" value="true"> ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="displayName">bd.setDisplayName("<XDtClass:classTagValue tagName="javabean:class" paramName="displayName"/>");</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="shortDescription">bd.setShortDescription("<XDtClass:classTagValue tagName="javabean:class" paramName="shortDescription"/>");</XDtClass:ifHasClassTag> ! </XDtConfig:ifConfigParamNotEquals> ! ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="expert">bd.setExpert(<XDtClass:classTagValue tagName="javabean:class" paramName="expert" values="true,false"/>);</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="hidden">bd.setHidden(<XDtClass:classTagValue tagName="javabean:class" paramName="hidden" values="true,false"/>);</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="preferred">bd.setPreferred(<XDtClass:classTagValue tagName="javabean:class" paramName="preferred" values="true,false"/>);</XDtClass:ifHasClassTag> ! ! <XDtClass:forAllClassTags tagName="javabean:attribute"> ! bd.setValue("<XDtClass:classTagValue tagName="javabean:attribute" paramName="name"/>","<XDtClass:classTagValue tagName="javabean:attribute" paramName="value"/>"); </XDtClass:forAllClassTags> *************** *** 110,114 **** /** ! * Gets the defaultPropertyIndex attribute ... * * @return The defaultPropertyIndex value --- 122,126 ---- /** ! * Gets the defaultPropertyIndex * * @return The defaultPropertyIndex value *************** *** 116,120 **** public int getDefaultPropertyIndex() { ! String defName = "<XDtClass:classTagValue tagName="beaninfo:class" paramName="defaultProperty" default=""/>"; if (defName.equals("")) { --- 128,132 ---- public int getDefaultPropertyIndex() { ! String defName = "<XDtClass:classTagValue tagName="javabean:class" paramName="defaultProperty" default=""/>"; if (defName.equals("")) { *************** *** 134,138 **** /** ! * Gets the icon attribute ... * * @param type Description of the Parameter --- 146,150 ---- /** ! * Gets the icon * * @param type Description of the Parameter *************** *** 162,166 **** /** ! * Gets the propertyDescriptors attribute ... * * @return The propertyDescriptors value --- 174,178 ---- /** ! * Gets the Property Descriptors * * @return The propertyDescriptors value *************** *** 173,199 **** PropertyDescriptor descriptor = null; ! <XDtClass:forAllClassTags tagName="beaninfo:property"> try { ! descriptor = new PropertyDescriptor("<XDtClass:classTagValue tagName="beaninfo:property" paramName="name"/>",<XDtClass:fullClassName/>.class); ! ! <XDtClass:ifHasClassTag tagName="beaninfo:property" paramName="displayName">descriptor.setDisplayName("<XDtClass:classTagValue tagName="beaninfo:property" paramName="displayName"/>");</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:property" paramName="shortDescription">descriptor.setShortDescription("<XDtClass:classTagValue tagName="beaninfo:property" paramName="shortDescription"/>");</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:property" paramName="expert">descriptor.setExpert(<XDtClass:classTagValue tagName="beaninfo:property" paramName="expert" values="true,false"/>);</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:property" paramName="hidden">descriptor.setHidden(<XDtClass:classTagValue tagName="beaninfo:property" paramName="hidden" values="true,false"/>);</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:property" paramName="preferred">descriptor.setPreferred(<XDtClass:classTagValue tagName="beaninfo:property" paramName="preferred" values="true,false"/>);</XDtClass:ifHasClassTag> ! ! <XDtClass:ifHasClassTag tagName="beaninfo:property" paramName="bound">descriptor.setBound("<XDtClass:classTagValue tagName="beaninfo:property" paramName="bound" values="true,false"/>");</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:property" paramName="constrained">descriptor.setConstrained("<XDtClass:classTagValue tagName="beaninfo:property" paramName="constrained" values="true,false"/>");</XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:property" paramName="propertyEditor">descriptor.setPropertyEditorClass(Class.forName("<XDtClass:classTagValue tagName="beaninfo:property" paramName="propertyEditor"/>"));</XDtClass:ifHasClassTag> ! ! descriptors.add(descriptor); } catch (IntrospectionException e) { ! // Ignore it } </XDtClass:forAllClassTags> --- 185,225 ---- PropertyDescriptor descriptor = null; ! <XDtClass:forAllClassTags tagName="javabean:property" superclasses="false"> try { ! <XDtClass:ifDoesntHaveClassTag tagName="javabean:property" paramName="readOnly"> ! descriptor = new PropertyDescriptor("<XDtClass:classTagValue tagName="javabean:property" paramName="name"/>", <XDtClass:fullClassName/>.class); ! </XDtClass:ifDoesntHaveClassTag> ! ! <XDtClass:ifHasClassTag tagName="javabean:property" paramName="readOnly" > ! descriptor = new PropertyDescriptor("<XDtClass:classTagValue tagName="javabean:property" paramName="name"/>", <XDtClass:fullClassName/>.class, "<XDtJavaBean:getterPrefix tagName="javabean:property" paramName="class"/><XDtJavaBean:capitalizeClassTag tagName="javabean:property" paramName="name"/>", null); ! </XDtClass:ifHasClassTag> } catch (IntrospectionException e) { ! descriptor = new PropertyDescriptor("<XDtClass:classTagValue tagName="javabean:property" paramName="name"/>", <XDtClass:fullClassName/>.class, "<XDtJavaBean:getterPrefix tagName="javabean:property" paramName="class"/><XDtJavaBean:capitalizeClassTag tagName="javabean:property" paramName="name"/>", null); } + <XDtConfig:ifConfigParamEquals paramName="i18n" value="true"> + <XDtClass:ifHasClassTag tagName="javabean:property" paramName="displayName">descriptor.setDisplayName(res.getString("property.<XDtClass:classTagValue tagName="javabean:property" paramName="name"/>.displayName"));</XDtClass:ifHasClassTag> + <XDtClass:ifHasClassTag tagName="javabean:property" paramName="shortDescription">descriptor.setShortDescription(res.getString("property.<XDtClass:classTagValue tagName="javabean:property" paramName="name"/>.shortDescription"));</XDtClass:ifHasClassTag> + </XDtConfig:ifConfigParamEquals> + + <XDtConfig:ifConfigParamNotEquals paramName="i18n" value="true"> + <XDtClass:ifHasClassTag tagName="javabean:property" paramName="displayName">descriptor.setDisplayName("<XDtClass:classTagValue tagName="javabean:property" paramName="displayName"/>");</XDtClass:ifHasClassTag> + <XDtClass:ifHasClassTag tagName="javabean:property" paramName="shortDescription">descriptor.setShortDescription("<XDtClass:classTagValue tagName="javabean:property" paramName="shortDescription"/>");</XDtClass:ifHasClassTag> + </XDtConfig:ifConfigParamNotEquals> + + <XDtClass:ifHasClassTag tagName="javabean:property" paramName="expert">descriptor.setExpert(<XDtClass:classTagValue tagName="javabean:property" paramName="expert" values="true,false"/>);</XDtClass:ifHasClassTag> + <XDtClass:ifHasClassTag tagName="javabean:property" paramName="hidden">descriptor.setHidden(<XDtClass:classTagValue tagName="javabean:property" paramName="hidden" values="true,false"/>);</XDtClass:ifHasClassTag> + <XDtClass:ifHasClassTag tagName="javabean:property" paramName="preferred">descriptor.setPreferred(<XDtClass:classTagValue tagName="javabean:property" paramName="preferred" values="true,false"/>);</XDtClass:ifHasClassTag> + + <XDtClass:ifHasClassTag tagName="javabean:property" paramName="bound">descriptor.setBound("<XDtClass:classTagValue tagName="javabean:property" paramName="bound" values="true,false"/>");</XDtClass:ifHasClassTag> + <XDtClass:ifHasClassTag tagName="javabean:property" paramName="constrained">descriptor.setConstrained("<XDtClass:classTagValue tagName="javabean:property" paramName="constrained" values="true,false"/>");</XDtClass:ifHasClassTag> + <XDtClass:ifHasClassTag tagName="javabean:property" paramName="propertyEditor">descriptor.setPropertyEditorClass(Class.forName("<XDtClass:classTagValue tagName="javabean:property" paramName="propertyEditor"/>"));</XDtClass:ifHasClassTag> + + descriptors.add(descriptor); + </XDtClass:forAllClassTags> *************** *** 226,230 **** <XDtMethod:forAllMethods superclasses="false" sort="true"> ! <XDtMethod:ifHasMethodTag tagName="beaninfo:method"> method = null; --- 252,256 ---- <XDtMethod:forAllMethods superclasses="false" sort="true"> ! <XDtMethod:ifHasMethodTag tagName="javabean:method"> method = null; *************** *** 240,249 **** int pidx = 0; ! <XDtMethod:ifHasMethodTag tagName="beaninfo:param"> ! <XDtMethod:forAllMethodTags tagName="beaninfo:param"> pd[pidx] = new ParameterDescriptor(); ! <XDtMethod:ifHasMethodTag tagName="beaninfo:param" paramName="propertyEditor">pd[pidx].setValue("propertyeditor","<XDtMethod:methodTagValue tagName="beaninfo:param" paramName="propertyEditor"/>");</XDtMethod:ifHasMethodTag> ! pd[pidx++].setDisplayName("<XDtMethod:methodTagValue tagName="beaninfo:param" paramName="displayName"/>"); </XDtMethod:forAllMethodTags> --- 266,289 ---- int pidx = 0; ! <XDtMethod:ifHasMethodTag tagName="javabean:param"> ! <XDtMethod:forAllMethodTags tagName="javabean:param"> pd[pidx] = new ParameterDescriptor(); ! pd[pidx].setName("<XDtMethod:methodTagValue tagName="javabean:param" paramName="name"/>"); ! <XDtMethod:ifHasMethodTag tagName="javabean:param" paramName="propertyEditor">pd[pidx].setValue("propertyeditor","<XDtMethod:methodTagValue tagName="javabean:param" paramName="propertyEditor"/>");</XDtMethod:ifHasMethodTag> ! ! <XDtConfig:ifConfigParamEquals paramName="i18n" value="true"> ! <XDtMethod:ifHasMethodTag tagName="javabean:param" paramName="displayName"> ! pd[pidx].setDisplayName(res.getString("method.<XDtMethod:methodTagValue tagName="javabean:method" paramName="name"/>.<XDtMethod:methodTagValue tagName="javabean:param" paramName="name"/>.displayName")); ! </XDtMethod:ifHasMethodTag> ! </XDtConfig:ifConfigParamEquals> ! ! <XDtConfig:ifConfigParamNotEquals paramName="i18n" value="true"> ! <XDtMethod:ifHasMethodTag tagName="javabean:param" paramName="displayName"> ! pd[pidx].setDisplayName("<XDtMethod:methodTagValue tagName="javabean:param" paramName="displayName"/>"); ! </XDtMethod:ifHasMethodTag> ! </XDtConfig:ifConfigParamNotEquals> ! ! pidx++; </XDtMethod:forAllMethodTags> *************** *** 256,266 **** } ! descriptor.setName("<XDtMethod:methodTagValue tagName="beaninfo:method" paramName="name"/>"); ! <XDtMethod:ifHasMethodTag tagName="beaninfo:method" paramName="displayName">descriptor.setDisplayName("<XDtMethod:methodTagValue tagName="beaninfo:method" paramName="displayName"/>");</XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="beaninfo:method" paramName="shortDescription">descriptor.setShortDescription("<XDtMethod:methodTagValue tagName="beaninfo:method" paramName="shortDescription"/>");</XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="beaninfo:method" paramName="expert">descriptor.setExpert(<XDtMethod:methodTagValue tagName="beaninfo:method" paramName="expert" values="true,false"/>);</XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="beaninfo:method" paramName="hidden">descriptor.setHidden(<XDtMethod:methodTagValue tagName="beaninfo:method" paramName="hidden" values="true,false"/>);</XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="beaninfo:method" paramName="preferred">descriptor.setPreferred(<XDtMethod:methodTagValue tagName="beaninfo:method" paramName="preferred" values="true,false"/>);</XDtMethod:ifHasMethodTag> descriptors.add(descriptor); --- 296,314 ---- } ! descriptor.setName("<XDtMethod:methodTagValue tagName="javabean:method" paramName="name"/>"); ! <XDtConfig:ifConfigParamEquals paramName="i18n" value="true"> ! <XDtMethod:ifHasMethodTag tagName="javabean:method" paramName="displayName">descriptor.setDisplayName(res.getString("method.<XDtMethod:methodTagValue tagName="javabean:method" paramName="name"/>.displayName"));</XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="javabean:method" paramName="shortDescription">descriptor.setDisplayName(res.getString("method.<XDtMethod:methodTagValue tagName="javabean:method" paramName="name"/>.shortDescription"));</XDtMethod:ifHasMethodTag> ! </XDtConfig:ifConfigParamEquals> ! ! <XDtConfig:ifConfigParamNotEquals paramName="i18n" value="true"> ! <XDtMethod:ifHasMethodTag tagName="javabean:method" paramName="displayName">descriptor.setDisplayName("<XDtMethod:methodTagValue tagName="javabean:method" paramName="displayName"/>");</XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="javabean:method" paramName="shortDescription">descriptor.setShortDescription("<XDtMethod:methodTagValue tagName="javabean:method" paramName="shortDescription"/>");</XDtMethod:ifHasMethodTag> ! </XDtConfig:ifConfigParamNotEquals> ! ! <XDtMethod:ifHasMethodTag tagName="javabean:method" paramName="expert">descriptor.setExpert(<XDtMethod:methodTagValue tagName="javabean:method" paramName="expert" values="true,false"/>);</XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="javabean:method" paramName="hidden">descriptor.setHidden(<XDtMethod:methodTagValue tagName="javabean:method" paramName="hidden" values="true,false"/>);</XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="javabean:method" paramName="preferred">descriptor.setPreferred(<XDtMethod:methodTagValue tagName="javabean:method" paramName="preferred" values="true,false"/>);</XDtMethod:ifHasMethodTag> descriptors.add(descriptor); *************** *** 270,274 **** </XDtMethod:forAllMethods> ! return descriptors; } } --- 318,322 ---- </XDtMethod:forAllMethods> ! return (MethodDescriptor[]) descriptors.toArray(new MethodDescriptor[descriptors.size()]); } } Index: i18n.j =================================================================== RCS file: /cvsroot/ejtools/libraries/xdoclet/src/resources/xdoclet/beans/i18n.j,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** i18n.j 24 May 2002 21:05:39 -0000 1.1 --- i18n.j 29 May 2002 20:29:24 -0000 1.2 *************** *** 1,22 **** # # <XDtI18n:getString bundle="xdoclet.beans.Messages" resource="do_not_edit"/> # ! <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="displayName">bean.displayName=<XDtClass:classTagValue tagName="beaninfo:class" paramName="displayName"/></XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:class" paramName="shortDescription">bean.shortDescription=<XDtClass:classTagValue tagName="beaninfo:class" paramName="shortDescription"/></XDtClass:ifHasClassTag> ! <XDtClass:forAllClassTags tagName="beaninfo:property"> ! property.<XDtClass:classTagValue tagName="beaninfo:property" paramName="name"/>.name=<XDtClass:classTagValue tagName="beaninfo:property" paramName="name"/> ! <XDtClass:ifHasClassTag tagName="beaninfo:property" paramName="displayName">property.<XDtClass:classTagValue tagName="beaninfo:property" paramName="name"/>.displayName=<XDtClass:classTagValue tagName="beaninfo:property" paramName="displayName"/></XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="beaninfo:property" paramName="shortDescription">property.<XDtClass:classTagValue tagName="beaninfo:property" paramName="name"/>.shortDescription=<XDtClass:classTagValue tagName="beaninfo:property" paramName="shortDescription"/></XDtClass:ifHasClassTag> </XDtClass:forAllClassTags> <XDtMethod:forAllMethods superclasses="false" sort="true"> ! <XDtMethod:ifHasMethodTag tagName="beaninfo:method"> ! method.<XDtMethod:methodName/>.name=<XDtMethod:methodName/> ! <XDtMethod:ifHasMethodTag tagName="beaninfo:method" paramName="displayName">method.<XDtMethod:methodTagValue tagName="beaninfo:method" paramName="name"/>.displayName=<XDtMethod:methodTagValue tagName="beaninfo:method" paramName="displayName"/></XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="beaninfo:method" paramName="shortDescription">method.<XDtMethod:methodTagValue tagName="beaninfo:method" paramName="name"/>.shortDescription=<XDtMethod:methodTagValue tagName="beaninfo:method" paramName="shortDescription"/></XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="beaninfo:param"> ! <XDtMethod:forAllMethodTags tagName="beaninfo:param"> ! method.<XDtMethod:methodName/>.<XDtMethod:methodTagValue tagName="beaninfo:param" paramName="name"/>.displayName=<XDtMethod:methodTagValue tagName="beaninfo:param" paramName="displayName"/> </XDtMethod:forAllMethodTags> </XDtMethod:ifHasMethodTag> --- 1,21 ---- # # <XDtI18n:getString bundle="xdoclet.beans.Messages" resource="do_not_edit"/> + # <XDtConfig:configParameterValue paramName="locale"/> # ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="displayName">bean.displayName=<XDtClass:classTagValue tagName="javabean:class" paramName="displayName"/></XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="javabean:class" paramName="shortDescription">bean.shortDescription=<XDtClass:classTagValue tagName="javabean:class" paramName="shortDescription"/></XDtClass:ifHasClassTag> ! <XDtClass:forAllClassTags tagName="javabean:property"> ! <XDtClass:ifHasClassTag tagName="javabean:property" paramName="displayName">property.<XDtClass:classTagValue tagName="javabean:property" paramName="name"/>.displayName=<XDtClass:classTagValue tagName="javabean:property" paramName="displayName"/></XDtClass:ifHasClassTag> ! <XDtClass:ifHasClassTag tagName="javabean:property" paramName="shortDescription">property.<XDtClass:classTagValue tagName="javabean:property" paramName="name"/>.shortDescription=<XDtClass:classTagValue tagName="javabean:property" paramName="shortDescription"/></XDtClass:ifHasClassTag> </XDtClass:forAllClassTags> <XDtMethod:forAllMethods superclasses="false" sort="true"> ! <XDtMethod:ifHasMethodTag tagName="javabean:method"> ! <XDtMethod:ifHasMethodTag tagName="javabean:method" paramName="displayName">method.<XDtMethod:methodTagValue tagName="javabean:method" paramName="name"/>.displayName=<XDtMethod:methodTagValue tagName="javabean:method" paramName="displayName"/></XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="javabean:method" paramName="shortDescription">method.<XDtMethod:methodTagValue tagName="javabean:method" paramName="name"/>.shortDescription=<XDtMethod:methodTagValue tagName="javabean:method" paramName="shortDescription"/></XDtMethod:ifHasMethodTag> ! <XDtMethod:ifHasMethodTag tagName="javabean:param"> ! <XDtMethod:forAllMethodTags tagName="javabean:param"> ! method.<XDtMethod:methodName/>.<XDtMethod:methodTagValue tagName="javabean:param" paramName="name"/>.displayName=<XDtMethod:methodTagValue tagName="javabean:param" paramName="displayName"/> </XDtMethod:forAllMethodTags> </XDtMethod:ifHasMethodTag> |
From: Laurent E. <let...@us...> - 2002-05-29 20:29:27
|
Update of /cvsroot/ejtools/libraries/xdoclet/src/main/xdoclet/beans In directory usw-pr-cvs1:/tmp/cvs-serv9033/xdoclet/src/main/xdoclet/beans Modified Files: BeanInfoSubTask.java I18NSubTask.java JavaBeanDocletTask.java Log Message: Final implementation of JavaBean BeanInfo generation. Index: BeanInfoSubTask.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xdoclet/src/main/xdoclet/beans/BeanInfoSubTask.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BeanInfoSubTask.java 24 May 2002 21:05:39 -0000 1.1 --- BeanInfoSubTask.java 29 May 2002 20:29:24 -0000 1.2 *************** *** 1,40 **** ! package xdoclet.beans; ! ! import xdoclet.TemplateSubTask; ! import xdoclet.XDocletException; ! import xdoclet.template.TemplateException; ! import xdoclet.template.TemplateEngine; ! import xdoclet.util.Log; ! import xdoclet.util.Translator; ! ! import java.io.File; ! import java.io.IOException; ! import java.text.MessageFormat; ! import java.util.*; ! ! import org.apache.log4j.Category; ! ! public class BeanInfoSubTask extends TemplateSubTask ! { ! public final static String SUBTASK_NAME = "beaninfo"; ! ! private static String DEFAULT_TEMPLATE_FILE = "/xdoclet/beans/beaninfo.j"; ! private static String GENERATED_FILE_NAME = "{0}BeanInfo.java"; ! ! public BeanInfoSubTask() ! { ! setTemplateURL( getClass().getResource( DEFAULT_TEMPLATE_FILE ) ); ! setDestinationFile( GENERATED_FILE_NAME ); ! setHavingClassTag( "beaninfo:class" ); ! } ! ! public String getSubTaskName() ! { ! return SUBTASK_NAME; ! } ! ! protected void engineStarted() throws XDocletException ! { ! System.out.println( Translator.getString( "xdoclet.beans.Messages", "generating_beaninfo", new String[]{super.getCurrentClass().qualifiedName() + "BeanInfo.java"} ) ); ! } ! } --- 1,86 ---- ! package xdoclet.beans; ! ! import java.io.File; ! import java.io.IOException; ! import java.text.MessageFormat; ! ! import org.apache.log4j.Category; ! ! import xdoclet.TemplateSubTask; ! import xdoclet.XDocletException; ! import xdoclet.template.TemplateEngine; ! import xdoclet.template.TemplateException; ! import xdoclet.util.Log; ! import xdoclet.util.Translator; ! ! /** ! * Description of the Class ! * ! * @author laurent ! * @created 26 mai 2002 ! */ ! public class BeanInfoSubTask extends TemplateSubTask ! { ! /** Description of the Field */ ! protected boolean i18nGeneration = false; ! ! /** Description of the Field */ ! private static String DEFAULT_TEMPLATE_FILE = "/xdoclet/beans/beaninfo.j"; ! /** Description of the Field */ ! private static String GENERATED_FILE_NAME = "{0}BeanInfo.java"; ! /** Description of the Field */ ! public final static String SUBTASK_NAME = "beaninfo"; ! ! ! /** Constructor for the BeanInfoSubTask object */ ! public BeanInfoSubTask() ! { ! setDestinationFile(GENERATED_FILE_NAME); ! setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); ! setHavingClassTag("javabean:class"); ! } ! ! ! /** ! * Gets the subTaskName attribute of the BeanInfoSubTask object ! * ! * @return The subTaskName value ! */ ! public String getSubTaskName() ! { ! return SUBTASK_NAME; ! } ! ! ! /** ! * Gets the i18n attribute of the BeanInfoSubTask object ! * ! * @return The i18n value ! */ ! public boolean isI18n() ! { ! return i18nGeneration; ! } ! ! ! /** ! * Sets the i18n attribute of the BeanInfoSubTask object ! * ! * @param value The new i18n value ! */ ! public void setI18n(boolean value) ! { ! i18nGeneration = value; ! } ! ! ! /** ! * Description of the Method ! * ! * @exception XDocletException Description of the Exception ! */ ! protected void engineStarted() throws XDocletException ! { ! System.out.println(Translator.getString("xdoclet.beans.Messages", "generating_beaninfo", new String[]{super.getCurrentClass().qualifiedName() + "BeanInfo.java"})); ! } ! } Index: I18NSubTask.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xdoclet/src/main/xdoclet/beans/I18NSubTask.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** I18NSubTask.java 24 May 2002 21:05:39 -0000 1.1 --- I18NSubTask.java 29 May 2002 20:29:24 -0000 1.2 *************** *** 1,65 **** ! package xdoclet.beans; ! ! import xdoclet.TemplateSubTask; ! import xdoclet.XDocletException; ! import xdoclet.template.TemplateException; ! import xdoclet.template.TemplateEngine; ! import xdoclet.util.Log; ! import xdoclet.util.Translator; ! ! import java.io.File; ! import java.io.IOException; ! import java.text.MessageFormat; ! import java.util.*; ! ! import org.apache.log4j.Category; ! ! public class I18NSubTask extends TemplateSubTask ! { ! public final static String SUBTASK_NAME = "i18n"; ! ! protected String locale; ! private static String DEFAULT_TEMPLATE_FILE = "/xdoclet/beans/i18n.j"; ! private static String GENERATED_FILE_NAME = "{0}BeanInfo"; ! private static String GENERATED_FILE_EXTENSION = ".properties"; ! ! public String getLocale() ! { ! return locale; ! } ! ! public void setLocale( String new_locale) ! { ! locale = new_locale; ! } ! ! public I18NSubTask() ! { ! setTemplateURL( getClass().getResource( DEFAULT_TEMPLATE_FILE ) ); ! setHavingClassTag( "beaninfo:class" ); ! } ! ! public String getSubTaskName() ! { ! return SUBTASK_NAME; ! } ! ! public void execute() throws XDocletException ! { ! if ((getLocale() == null) || ("".equals(getLocale()))) { ! setDestinationFile( GENERATED_FILE_NAME + GENERATED_FILE_EXTENSION ); ! } else { ! setDestinationFile( GENERATED_FILE_NAME + "_" + getLocale() + GENERATED_FILE_EXTENSION ); ! } ! startProcess(); ! } ! ! protected void engineStarted() throws XDocletException ! { ! if (locale == null) { ! System.out.println( Translator.getString( "xdoclet.beans.Messages", "generating_properties_default", new String[]{super.getCurrentClass().qualifiedName() + "BeanInfo"} ) ); ! } else { ! System.out.println( Translator.getString( "xdoclet.beans.Messages", "generating_properties", new String[]{super.getCurrentClass().qualifiedName() + "BeanInfo", getLocale()} ) ); ! } ! } ! } --- 1,65 ---- ! package xdoclet.beans; ! ! import java.io.File; ! import java.io.IOException; ! import java.text.MessageFormat; ! import java.util.Hashtable; ! ! import org.apache.log4j.Category; ! ! import xdoclet.ConfigParameter; ! import xdoclet.DocletContext; ! import xdoclet.SubTask; ! import xdoclet.TemplateSubTask; ! import xdoclet.XDocletException; ! import xdoclet.template.TemplateEngine; ! import xdoclet.template.TemplateException; ! import xdoclet.util.Log; ! import xdoclet.util.Translator; ! ! /** ! * Description of the Class ! * ! * @author laurent ! * @created 26 mai 2002 ! */ ! public class I18NSubTask extends TemplateSubTask ! { ! /** Description of the Field */ ! private static String DEFAULT_TEMPLATE_FILE = "/xdoclet/beans/i18n.j"; ! /** Description of the Field */ ! private static String GENERATED_FILE_NAME = "{0}BeanInfo.properties"; ! /** Description of the Field */ ! public final static String SUBTASK_NAME = "i18n"; ! ! ! /** Constructor for the I18NSubTask object */ ! public I18NSubTask() ! { ! setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); ! setDestinationFile(GENERATED_FILE_NAME); ! setHavingClassTag("javabean:class"); ! } ! ! ! /** ! * Gets the subTaskName attribute of the I18NSubTask object ! * ! * @return The subTaskName value ! */ ! public String getSubTaskName() ! { ! return SUBTASK_NAME; ! } ! ! ! /** ! * Description of the Method ! * ! * @exception XDocletException Description of the Exception ! */ ! protected void engineStarted() throws XDocletException ! { ! System.out.println(Translator.getString("xdoclet.beans.Messages", "generating_properties", new String[]{super.getCurrentClass().qualifiedName() + "BeanInfo"})); ! } ! } Index: JavaBeanDocletTask.java =================================================================== RCS file: /cvsroot/ejtools/libraries/xdoclet/src/main/xdoclet/beans/JavaBeanDocletTask.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JavaBeanDocletTask.java 24 May 2002 21:05:39 -0000 1.1 --- JavaBeanDocletTask.java 29 May 2002 20:29:24 -0000 1.2 *************** *** 1,39 **** ! package xdoclet.beans; ! ! import xdoclet.DocletTask; ! import xdoclet.doc.info.InfoSubTask; ! ! import java.util.Vector; ! ! public class JavaBeanDocletTask extends DocletTask ! { ! protected Vector tasks = new Vector(); ! ! public JavaBeanDocletTask() { ! } ! ! public BeanInfoSubTask createBeanInfo() ! { ! BeanInfoSubTask beaninfo = new BeanInfoSubTask(); ! tasks.add(beaninfo); ! ! return beaninfo; ! } ! ! public I18NSubTask createI18N() ! { ! I18NSubTask i18n = new I18NSubTask(); ! tasks.add(i18n); ! ! return i18n; ! } ! ! protected Vector getSubTasks() ! { ! Vector subtasks = super.getSubTasks(); ! ! subtasks.addAll(tasks); ! ! return subtasks; ! } ! } --- 1,66 ---- ! package xdoclet.beans; ! import java.util.Hashtable; ! import java.util.Vector; ! import xdoclet.DocletContext; ! ! import xdoclet.DocletTask; ! import xdoclet.SubTask; ! ! /** ! * Description of the Class ! * ! * @author laurent ! * @created 26 mai 2002 ! */ ! public class JavaBeanDocletTask extends DocletTask ! { ! /** Description of the Field */ ! protected Vector tasks = new Vector(); ! ! ! /** Constructor for the JavaBeanDocletTask object */ ! public JavaBeanDocletTask() { } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Return Value ! */ ! public BeanInfoSubTask createBeanInfo() ! { ! BeanInfoSubTask beaninfo = new BeanInfoSubTask(); ! tasks.add(beaninfo); ! ! return beaninfo; ! } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Return Value ! */ ! public I18NSubTask createI18N() ! { ! I18NSubTask i18n = new I18NSubTask(); ! tasks.add(i18n); ! ! return i18n; ! } ! ! ! /** ! * Gets the subTasks attribute of the JavaBeanDocletTask object ! * ! * @return The subTasks value ! */ ! protected Vector getSubTasks() ! { ! Vector subtasks = super.getSubTasks(); ! ! subtasks.addAll(tasks); ! ! return subtasks; ! } ! } |
From: Laurent E. <let...@us...> - 2002-05-29 20:29:27
|
Update of /cvsroot/ejtools/libraries/xdoclet/src/main/xdoclet/beans/tags In directory usw-pr-cvs1:/tmp/cvs-serv9033/xdoclet/src/main/xdoclet/beans/tags Added Files: JavaBeanTagsHandler.java Log Message: Final implementation of JavaBean BeanInfo generation. --- NEW FILE: JavaBeanTagsHandler.java --- package xdoclet.beans.tags; import java.util.Properties; import com.sun.javadoc.*; import org.apache.log4j.Category; import xdoclet.XDocletException; import xdoclet.tags.AbstractProgramElementTagsHandler; /** * Description of the Class * * @author letiembl * @created 28 mai 2002 */ public class JavaBeanTagsHandler extends AbstractProgramElementTagsHandler { /** * Description of the Method * * @param attributes Description of the Parameter * @return Description of the Return Value * @exception XDocletException Description of the Exception * @doc:tag type="content" * @doc:param name="tagName" optional="false" * description="The tag name." * @doc:param name="paramName" description="The parameter * name. If not specified, then the raw content of the tag is returned." * @doc:param name="paramNum" description="The zero-based * parameter number. It's used if the user used the space-separated * format for specifying parameters." * @doc:param name="superclasses" values="true,false" * description="If true then traverse superclasses also, otherwise look * up the tag in current concrete class only." */ public String capitalizeClassTag(Properties attributes) throws XDocletException { String name = getTagValue(attributes, FOR_CLASS); if (name == null || name.length() == 0) { return name; } if (name.length() > 1 && Character.isUpperCase(name.charAt(1)) && Character.isUpperCase(name.charAt(0))) { return name; } char chars[] = name.toCharArray(); chars[0] = Character.toUpperCase(chars[0]); return new String(chars); } /** * Description of the Method * * @param attributes Description of the Parameter * @return Description of the Return Value * @exception XDocletException Description of the Exception * @doc:tag type="content" * @doc:param name="tagName" optional="false" * description="The tag name." * @doc:param name="paramName" description="The parameter * name. If not specified, then the raw content of the tag is returned." * @doc:param name="paramNum" description="The zero-based * parameter number. It's used if the user used the space-separated * format for specifying parameters." * @doc:param name="superclasses" values="true,false" * description="If true then traverse superclasses also, otherwise look * up the tag in current concrete class only." */ public String getterPrefix(Properties attributes) throws XDocletException { String name = getTagValue(attributes, FOR_CLASS); if ("boolean".equals(name)) { return "is"; } if ("java.lang.Boolean".equals(name)) { return "is"; } return "get"; } } |
From: Laurent E. <let...@us...> - 2002-05-29 20:29:27
|
Update of /cvsroot/ejtools/libraries/xdoclet/src/docs In directory usw-pr-cvs1:/tmp/cvs-serv9033/xdoclet/src/docs Added Files: javabeandoclet.html javabeandoclet_toc.html toc.html Log Message: Final implementation of JavaBean BeanInfo generation. --- NEW FILE: javabeandoclet.html --- <HTML> <HEAD> <TITLE>XDoclet - EJB</TITLE> </HEAD> <BODY BGCOLOR="#ffffff"> <H2><ejbdoclet/> Task</H2> <P>This task allows you to generate various EJB-related files using nested subtasks and template files.</P> <P>You no longer view EJBeans as a bunch of interfaces and deployment descriptor files. You simply program your component and ejbdoclet does the rest, from generating component and home interfaces to deployment descriptor. The point is that you program your component and specify its meta-data in a per component fashion, you don't have to deal with monolithic ejb-jar.xml files, you set the deployment meta-data per component. You don't have to worry about outdating deployment meta-data whenever you touch the code. The deployment meta-data is [...1537 lines suppressed...] <H4><A NAME="dao-call">@dao:call</A></H4> <P>The method is a call to a data access object; the method will be included in the DAO interface, and the EJB's generated subclass will contain a call to the DAO's method.</P> <TABLE BORDER="1" CELLPADDING="7"> <TR VALIGN="top"> <TD>Parameter</TD> <TD>Usage</TD> </TR> <TR VALIGN="top"> <TD><I>[name]</I>: String</TD> <TD>Optionally specify the method's name in the DAO (it need not be the same as the calling method in the EJB). If not specified, the default is the usual interface equivalent of the method's name (i.e. generally the same, but ejbFindByX becomes findByX etc.)</TD> </TR> </TABLE> </BODY> </HTML> --- NEW FILE: javabeandoclet_toc.html --- <HTML> <HEAD> <BASE TARGET="mainFrame"> </HEAD> <BODY BGCOLOR="#ffffff"> <H2><a target="_self" href="toc.html"> <img border="0" src="images/logo.gif" width="172" height="95"></a></H2> <H2>EJBDoclet</H2> <A TARGET="_self" HREF="toc.html">Up</A><BR> <H3>Standard Subtasks</H3> <UL> <LI><A HREF="ejbdoclet.html#subtask_dao">dao</A> <LI><A HREF="ejbdoclet.html#subtask_dataobject">dataobject</A> <LI><A HREF="ejbdoclet.html#subtask_deploymentdescriptor">deploymentdescriptor</A> <LI><A HREF="ejbdoclet.html#subtask_entitybmp">entitybmp</A> <LI><A HREF="ejbdoclet.html#subtask_entitycmp">entitycmp</A> <LI><A HREF="ejbdoclet.html#subtask_entitypk">entitypk</A> <LI><A HREF="ejbdoclet.html#subtask_homeinterface">homeinterface</A> <LI><A HREF="ejbdoclet.html#subtask_homeinterface">localhomeinterface</A> <LI><A HREF="ejbdoclet.html#subtask_remoteinterface">localinterface</A> <LI><A HREF="ejbdoclet.html#subtask_packageSubstitution">packageSubstitution</A> <LI><A HREF="ejbdoclet.html#subtask_remoteinterface">remoteinterface</A> <LI><A HREF="ejbdoclet.html#subtask_session">session</A> <LI><A HREF="ejbdoclet.html#subtask_utilobject">utilobject</A> </UL> <H3>Vendor Subtasks</H3> <UL> <LI><A HREF="apachesoap.html">apachesoap</A> <LI><A HREF="bluestone.html">bluestone</A> <LI><A HREF="castor.html">castormapping</A> <LI><A HREF="jboss.html">jboss</A> <LI><A HREF="jrun.html">jrun</A> <LI><A HREF="mvcsoft.html">mvcsoft</A> <LI><A HREF="orion.html">orion</A> <LI>pramati (needs documenting) <LI><A HREF="struts.html#strutsform">strutsform</A> <LI><A HREF="weblogic.html">weblogic</A> <LI><A HREF="websphere.html">websphere</A> </UL> <H3>Standard Tags</H3> <UL> <LI><A HREF="ejbdoclet.html#aggregate">@ejb:aggregate</A> <LI><A HREF="ejbdoclet.html#bean">@ejb:bean</A> <LI><A HREF="ejbdoclet.html#create-method">@ejb:create-method</A> <LI><A HREF="ejbdoclet.html#dao">@ejb:dao</A> <LI><A HREF="ejbdoclet.html#data-object">@ejb:data-object</A> <LI><A HREF="ejbdoclet.html#ejb-external-ref">@ejb:ejb-external-ref</A> <LI><A HREF="ejbdoclet.html#ejb-ref">@ejb:ejb-ref</A> <LI><A HREF="ejbdoclet.html#transaction">@ejb:ejb-transaction</A> <LI><A HREF="ejbdoclet.html#env-entry">@ejb:env-entry</A> <LI><A HREF="ejbdoclet.html#finder">@ejb:finder</A> <LI><A HREF="ejbdoclet.html#home">@ejb:home</A> <LI><A HREF="ejbdoclet.html#home-method">@ejb:home-method</A> <LI><A HREF="ejbdoclet.html#interface">@ejb:interface</A> <LI><A HREF="ejbdoclet.html#interface-method">@ejb:interface-method</A> <LI><A HREF="ejbdoclet.html#permission">@ejb:permission</A> <LI><A HREF="ejbdoclet.html#persistent-field">@ejb:persistent-field</A> <LI><A HREF="ejbdoclet.html#pk">@ejb:pk</A> <LI><A HREF="ejbdoclet.html#pk-field">@ejb:pk-field</A> <LI><A HREF="ejbdoclet.html#relation">@ejb:relation</A> <LI><A HREF="ejbdoclet.html#resource-env-ref">@ejb:resource-env-ref</A> <LI><A HREF="ejbdoclet.html#resource-ref">@ejb:resource-ref</A> <LI><A HREF="ejbdoclet.html#security-identity">@ejb:security-identity</A> <LI><A HREF="ejbdoclet.html#security-role-ref">@ejb:security-role-ref</A> <LI><A HREF="ejbdoclet.html#select">@ejb:select</A> <LI><A HREF="ejbdoclet.html#transaction">@ejb:transaction</A> <LI><A HREF="ejbdoclet.html#util">@ejb:util</A> <LI><A HREF="ejbdoclet.html#dao-call">@dao:call</A> </UL> <H3>Vendor tags</H3> <H4>Apache SOAP</H4> <UL> <LI><A HREF="apachesoap.html#method">@soap:method</A> <LI><A HREF="apachesoap.html#service">@soap:service</A> </UL> <H4>Bluestone</H4> <UL> <LI><A HREF="bluestone.html#bean">@bluestone:bean</A> <LI><A HREF="bluestone.html#pool">@bluestone:pool</A> <LI><A HREF="bluestone.html#ejb-ref">@bluestone:ejb-ref</A> </UL> <H4>Castor</H4> <UL> <LI><A HREF="castor.html#class">@castor:class</A> <LI><A HREF="castor.html#field">@castor:field</A> <LI><A HREF="castor.html#field-sql">@castor:field-sql</A> <LI><A HREF="castor.html#field-xml">@castor:field-xml</A> </UL> <H4>JBoss</H4> <UL> <LI><A HREF="jboss.html#cmp-field">@jboss:cmp-field</A> <LI><A HREF="jboss.html#column-name">@jboss:column-name</A> <LI><A HREF="jboss.html#container-configuration">@jboos:container-configuration</A> <LI><A HREF="jboss.html#create-table">@jboss:create-table</A> <LI><A HREF="jboss.html#destination-jndi-name">@jboss:destination-jndi-name</A> <LI><A HREF="jboss.html#ejb-ref-jndi">@jboss:ejb-ref-jndi</A> <LI><A HREF="jboss.html#finder-query">@jboss:finder-query</A> <LI><A HREF="jboss.html#jdbc-type">@jboss:jdbc-type</A> <LI><A HREF="jboss.html#not-persisted-field">@jboss:not-persisted-field</A> <LI><A HREF="jboss.html#read-only">@jboss:read-only</A> <LI><A HREF="jboss.html#relation">@jboss:relation</A> <LI><A HREF="jboss.html#remove-table">@jboss:remove-table</A> <LI><A HREF="jboss.html#resource-manager">@jboss:resource-manager</A> <LI><A HREF="jboss.html#resource-ref">@jboss:resource-ref</A> <LI><A HREF="jboss.html#sql-type">@jboss:sql-type</A> <LI><A HREF="jboss.html#table-name">@jboss:table-name</A> <LI><A HREF="jboss.html#time-out">@jboss:time-out</A> <LI><A HREF="jboss.html#tuned-updates">@jboss:tuned-updates</A> </UL> <H4>JRun</H4> <UL> <LI><A HREF="jrun.html#always-dirty">@jrun:always-dirty</A> <LI><A HREF="jrun.html#cluster-home">@jrun:cluster-home</A> <LI><A HREF="jrun.html#cluster-object">@jrun:cluster-object</A> <LI><A HREF="jrun.html#commit-option">@jrun:commit-option</A> <LI><A HREF="jrun.html#ejb-local-ref">@jrun:ejb-local-ref</A> <LI><A HREF="jrun.html#ejb-ref">@jrun:ejb-ref</A> <LI><A HREF="jrun.html#instance-pool">@jrun:instance-pool</A> <LI><A HREF="jrun.html#jdbc-mapping">@jrun:jdbc-mapping</A> <LI><A HREF="jrun.html#jdbc-mapping-field">@jrun:jdbc-mappings-field</A> <LI><A HREF="jrun.html#jdbc-mapping-param">@jrun:jdbc-mappings-param</A> <LI><A HREF="jrun.html#jdbc-mappings">@jrun:jdbc-mappings</A> <LI><A HREF="jrun.html#jndi-name">@jrun:jndi-name</A> <LI><A HREF="jrun.html#message-driven-destination">@jrun:message-driven-destination</A> <LI><A HREF="jrun.html#message-driven-subscription">@jrun:message-driven-subscription</A> <LI><A HREF="jrun.html#resource-env-ref">@jrun:resource-env-ref</A> <LI><A HREF="jrun.html#resource-ref">@jrun:resource-ref</A> <LI><A HREF="jrun.html#tx-domain">@jrun:tx-domain</A> <LI><A HREF="jrun.html#timeout">@jrun:timeout</A> </UL> <H4>MVCSoft</H4> <UL> <LI><A HREF="mvcsoft.html#col-name">@mvcsoft:col-name</A> <LI><A HREF="mvcsoft.html#entity">@mvcsoft:entity</A> <LI><A HREF="mvcsoft.html#exclude-from-optimistic-lock">@mvcsoft:exclude-from-optimistic-lock</A> <LI><A HREF="mvcsoft.html#fault-group">@mvcsoft:fault-group</A> <LI><A HREF="mvcsoft.html#high-low-key">@mvcsoft:high-low-key</A> <LI><A HREF="mvcsoft.html#jdbc-type">@mvcsoft:jdbc-type</A> <LI><A HREF="mvcsoft.html#query">@mvcsoft:query</A> <LI><A HREF="mvcsoft.html#relation">@mvcsoft:relation</A> <LI><A HREF="mvcsoft.html#sql-type">@mvcsoft:sql-type</A> <LI><A HREF="mvcsoft.html#unknown-key">@mvcsoft:unknown-key</A> <LI><A HREF="mvcsoft.html#uuid-key">@mvcsoft:uuid-key</A> <LI><A HREF="mvcsoft.html#wrap">@mvcsoft:wrap</A> </UL> <H4>Orion</H4> <UL> <LI><A HREF="orion.html#bean">@orion:bean</A> <LI><A HREF="orion.html#field-persistence-manager-property">@orion:field-persistence-manager-property</A> <LI><A HREF="orion.html#finder">@ejb:finder</A> <LI><A HREF="orion.html#persistence">@orion:persistence</A> </UL> <H4>Struts Forms</H4> <UL> <LI><A HREF="struts.html#form">@struts:form</A> <LI><A HREF="struts.html#form-field">@struts:form-field</A> </UL> <H4>Weblogic</H4> <UL> <LI><A HREF="weblogic.html#allow-concurrent-calls">@weblogic:allow-concurrent-calls</A> <LI><A HREF="weblogic.html#automatic-key-generation">@weblogic:automatic-key-generation</A> <LI><A HREF="weblogic.html#cache">@weblogic:cache</A> <LI><A HREF="weblogic.html#clustering">@weblogic:clustering</A> <LI><A HREF="weblogic.html#column-map">@weblogic:column-map</A> <LI><A HREF="weblogic.html#data-source-name">@weblogic:data-source-name</A> <LI><A HREF="weblogic.html#dbms-column">@weblogic:dbms-column</A> <LI><A HREF="weblogic.html#dbms-column-type">@weblogic:dbms-column-type</A> <LI><A HREF="weblogic.html#delay-database-insert-until">@weblogic:delay-database-insert-until</A> <LI><A HREF="weblogic.html#ejb-reference-description">@weblogic:ejb-reference-description</A> <LI><A HREF="weblogic.html#ejb-local-reference-description">@weblogic:ejb-local-reference-description</A> <LI><A HREF="weblogic.html#enable-call-by-reference">@weblogic:enable-call-by-reference</A> <LI><A HREF="weblogic.html#field-group">@weblogic:field-group</A> <LI><A HREF="weblogic.html#finder">@weblogic:finder</A> <LI><A HREF="weblogic.html#invalidation-target">@weblogic:invalidation-target</A> <LI><A HREF="weblogic.html#lifecycle">@weblogic:lifecycle</A> <LI><A HREF="weblogic.html#message-driven">@weblogic:message-driven</A> <LI><A HREF="weblogic.html#persistence">@weblogic:persistence</A> <LI><A HREF="weblogic.html#pool">@weblogic:pool</A> <LI><A HREF="weblogic.html#relation">@weblogic:relation</A> <LI><A HREF="weblogic.html#resource-description">@weblogic:resource-description</A> <LI><A HREF="weblogic.html#resource-env-description">@weblogic:resource-env-description</A> <LI><A HREF="weblogic.html#run-as-identity-principal">@weblogic:run-as-identity-principal</A> <LI><A HREF="weblogic.html#table-name">@weblogic:table-name</A> <LI><A HREF="weblogic.html#transaction-descriptor">@weblogic:transaction-descriptor</A> </UL> <H4>Websphere</H4> <UL> <LI><A HREF="websphere.html#finder-query">@websphere:finder-query</A> <LI><A HREF="websphere.html#mapping">@websphere:mapping</A> <LI><A HREF="websphere.html#mapping-constraint">@websphere:mapping-constraint</A> <LI><A HREF="websphere.html#resource-ref">@websphere:resource-ref</A> </UL> </BODY> </HTML> --- NEW FILE: toc.html --- <html> <head> <base target="mainFrame"> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"> <meta name="ProgId" content="FrontPage.Editor.Document"> </head> <body bgcolor="#ffffff"> <h3><a target="_top" href="index.html"><img border="0" src="images/logo.gif" width="172" height="95"></a></h3> <h3>Table of Contents</h3> <a href="introduction.html">Introduction</a><br> <a href="using.html">Using XDoclet</a><br> <a href="http://www.jguru.com/faq/XDoclet" target="_blank">FAQ</a><br> <h3>Built in tasks</h3> <ul> <li><a href="ejbdoclet_toc.html" target="navFrame" onclick="top.mainFrame.location='ejbdoclet.html'">EJBDoclet</a></li> <li><a href="webdoclet_toc.html" target="navFrame" onclick="top.mainFrame.location='webdoclet.html'">WebDoclet</a></li> <li><a href="javabeandoclet_toc.html" target="navFrame" onclick="top.mainFrame.location='javabeandoclet.html'">JavaBeanDoclet</a></li> </ul> <h3>Specific Features</h3> <ul> <li><a href="merge.html">Merge Points</a></li> <li><a href="IDE/index.html">IDE Integration</a></li> </ul> <h3>Extending XDoclet</h3> <ul> <li><a href="architecture.html">Architecture</a></li> <li><a href="templates/index.html" target="_top">Template tags</a></li> <li><a href="api/index.html" target="_top">Javadoc</a></li> </ul> <h3>Download</h3> <ul> <li><a target="_blank" href="http://sourceforge.net/project/showfiles.php?group_id=31602&release_id=55318">Binary</a> <li><a href="download_sources.html">Sources</a> </ul> <h3>Related tools</h3> <ul> <li><a href="tools.html#xjavadoc">XJavaDoc</a></li> <li><a href="tools.html#middlegen">Middlegen</a></li> <li><a href="tools.html#xdocletgui">XDoclet GUI</a></li> <li><a href="tools.html#xtags">XTags</a></li> <li><a href="tools.html#reverse">Reverse XDoclet</a></li> </ul> <h3>Propaganda</h3> <ul> <li><a href="http://www.onjava.com/pub/a/onjava/2002/01/30/xdoclet.html" target="_blank">ONJava</a></li> <li><a href="http://www.theserverside.com/resources/article.jsp?l=FutureEJB" target="_blank">TheServerSide</a></li> </ul> <a href="CHANGES.txt">Changes History</a><br> <a href="migration.html">Migrating from EJBDoclet</a><br> <a href="license.html">License</a><br> <a href="resources.html">Resources</a><br> <a href="whoarewe.html">Who are we</a><br> </body> </html> |
From: Laurent E. <let...@us...> - 2002-05-29 20:29:12
|
Update of /cvsroot/ejtools/libraries/xdoclet/src/docs In directory usw-pr-cvs1:/tmp/cvs-serv8991/libraries/xdoclet/src/docs Log Message: Directory /cvsroot/ejtools/libraries/xdoclet/src/docs added to the repository |
From: Laurent E. <let...@us...> - 2002-05-29 20:29:12
|
Update of /cvsroot/ejtools/libraries/xdoclet/src/main/xdoclet/beans/tags In directory usw-pr-cvs1:/tmp/cvs-serv8991/libraries/xdoclet/src/main/xdoclet/beans/tags Log Message: Directory /cvsroot/ejtools/libraries/xdoclet/src/main/xdoclet/beans/tags added to the repository |
From: Laurent E. <let...@us...> - 2002-05-29 07:49:48
|
Update of /cvsroot/ejtools/thirdparty/sun/j2ee In directory usw-pr-cvs1:/tmp/cvs-serv8657/sun/j2ee Modified Files: j2ee.jar Log Message: Update jar Index: j2ee.jar =================================================================== RCS file: /cvsroot/ejtools/thirdparty/sun/j2ee/j2ee.jar,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 Binary files /tmp/cvsbPBNI4 and /tmp/cvsrznIaq differ |
From: Laurent E. <let...@us...> - 2002-05-25 21:03:27
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/webapp/content In directory usw-pr-cvs1:/tmp/cvs-serv2979/jmx.browser/src/webapp/content Modified Files: index.jsp Log Message: Go on sketch Index: index.jsp =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/webapp/content/index.jsp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.jsp 17 May 2002 20:38:13 -0000 1.3 --- index.jsp 25 May 2002 20:44:15 -0000 1.4 *************** *** 91,99 **** <table cellspacing="0" cellpadding="0" border="0"> <tr> ! <td class=".tree-content"> ! <app:treeSpacer name="object" property="depth"/> ! <app:treeLeaf name="object" property="last"/> ! <app:treeRenderer name="object" property="object"/> ! </td> <td class=".tree-content"> <html:link page="/detail.do" paramId="reference" paramName="object" paramProperty="object"> --- 91,95 ---- <table cellspacing="0" cellpadding="0" border="0"> <tr> ! <td class=".tree-content"><app:treeSpacer name="object" property="depth"/><app:treeLeaf name="object" property="last"/><app:treeRenderer renderer="net.sourceforge.ejtools.jmxbrowser.web.taglib.TreeRendererImpl" name="object" property="object"/></td> <td class=".tree-content"> <html:link page="/detail.do" paramId="reference" paramName="object" paramProperty="object"> |
From: Laurent E. <let...@us...> - 2002-05-25 20:55:02
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser In directory usw-pr-cvs1:/tmp/cvs-serv5184/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser Modified Files: AboutDialog.java JNDIBrowser.java Main.java SelectFactoryAction.java Log Message: Pretty print Index: AboutDialog.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/AboutDialog.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** AboutDialog.java 15 May 2002 20:46:29 -0000 1.4 --- AboutDialog.java 25 May 2002 20:54:59 -0000 1.5 *************** *** 20,25 **** /** ! * Custom AboutService that shows the EJTools logo and some informations about ! * the virtual machine. * * @author letiemble --- 20,24 ---- /** ! * Custom AboutService that shows the EJTools logo and some informations about the virtual machine. * * @author letiemble Index: JNDIBrowser.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/JNDIBrowser.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** JNDIBrowser.java 15 May 2002 20:46:29 -0000 1.6 --- JNDIBrowser.java 25 May 2002 20:54:59 -0000 1.7 *************** *** 30,35 **** /** ! * Main JavaBean of the application. Contains all the JavaBean Services such as ! * MenuBarService, FrameService and AboutService. * * @author letiemble --- 30,34 ---- /** ! * Main JavaBean of the application. Contains all the JavaBean Services such as MenuBarService, FrameService and AboutService. * * @author letiemble Index: Main.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/Main.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Main.java 15 May 2002 20:46:29 -0000 1.4 --- Main.java 25 May 2002 20:54:59 -0000 1.5 *************** *** 19,25 **** /** ! * Main class for the JNDI Browser. Construct the classloader dynamically by ! * scanning directories. Once the classloader has been built, launch the Browser ! * with a custom security manager. * * @author letiemble --- 19,24 ---- /** ! * Main class for the JNDI Browser. Construct the classloader dynamically by scanning directories. Once the classloader has been built, launch the Browser with ! * a custom security manager. * * @author letiemble Index: SelectFactoryAction.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/SelectFactoryAction.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SelectFactoryAction.java 15 May 2002 20:46:29 -0000 1.4 --- SelectFactoryAction.java 25 May 2002 20:54:59 -0000 1.5 *************** *** 13,18 **** /** ! * Custom CommandAction to allow the selection of the default ! * QueueConnectionFactory or the default TopicConnectionFactory. * * @author letiemble --- 13,17 ---- /** ! * Custom CommandAction to allow the selection of the default QueueConnectionFactory or the default TopicConnectionFactory. * * @author letiemble |
From: Laurent E. <let...@us...> - 2002-05-25 20:54:50
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model In directory usw-pr-cvs1:/tmp/cvs-serv5113/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model Modified Files: JNDIContext.java JNDIEntry.java Server.java Log Message: Pretty print Index: JNDIContext.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/JNDIContext.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** JNDIContext.java 24 May 2002 21:18:55 -0000 1.5 --- JNDIContext.java 25 May 2002 20:54:47 -0000 1.6 *************** *** 1,218 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package net.sourceforge.ejtools.jndibrowser.model; ! ! import java.awt.Component; ! import java.beans.Customizer; ! import java.beans.beancontext.BeanContext; ! import java.beans.beancontext.BeanContextChild; ! import java.beans.beancontext.BeanContextChildComponentProxy; ! import java.beans.beancontext.BeanContextServiceRevokedListener; ! import java.beans.beancontext.BeanContextServices; ! import java.beans.beancontext.BeanContextServicesSupport; ! import java.util.Iterator; ! import java.util.TooManyListenersException; ! ! import net.sourceforge.ejtools.awt.GenericCustomizer; ! import net.sourceforge.ejtools.util.Sort; ! ! import org.apache.log4j.Category; ! ! /** ! * Ancestor of all element in the JNDI tree. Represents a JNDI Context and can ! * contains other context. ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @beaninfo:class displayName="JNDI Context" shortDescription="JNDI ! * Context" ! * @beaninfo:icons color16="/toolbarButtonGraphics/general/Folder16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" ! * shortDescription="Name of the context" ! * @beaninfo:property name="path" class="java.lang.String" displayName="Full ! * Path" shortDescription="Absolute path of the context" ! */ ! public class JNDIContext extends BeanContextServicesSupport implements BeanContextChildComponentProxy ! { ! /** Customizer of the JavaBean */ ! protected transient Customizer c = null; ! /** Class name of the context */ ! protected String className = ""; ! /** Name of the context */ ! protected String name = ""; ! /** Description of the Field */ ! private static Category logger = Category.getInstance(JNDIContext.class); ! ! ! /** Constructor for the JndiServer object */ ! public JNDIContext() ! { ! super(); ! } ! ! ! /** ! * Gets the class name of the context ! * ! * @return The class name string ! */ ! public String getClassName() ! { ! return this.className; ! } ! ! ! /** ! * Gets the JavaBean customizer of the context ! * ! * @return The customizer ! */ ! public Component getComponent() ! { ! // Lazy creation ! if (c == null) ! { ! c = new GenericCustomizer(true, this); ! } ! return (Component) c; ! } ! ! ! /** ! * Gets the name of the context ! * ! * @return The name string ! */ ! public String getName() ! { ! return this.name; ! } ! ! ! /** ! * Get the absolute JNDI path of the context ! * ! * @return The path value ! */ ! public String getPath() ! { ! try ! { ! BeanContext parent = getBeanContext(); ! if (parent != null) ! { ! JNDIContext context = (JNDIContext) parent; ! String path = context.getPath(); ! if ((path == null) || ("".equals(path))) ! { ! return (getName()); ! } ! else ! { ! return (path + "/" + getName()); ! } ! } ! else ! { ! return ""; ! } ! } ! catch (Exception e) ! { ! logger.warn("Oops, not in a JNDIContext"); ! } ! return null; ! } ! ! ! /** ! * Override of BeanContextServicesSupport to allow recursive access to ! * BeanContext services ! * ! * @param child Child which requested the service ! * @param requestor Requester of the service ! * @param serviceClass Class of the service ! * @param serviceSelector Selector for the service ! * @param bcsrl Listener for the revocation ! * @return The requested service ! * @exception TooManyListenersException Exception in case of error ! */ ! public Object getService(BeanContextChild child, ! Object requestor, ! Class serviceClass, ! Object serviceSelector, ! BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException ! { ! Object service = super.getService(child, requestor, serviceClass, serviceSelector, bcsrl); ! ! // If the service requested is not provided by this BeanContext, try the parent ! if (service == null) ! { ! BeanContextServices bcs = null; ! ! try ! { ! bcs = (BeanContextServices) getBeanContext(); ! } ! catch (ClassCastException cce) ! { ! // Ignore it ! return null; ! } ! ! return bcs.getService(this, requestor, serviceClass, serviceSelector, bcsrl); ! } ! ! return service; ! } ! ! ! /** ! * Return the children of this context as an iterator ! * ! * @return The sorted iterator by class and by name ! */ ! public Iterator iterator() ! { ! return Sort.sortByClassAndName(super.iterator()); ! } ! ! ! /** ! * Implementation of toString() method ! * ! * @return The name of the context ! */ ! public String toString() ! { ! return name == null ? "Undefined" : name; ! } ! ! ! /** ! * Sets the class name of this context ! * ! * @param className The class name ! */ ! protected void setClassName(String className) ! { ! this.className = className; ! } ! ! ! /** ! * Sets the name of this context ! * ! * @param name The name ! */ ! protected void setName(String name) ! { ! this.name = name; ! } ! ! } --- 1,212 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package net.sourceforge.ejtools.jndibrowser.model; ! ! import java.awt.Component; ! import java.beans.Customizer; ! import java.beans.beancontext.BeanContext; ! import java.beans.beancontext.BeanContextChild; ! import java.beans.beancontext.BeanContextChildComponentProxy; ! import java.beans.beancontext.BeanContextServiceRevokedListener; ! import java.beans.beancontext.BeanContextServices; ! import java.beans.beancontext.BeanContextServicesSupport; ! import java.util.Iterator; ! import java.util.TooManyListenersException; ! ! import net.sourceforge.ejtools.awt.GenericCustomizer; ! import net.sourceforge.ejtools.util.Sort; ! ! import org.apache.log4j.Category; ! ! /** ! * Ancestor of all element in the JNDI tree. Represents a JNDI Context and can contains other context. ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @beaninfo:class displayName="JNDI Context" shortDescription="JNDI Context" ! * @beaninfo:icons color16="/toolbarButtonGraphics/general/Folder16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the context" ! * @beaninfo:property name="path" class="java.lang.String" displayName="Full Path" shortDescription="Absolute path of the context" ! */ ! public class JNDIContext extends BeanContextServicesSupport implements BeanContextChildComponentProxy ! { ! /** Customizer of the JavaBean */ ! protected transient Customizer c = null; ! /** Class name of the context */ ! protected String className = ""; ! /** Name of the context */ ! protected String name = ""; ! /** Description of the Field */ ! private static Category logger = Category.getInstance(JNDIContext.class); ! ! ! /** Constructor for the JndiServer object */ ! public JNDIContext() ! { ! super(); ! } ! ! ! /** ! * Gets the class name of the context ! * ! * @return The class name string ! */ ! public String getClassName() ! { ! return this.className; ! } ! ! ! /** ! * Gets the JavaBean customizer of the context ! * ! * @return The customizer ! */ ! public Component getComponent() ! { ! // Lazy creation ! if (c == null) ! { ! c = new GenericCustomizer(true, this); ! } ! return (Component) c; ! } ! ! ! /** ! * Gets the name of the context ! * ! * @return The name string ! */ ! public String getName() ! { ! return this.name; ! } ! ! ! /** ! * Get the absolute JNDI path of the context ! * ! * @return The path value ! */ ! public String getPath() ! { ! try ! { ! BeanContext parent = getBeanContext(); ! if (parent != null) ! { ! JNDIContext context = (JNDIContext) parent; ! String path = context.getPath(); ! if ((path == null) || ("".equals(path))) ! { ! return (getName()); ! } ! else ! { ! return (path + "/" + getName()); ! } ! } ! else ! { ! return ""; ! } ! } ! catch (Exception e) ! { ! logger.warn("Oops, not in a JNDIContext"); ! } ! return null; ! } ! ! ! /** ! * Override of BeanContextServicesSupport to allow recursive access to BeanContext services ! * ! * @param child Child which requested the service ! * @param requestor Requester of the service ! * @param serviceClass Class of the service ! * @param serviceSelector Selector for the service ! * @param bcsrl Listener for the revocation ! * @return The requested service ! * @exception TooManyListenersException Exception in case of error ! */ ! public Object getService(BeanContextChild child, ! Object requestor, ! Class serviceClass, ! Object serviceSelector, ! BeanContextServiceRevokedListener bcsrl) throws TooManyListenersException ! { ! Object service = super.getService(child, requestor, serviceClass, serviceSelector, bcsrl); ! ! // If the service requested is not provided by this BeanContext, try the parent ! if (service == null) ! { ! BeanContextServices bcs = null; ! ! try ! { ! bcs = (BeanContextServices) getBeanContext(); ! } ! catch (ClassCastException cce) ! { ! // Ignore it ! return null; ! } ! ! return bcs.getService(this, requestor, serviceClass, serviceSelector, bcsrl); ! } ! ! return service; ! } ! ! ! /** ! * Return the children of this context as an iterator ! * ! * @return The sorted iterator by class and by name ! */ ! public Iterator iterator() ! { ! return Sort.sortByClassAndName(super.iterator()); ! } ! ! ! /** ! * Implementation of toString() method ! * ! * @return The name of the context ! */ ! public String toString() ! { ! return name == null ? "Undefined" : name; ! } ! ! ! /** ! * Sets the class name of this context ! * ! * @param className The class name ! */ ! protected void setClassName(String className) ! { ! this.className = className; ! } ! ! ! /** ! * Sets the name of this context ! * ! * @param name The name ! */ ! protected void setName(String name) ! { ! this.name = name; ! } ! } Index: JNDIEntry.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/JNDIEntry.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** JNDIEntry.java 24 May 2002 21:18:55 -0000 1.5 --- JNDIEntry.java 25 May 2002 20:54:47 -0000 1.6 *************** *** 16,25 **** * @beaninfo:class displayName="JNDI Entry" shortDescription="JNDI Entry" * @beaninfo:icons color16="/toolbarButtonGraphics/general/File16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" ! * shortDescription="Name of the entry" ! * @beaninfo:property name="className" class="java.lang.String" ! * displayName="Class" shortDescription="Class of the entry" ! * @beaninfo:property name="path" class="java.lang.String" displayName="Full ! * Path" shortDescription="Absolute path of the context" */ public class JNDIEntry extends JNDIContext --- 16,22 ---- * @beaninfo:class displayName="JNDI Entry" shortDescription="JNDI Entry" * @beaninfo:icons color16="/toolbarButtonGraphics/general/File16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the entry" ! * @beaninfo:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the entry" ! * @beaninfo:property name="path" class="java.lang.String" displayName="Full Path" shortDescription="Absolute path of the context" */ public class JNDIEntry extends JNDIContext Index: Server.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/Server.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Server.java 24 May 2002 21:18:55 -0000 1.6 --- Server.java 25 May 2002 20:54:47 -0000 1.7 *************** *** 40,54 **** * @beaninfo:class displayName="JNDI Server" shortDescription="JNDI Server" * @beaninfo:icons color16="/toolbarButtonGraphics/development/Server16.gif" ! * @beaninfo:property name="factory" class="java.lang.String" ! * displayName="Factory" shortDescription="JNDI context factory" ! * @beaninfo:property name="context" class="java.lang.String" ! * displayName="Context" shortDescription="Initial JNDI context" ! * @beaninfo:property name="packages" class="java.lang.String" ! * displayName="Packages" shortDescription="Packages for context" ! * @beaninfo:property name="url" class="java.lang.String" displayName="URL" ! * shortDescription="JNDI Server URL" ! * @beaninfo:property name="searchType" class="int" displayName="Browsing" ! * shortDescription="JNDI context factory" ! * propertyeditor="net.sourceforge.ejtools.jndibrowser.model.SearchTypeEditor" */ public class Server extends JNDIContext --- 40,48 ---- * @beaninfo:class displayName="JNDI Server" shortDescription="JNDI Server" * @beaninfo:icons color16="/toolbarButtonGraphics/development/Server16.gif" ! * @beaninfo:property name="factory" class="java.lang.String" displayName="Factory" shortDescription="JNDI context factory" ! * @beaninfo:property name="context" class="java.lang.String" displayName="Context" shortDescription="Initial JNDI context" ! * @beaninfo:property name="packages" class="java.lang.String" displayName="Packages" shortDescription="Packages for context" ! * @beaninfo:property name="url" class="java.lang.String" displayName="URL" shortDescription="JNDI Server URL" ! * @beaninfo:property name="searchType" class="int" displayName="Browsing" shortDescription="JNDI context factory" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.SearchTypeEditor" */ public class Server extends JNDIContext *************** *** 202,207 **** * Description of the Method * ! * @beaninfo:method name="refresh" displayName="Refresh" ! * shortDescription="Refresh the JNDI tree" */ public void refresh() --- 196,200 ---- * Description of the Method * ! * @beaninfo:method name="refresh" displayName="Refresh" shortDescription="Refresh the JNDI tree" */ public void refresh() |
From: Laurent E. <let...@us...> - 2002-05-25 20:54:38
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms In directory usw-pr-cvs1:/tmp/cvs-serv5066/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms Modified Files: BytesMessageProxy.java ConnectionFactoryProxy.java MapMessageProxy.java MessageProxy.java ObjectMessageProxy.java QueueProxy.java StreamMessageProxy.java TextMessageProxy.java TopicProxy.java Log Message: Pretty print Index: BytesMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/BytesMessageProxy.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** BytesMessageProxy.java 15 May 2002 20:44:51 -0000 1.2 --- BytesMessageProxy.java 25 May 2002 20:54:35 -0000 1.3 *************** *** 21,45 **** * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Bytes Message" shortDescription="JMS ! * Bytes Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/BytesMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" ! * displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery ! * Mode" shortDescription="Delivery Mode" ! * propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" ! * shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" ! * displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" ! * shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is ! * redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" ! * displayName="TimeStamp" shortDescription="TimeStamp" ! * propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" ! * shortDescription="Type" */ public class BytesMessageProxy extends MessageProxy --- 21,34 ---- * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Bytes Message" shortDescription="JMS Bytes Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/BytesMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class BytesMessageProxy extends MessageProxy Index: ConnectionFactoryProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/ConnectionFactoryProxy.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ConnectionFactoryProxy.java 15 May 2002 20:44:51 -0000 1.5 --- ConnectionFactoryProxy.java 25 May 2002 20:54:35 -0000 1.6 *************** *** 30,46 **** * @todo Add log4j logs * @todo Review the exception raised ! * @beaninfo:class displayName="Connection Factory" ! * shortDescription="Connection Factory" * @beaninfo:icons color16="/toolbarButtonGraphics/development/Server16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" ! * shortDescription="Name of the Connection Factory" ! * @beaninfo:property name="className" class="java.lang.String" ! * displayName="Class" shortDescription="Class of the Connection Factory" ! * @beaninfo:property name="queueConnectionFactory" class="boolean" ! * displayName="Can Create QueueConnection" shortDescription="JNDI context ! * factory" ! * @beaninfo:property name="topicConnectionFactory" class="boolean" ! * displayName="Can Create QueueConnection" shortDescription="JNDI context ! * factory" */ public class ConnectionFactoryProxy extends JNDIEntry --- 30,39 ---- * @todo Add log4j logs * @todo Review the exception raised ! * @beaninfo:class displayName="Connection Factory" shortDescription="Connection Factory" * @beaninfo:icons color16="/toolbarButtonGraphics/development/Server16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the Connection Factory" ! * @beaninfo:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the Connection Factory" ! * @beaninfo:property name="queueConnectionFactory" class="boolean" displayName="Can Create QueueConnection" shortDescription="JNDI context factory" ! * @beaninfo:property name="topicConnectionFactory" class="boolean" displayName="Can Create QueueConnection" shortDescription="JNDI context factory" */ public class ConnectionFactoryProxy extends JNDIEntry Index: MapMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/MapMessageProxy.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MapMessageProxy.java 15 May 2002 20:44:51 -0000 1.2 --- MapMessageProxy.java 25 May 2002 20:54:35 -0000 1.3 *************** *** 21,45 **** * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Map Message" shortDescription="JMS Map ! * Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/MapMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" ! * displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery ! * Mode" shortDescription="Delivery Mode" ! * propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" ! * shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" ! * displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" ! * shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is ! * redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" ! * displayName="TimeStamp" shortDescription="TimeStamp" ! * propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" ! * shortDescription="Type" */ public class MapMessageProxy extends MessageProxy --- 21,34 ---- * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Map Message" shortDescription="JMS Map Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/MapMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class MapMessageProxy extends MessageProxy Index: MessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/MessageProxy.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MessageProxy.java 15 May 2002 20:44:51 -0000 1.6 --- MessageProxy.java 25 May 2002 20:54:35 -0000 1.7 *************** *** 37,58 **** * @beaninfo:class displayName="JMS Message" shortDescription="JMS Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/Message16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" ! * displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery ! * Mode" shortDescription="Delivery Mode" ! * propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" ! * shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" ! * displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" ! * shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is ! * redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" ! * displayName="TimeStamp" shortDescription="TimeStamp" ! * propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" ! * shortDescription="Type" */ public class MessageProxy extends JNDIEntry --- 37,48 ---- * @beaninfo:class displayName="JMS Message" shortDescription="JMS Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/Message16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class MessageProxy extends JNDIEntry Index: ObjectMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/ObjectMessageProxy.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ObjectMessageProxy.java 15 May 2002 20:44:51 -0000 1.2 --- ObjectMessageProxy.java 25 May 2002 20:54:35 -0000 1.3 *************** *** 21,45 **** * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Object Message" shortDescription="JMS ! * Object Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/ObjectMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" ! * displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery ! * Mode" shortDescription="Delivery Mode" ! * propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" ! * shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" ! * displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" ! * shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is ! * redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" ! * displayName="TimeStamp" shortDescription="TimeStamp" ! * propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" ! * shortDescription="Type" */ public class ObjectMessageProxy extends MessageProxy --- 21,34 ---- * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Object Message" shortDescription="JMS Object Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/ObjectMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class ObjectMessageProxy extends MessageProxy Index: QueueProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/QueueProxy.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** QueueProxy.java 24 May 2002 21:18:38 -0000 1.6 --- QueueProxy.java 25 May 2002 20:54:35 -0000 1.7 *************** *** 43,52 **** * @beaninfo:class displayName="JMS Queue" shortDescription="JMS Queue" * @beaninfo:icons color16="/toolbarButtonGraphics/development/jms/Queue16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" ! * shortDescription="Name of the entry" ! * @beaninfo:property name="className" class="java.lang.String" ! * displayName="Class" shortDescription="Class of the entry" ! * @beaninfo:property name="count" class="int" displayName="Message(s)" ! * shortDescription="Number of messages in Queue" */ public class QueueProxy extends JNDIEntry --- 43,49 ---- * @beaninfo:class displayName="JMS Queue" shortDescription="JMS Queue" * @beaninfo:icons color16="/toolbarButtonGraphics/development/jms/Queue16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the entry" ! * @beaninfo:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the entry" ! * @beaninfo:property name="count" class="int" displayName="Message(s)" shortDescription="Number of messages in Queue" */ public class QueueProxy extends JNDIEntry *************** *** 76,81 **** * * @todo Add Log4j log ! * @beaninfo:method name="browse" displayName="Browse" ! * shortDescription="Browse the queue" */ public void browse() --- 73,77 ---- * * @todo Add Log4j log ! * @beaninfo:method name="browse" displayName="Browse" shortDescription="Browse the queue" */ public void browse() *************** *** 143,148 **** * Description of the Method * ! * @beaninfo:method name="createMessage" displayName="Create Message" ! * shortDescription="Create a simple message" */ public void createMessage() --- 139,143 ---- * Description of the Method * ! * @beaninfo:method name="createMessage" displayName="Create Message" shortDescription="Create a simple message" */ public void createMessage() *************** *** 192,197 **** * * @param text Description of Parameter ! * @beaninfo:method name="createTextMessage" displayName="Create Text ! * Message" shortDescription="Create a text message" * @beaninfo:param name="text" displayName="Text" */ --- 187,191 ---- * * @param text Description of Parameter ! * @beaninfo:method name="createTextMessage" displayName="Create Text Message" shortDescription="Create a text message" * @beaninfo:param name="text" displayName="Text" */ Index: StreamMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/StreamMessageProxy.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** StreamMessageProxy.java 15 May 2002 20:44:51 -0000 1.2 --- StreamMessageProxy.java 25 May 2002 20:54:35 -0000 1.3 *************** *** 21,45 **** * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Stream Message" shortDescription="JMS ! * Stream Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/StreamMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" ! * displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery ! * Mode" shortDescription="Delivery Mode" ! * propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" ! * shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" ! * displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" ! * shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is ! * redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" ! * displayName="TimeStamp" shortDescription="TimeStamp" ! * propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" ! * shortDescription="Type" */ public class StreamMessageProxy extends MessageProxy --- 21,34 ---- * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Stream Message" shortDescription="JMS Stream Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/StreamMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" */ public class StreamMessageProxy extends MessageProxy Index: TextMessageProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/TextMessageProxy.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** TextMessageProxy.java 15 May 2002 20:44:51 -0000 1.5 --- TextMessageProxy.java 25 May 2002 20:54:35 -0000 1.6 *************** *** 21,48 **** * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Text Message" shortDescription="JMS ! * Text Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/TextMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" ! * displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery ! * Mode" shortDescription="Delivery Mode" ! * propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" ! * shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" ! * displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" ! * shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is ! * redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" ! * displayName="TimeStamp" shortDescription="TimeStamp" ! * propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" ! * shortDescription="Type" ! * @beaninfo:property name="text" class="java.lang.String" displayName="Text" ! * shortDescription="Text of the message" ! * propertyeditor="com.dreambean.awt.editors.TextEditor" */ public class TextMessageProxy extends MessageProxy --- 21,35 ---- * @version $Revision$ * @todo Javadoc to complete ! * @beaninfo:class displayName="JMS Text Message" shortDescription="JMS Text Message" * @beaninfo:icons color16="toolbarButtonGraphics/development/jms/TextMessage16.gif" ! * @beaninfo:property name="correlationId" class="java.lang.String" displayName="Correlation Id" shortDescription="Correlation Id" ! * @beaninfo:property name="deliveryMode" class="int" displayName="Delivery Mode" shortDescription="Delivery Mode" propertyeditor="net.sourceforge.ejtools.jndibrowser.model.jms.DeliveryModeEditor" ! * @beaninfo:property name="expiration" class="long" displayName="Expiration" shortDescription="Expiration" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="messageId" class="java.lang.String" displayName="Message Id" shortDescription="Message Id" ! * @beaninfo:property name="priority" class="int" displayName="Priority" shortDescription="Priority" ! * @beaninfo:property name="redelivered" class="boolean" displayName="Is redelivered" shortDescription="Is redelivered" ! * @beaninfo:property name="timestamp" class="java.util.Date" displayName="TimeStamp" shortDescription="TimeStamp" propertyeditor="net.sourceforge.ejtools.awt.editors.DateTimeEditor" ! * @beaninfo:property name="type" class="java.lang.String" displayName="Type" shortDescription="Type" ! * @beaninfo:property name="text" class="java.lang.String" displayName="Text" shortDescription="Text of the message" propertyeditor="com.dreambean.awt.editors.TextEditor" */ public class TextMessageProxy extends MessageProxy Index: TopicProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/jms/TopicProxy.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TopicProxy.java 24 May 2002 21:18:38 -0000 1.6 --- TopicProxy.java 25 May 2002 20:54:35 -0000 1.7 *************** *** 36,43 **** * @beaninfo:class displayName="JMS Topic" shortDescription="JMS Topic" * @beaninfo:icons color16="/toolbarButtonGraphics/development/jms/Topic16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" ! * shortDescription="Name of the entry" ! * @beaninfo:property name="className" class="java.lang.String" ! * displayName="Class" shortDescription="Class of the entry" */ public class TopicProxy extends JNDIEntry --- 36,41 ---- * @beaninfo:class displayName="JMS Topic" shortDescription="JMS Topic" * @beaninfo:icons color16="/toolbarButtonGraphics/development/jms/Topic16.gif" ! * @beaninfo:property name="name" class="java.lang.String" displayName="Name" shortDescription="Name of the entry" ! * @beaninfo:property name="className" class="java.lang.String" displayName="Class" shortDescription="Class of the entry" */ public class TopicProxy extends JNDIEntry *************** *** 65,70 **** * * @param text Description of Parameter ! * @beaninfo:method name="createTextMessage" displayName="Create Text ! * Message" shortDescription="Create a text message" * @beaninfo:param name="text" displayName="Text" */ --- 63,67 ---- * * @param text Description of Parameter ! * @beaninfo:method name="createTextMessage" displayName="Create Text Message" shortDescription="Create a text message" * @beaninfo:param name="text" displayName="Text" */ |
From: Laurent E. <let...@us...> - 2002-05-25 20:54:25
|
Update of /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb In directory usw-pr-cvs1:/tmp/cvs-serv5030/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb Modified Files: EJBHomeProxy.java EJBObjectProxy.java Log Message: Pretty print Index: EJBHomeProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb/EJBHomeProxy.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EJBHomeProxy.java 15 May 2002 20:44:10 -0000 1.5 --- EJBHomeProxy.java 25 May 2002 20:54:22 -0000 1.6 *************** *** 23,28 **** /** ! * Proxy that hide the remote aspect of the EJB Home interface. Allows the ! * creation of an EJB or of a collection of EJB remotly and displays them as * EJBObjectProxy. * --- 23,27 ---- /** ! * Proxy that hide the remote aspect of the EJB Home interface. Allows the creation of an EJB or of a collection of EJB remotly and displays them as * EJBObjectProxy. * *************** *** 31,41 **** * @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 --- 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 Index: EJBObjectProxy.java =================================================================== RCS file: /cvsroot/ejtools/applications/jndi.browser/src/main/net/sourceforge/ejtools/jndibrowser/model/ejb/EJBObjectProxy.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** EJBObjectProxy.java 15 May 2002 20:44:10 -0000 1.5 --- EJBObjectProxy.java 25 May 2002 20:54:22 -0000 1.6 *************** *** 23,28 **** /** ! * Proxy that hide the remote aspect of the EJB remote interface. Allows the ! * execution of remote methods on the specified EJB. * * @author letiemble --- 23,27 ---- /** ! * Proxy that hide the remote aspect of the EJB remote interface. Allows the execution of remote methods on the specified EJB. * * @author letiemble *************** *** 30,35 **** * @version $Revision$ * @todo Reference to Rickard Öberg ! * @beaninfo:class displayName="Enterprise Java Bean" shortDescription="EJB ! * Remote interface" * @beaninfo:icons color16="/toolbarButtonGraphics/development/EnterpriseJavaBean16.gif" */ --- 29,33 ---- * @version $Revision$ * @todo Reference to Rickard Öberg ! * @beaninfo:class displayName="Enterprise Java Bean" shortDescription="EJB Remote interface" * @beaninfo:icons color16="/toolbarButtonGraphics/development/EnterpriseJavaBean16.gif" */ |