sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1812837 - /sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Supervisor.java
Date Sat, 21 Oct 2017 17:41:44 GMT
Author: desruisseaux
Date: Sat Oct 21 17:41:44 2017
New Revision: 1812837

URL: http://svn.apache.org/viewvc?rev=1812837&view=rev
Log:
Keep trace of methods having a system-wide effect.

Modified:
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Supervisor.java

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Supervisor.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Supervisor.java?rev=1812837&r1=1812836&r2=1812837&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Supervisor.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/Supervisor.java
[UTF-8] Sat Oct 21 17:41:44 2017
@@ -37,6 +37,7 @@ import javax.management.InstanceAlreadyE
 import java.lang.management.ManagementFactory;
 
 import org.apache.sis.setup.About;
+import org.apache.sis.util.Configuration;
 import org.apache.sis.util.logging.Logging;
 import org.apache.sis.util.resources.Errors;
 import org.apache.sis.util.resources.Messages;
@@ -83,6 +84,7 @@ public final class Supervisor extends St
      * and the MBean will not be registered. This method does not propagate the exception
      * because the MBean is not a mandatory part of SIS library.</p>
      */
+    @Configuration
     public static synchronized void register() {
         if (name == null) {
             name = ObjectName.WILDCARD;                         // In case of failure.
@@ -113,6 +115,7 @@ public final class Supervisor extends St
      *
      * @throws JMException if an error occurred during unregistration.
      */
+    @Configuration
     static synchronized void unregister() throws JMException {
         final ObjectName n = name;
         if (n != null) {



Mime
View raw message