org.objectweb.jasmine.rules.logs.beans
Class JMSLogInterceptor

java.lang.Object
  extended by org.objectweb.jasmine.rules.logs.beans.JMSLogInterceptor

public class JMSLogInterceptor
extends java.lang.Object

Interceptor class for LogInterface.

This intercepts method invocations in LogInterface objects in order to detect alarm logging.
It sends messages through JMS to notify external interfaces.

Author:
Awa OUEDRAOGO, Laurent RUAUD

Constructor Summary
JMSLogInterceptor()
           
 
Method Summary
 java.lang.Object invoked(javax.interceptor.InvocationContext context)
          Handles method invocations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSLogInterceptor

public JMSLogInterceptor()
Method Detail

invoked

public java.lang.Object invoked(javax.interceptor.InvocationContext context)
                         throws java.lang.Exception
Handles method invocations. This notify the addition of a log on a JMS topic.

Parameters:
context - the context around the invocation.
Returns:
method's invocation result.
Throws:
java.lang.Exception - any exception that invocation may throw.


Copyright © 2009 OW2 Consortium. All Rights Reserved.