etm.contrib.aop.jboss
Class EtmJbossConstructorInterceptor

java.lang.Object
  extended by etm.contrib.aop.jboss.JbossInterceptorSupport
      extended by etm.contrib.aop.jboss.EtmJbossConstructorInterceptor
All Implemented Interfaces:
org.jboss.aop.advice.Interceptor

public class EtmJbossConstructorInterceptor
extends JbossInterceptorSupport
implements org.jboss.aop.advice.Interceptor

A interceptor that may be used to advise constructor invocations. Be aware that binding this interceptor to a non constructor join point will likely cause a class cast exception.

Since:
1.2.2
Version:
$Revision: 241 $
Author:
void.fm

Field Summary
protected  EtmMonitor etmMonitor
           
 
Constructor Summary
EtmJbossConstructorInterceptor()
           
 
Method Summary
protected  java.lang.String calculateName(org.jboss.aop.joinpoint.ConstructorInvocation aInvocation)
          Calculate EtmPoint name based on the method.
 java.lang.String getName()
           
 java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation aInvocation)
           
 
Methods inherited from class etm.contrib.aop.jboss.JbossInterceptorSupport
alterNamePostException, calculateShortName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

etmMonitor

protected final EtmMonitor etmMonitor
Constructor Detail

EtmJbossConstructorInterceptor

public EtmJbossConstructorInterceptor()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface org.jboss.aop.advice.Interceptor

invoke

public java.lang.Object invoke(org.jboss.aop.joinpoint.Invocation aInvocation)
                        throws java.lang.Throwable
Specified by:
invoke in interface org.jboss.aop.advice.Interceptor
Throws:
java.lang.Throwable

calculateName

protected java.lang.String calculateName(org.jboss.aop.joinpoint.ConstructorInvocation aInvocation)
Calculate EtmPoint name based on the method.

Parameters:
aInvocation - The method invocation.
Returns:
The name of the EtmPoint.


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.