User: user57  
  Date: 02/04/07 01:07:23

  Modified:    varia/src/main/org/jboss/mail MailService.java
  Removed:     varia/src/main/org/jboss/mail MailServiceMBean.java
  Log:
   o Using XDoclet to generate *MBean interfaces
  
  Revision  Changes    Path
  1.7       +45 -5     contrib/varia/src/main/org/jboss/mail/MailService.java
  
  Index: MailService.java
  ===================================================================
  RCS file: /cvsroot/jboss/contrib/varia/src/main/org/jboss/mail/MailService.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- MailService.java  8 Mar 2002 23:19:44 -0000       1.6
  +++ MailService.java  7 Apr 2002 09:07:23 -0000       1.7
  @@ -39,7 +39,10 @@
    * MBean that gives support for JavaMail. Object of class javax.mail.Session will 
be bound
    * in JNDI under java:/ namespace with the name provided with method {@link 
#setJNDIName}.
    *
  - * @version <tt>$Revision: 1.6 $</tt>
  + * @jmx:mbean name="jboss:type=Service,service=Mail"
  + *            extends="org.jboss.system.ServiceMBean"
  + *
  + * @version <tt>$Revision: 1.7 $</tt>
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Simone Bordet</a>
    * @author  <a href="mailto:[EMAIL PROTECTED]";>Jason Dillon</a>
    */
  @@ -47,33 +50,67 @@
      extends ServiceMBeanSupport
      implements MailServiceMBean
   {       
  +   public static final String JNDI_NAME = "java:/Mail";
  +
      private String user;
      private String password;
      private String jndiName = JNDI_NAME;
      private Element config;
  -   /** Object Name of the JSR-77 representant of this servie **/
  +
  +   /** Object Name of the JSR-77 representant of this service */
      ObjectName mMail;
      
  +   /**
  +    * User id used to connect to a mail server
  +    * 
  +    * @see #setPassword
  +    *
  +    * @jmx:managed-attribute
  +    */
      public void setUser(final String user) {
         this.user = user;
      }
      
  -   protected String getUser() {
  +   /**
  +    * @jmx:managed-attribute
  +    */
  +   public String getUser() {
         return user;
      }
      
  +   /**
  +    * Password used to connect to a mail server
  +    * 
  +    * @see #setUser
  +    *
  +    * @jmx:managed-attribute
  +    */
      public void setPassword(final String password) {
         this.password = password;
      }
  -   
  +
  +   /**
  +    * Password is read only.
  +    */
      protected String getPassword() {
         return password;
      }
   
  +   /**
  +    * Configuration for the mail service.
  +    *
  +    * @jmx:managed-attribute
  +    */
      public void setConfiguration(final Element element) {
         config = element;
      }
      
  +   /**
  +    * The JNDI name under the java:/ namespace to which javax.mail.Session 
  +    * objects are bound.
  +    *
  +    * @jmx:managed-attribute
  +    */
      public void setJNDIName(final String name) {
         if (!name.startsWith("java:/")) {
            jndiName = "java:/" + name;
  @@ -83,7 +120,10 @@
         }
      }
      
  -   protected String getJNDIName() {
  +   /**
  +    * @jmx:managed-attribute
  +    */
  +   public String getJNDIName() {
         return jndiName;
      }
   
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to