]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/runtime/DefaultAgent.java
Update headers
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / core / runtime / DefaultAgent.java
index 932a6ad4b8aedbde2e2d2ea2f945ce0b1be5da9f..feb59eef0ac92fe73a6b85b5f7a03da2045667b3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ * Copyright (C) 2007-2012 Mathieu Baudier
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -13,7 +13,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.argeo.slc.core.runtime;
 
 import java.net.InetAddress;
@@ -48,6 +47,7 @@ public class DefaultAgent implements SlcAgent, ExecutionProcessNotifier {
        /*
         * LIFECYCLE
         */
+       /** Initialization */
        public void init() {
                try {
                        agentDescriptor = new SlcAgentDescriptor();
@@ -62,7 +62,8 @@ public class DefaultAgent implements SlcAgent, ExecutionProcessNotifier {
                                new HashMap<String, String>());
        }
 
-       public void dispose() {
+       /** Clean up (needs to be called by overriding method) */
+       public void destroy() {
                modulesManager.unregisterProcessNotifier(this,
                                new HashMap<String, String>());
        }