]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.server/src/main/java/org/argeo/slc/services/EventPublisherAspect.java
Update license header
[gpl/argeo-slc.git] / runtime / org.argeo.slc.server / src / main / java / org / argeo / slc / services / EventPublisherAspect.java
index 72cde61e13aa454cd3e136b7cc4af5de4a3e5793..2f4923c4644c4743980ca00a241094b7fb53a330 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.argeo.slc.services;
 
 import java.util.Iterator;
@@ -27,7 +43,7 @@ public class EventPublisherAspect {
 
        private List<SlcEventPublisher> eventPublishers;
 
-       @After("execution(void org.argeo.slc.services.runtime.AgentService.register(..))")
+       @After("execution(void org.argeo.slc.services.AgentService.register(..))")
        public void registerAgent(JoinPoint jp) throws Throwable {
                SlcAgentDescriptor agentDescriptor = (SlcAgentDescriptor) jp.getArgs()[0];
                SlcEvent event = new SlcEvent(EVT_AGENT_REGISTERED);
@@ -36,7 +52,7 @@ public class EventPublisherAspect {
                publishEvent(event);
        }
 
-       @After("execution(void org.argeo.slc.services.runtime.AgentService.unregister(..))")
+       @After("execution(void org.argeo.slc.services.AgentService.unregister(..))")
        public void unregisterAgent(JoinPoint jp) throws Throwable {
                SlcAgentDescriptor agentDescriptor = (SlcAgentDescriptor) jp.getArgs()[0];
                SlcEvent event = new SlcEvent(EVT_AGENT_UNREGISTERED);
@@ -45,7 +61,7 @@ public class EventPublisherAspect {
                publishEvent(event);
        }
 
-       @After("execution(void org.argeo.slc.services.process.SlcExecutionService.newExecution(..))")
+       @After("execution(void org.argeo.slc.services.SlcExecutionService.newExecution(..))")
        public void newSlcExecution(JoinPoint jp) throws Throwable {
                SlcExecution slcExecution = (SlcExecution) jp.getArgs()[0];
                SlcEvent event = new SlcEvent(EVT_NEW_SLC_EXECUTION);
@@ -54,7 +70,7 @@ public class EventPublisherAspect {
                publishEvent(event);
        }
 
-       @After("execution(void org.argeo.slc.services.process.SlcExecutionService.updateStatus(..))")
+       @After("execution(void org.argeo.slc.services.SlcExecutionService.updateStatus(..))")
        public void updateSlcExecutionStatus(JoinPoint jp) throws Throwable {
                SlcExecutionStatusRequest msg = (SlcExecutionStatusRequest) jp
                                .getArgs()[0];