01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package test.deployment;
08:
09: import org.codehaus.aspectwerkz.joinpoint.JoinPoint;
10:
11: /**
12: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
13: */
14: public class AnnDefAspect {
15: /**
16: * @Around execution(void test.deployment.DeployerTest.deployUndeployUsingHandle()) ||
17: * execution(void test.deployment.DeployerTest.deployUndeployUsingPreparedPointcut())
18: */
19: public Object advice(final JoinPoint joinPoint) throws Throwable {
20: DeployerTest.log("before ");
21: Object result = joinPoint.proceed();
22: DeployerTest.log("after ");
23: return result;
24: }
25: }
|