src/share/classes/javax/management/loading/MLet.java

Print this page




 781         this.mletObjectName = name;
 782         return this.mletObjectName;
 783      }
 784 
 785      /**
 786       * Allows the m-let to perform any operations needed after having been
 787       * registered in the MBean server or after the registration has failed.
 788       *
 789       * @param registrationDone Indicates whether or not the m-let has
 790       * been successfully registered in the MBean server. The value
 791       * false means that either the registration phase has failed.
 792       *
 793       */
 794      public void postRegister (Boolean registrationDone) {
 795      }
 796 
 797      /**
 798       * Allows the m-let to perform any operations it needs before being unregistered
 799       * by the MBean server.
 800       *
 801       * @exception java.langException This exception should be caught
 802       * by the MBean server and re-thrown as an
 803       * MBeanRegistrationException.
 804       */
 805      public void preDeregister() throws java.lang.Exception {
 806      }
 807 
 808 
 809      /**
 810       * Allows the m-let to perform any operations needed after having been
 811       * unregistered in the MBean server.
 812       */
 813      public void postDeregister() {
 814      }
 815 
 816      /**
 817       * <p>Save this MLet's contents to the given {@link ObjectOutput}.
 818       * Not all implementations support this method.  Those that do not
 819       * throw {@link UnsupportedOperationException}.  A subclass may
 820       * override this method to support it or to change the format of
 821       * the written data.</p>




 781         this.mletObjectName = name;
 782         return this.mletObjectName;
 783      }
 784 
 785      /**
 786       * Allows the m-let to perform any operations needed after having been
 787       * registered in the MBean server or after the registration has failed.
 788       *
 789       * @param registrationDone Indicates whether or not the m-let has
 790       * been successfully registered in the MBean server. The value
 791       * false means that either the registration phase has failed.
 792       *
 793       */
 794      public void postRegister (Boolean registrationDone) {
 795      }
 796 
 797      /**
 798       * Allows the m-let to perform any operations it needs before being unregistered
 799       * by the MBean server.
 800       *
 801       * @exception java.lang.Exception This exception should be caught
 802       * by the MBean server and re-thrown as an
 803       * MBeanRegistrationException.
 804       */
 805      public void preDeregister() throws java.lang.Exception {
 806      }
 807 
 808 
 809      /**
 810       * Allows the m-let to perform any operations needed after having been
 811       * unregistered in the MBean server.
 812       */
 813      public void postDeregister() {
 814      }
 815 
 816      /**
 817       * <p>Save this MLet's contents to the given {@link ObjectOutput}.
 818       * Not all implementations support this method.  Those that do not
 819       * throw {@link UnsupportedOperationException}.  A subclass may
 820       * override this method to support it or to change the format of
 821       * the written data.</p>