X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fruntime%2FDefaultAgent.java;h=feb59eef0ac92fe73a6b85b5f7a03da2045667b3;hb=74904a755b5b344238eafa798419b80c5e74f7ed;hp=932a6ad4b8aedbde2e2d2ea2f945ce0b1be5da9f;hpb=2443b6dc0bba6145f08236dd4112517e05a4863d;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/runtime/DefaultAgent.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/runtime/DefaultAgent.java index 932a6ad4b..feb59eef0 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/runtime/DefaultAgent.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/core/runtime/DefaultAgent.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010 Mathieu Baudier + * 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()); } - public void dispose() { + /** Clean up (needs to be called by overriding method) */ + public void destroy() { modulesManager.unregisterProcessNotifier(this, new HashMap()); }