1 /*************************************************************************************** 2 * Copyright (c) Jonas Bonér, Alexandre Vasseur. All rights reserved. * 3 * http://aspectwerkz.codehaus.org * 4 * ---------------------------------------------------------------------------------- * 5 * The software in this package is published under the terms of the LGPL license * 6 * a copy of which has been included with this distribution in the license.txt file. * 7 **************************************************************************************/ 8 package org.codehaus.aspectwerkz.joinpoint.management; 9 10 import org.codehaus.aspectwerkz.AdviceInfo; 11 12 /*** 13 * Contains the around, before and after advices. 14 * 15 * @author <a href="mailto:jboner@codehaus.org">Jonas Bonér </a> 16 */ 17 public class AdviceIndexInfo { 18 private final AdviceInfo[] m_aroundAdvices; 19 private final AdviceInfo[] m_beforeAdvices; 20 private final AdviceInfo[] m_afterFinallyAdvices; 21 private final AdviceInfo[] m_afterReturningAdvices; 22 private final AdviceInfo[] m_afterThrowingAdvices; 23 24 public AdviceIndexInfo(final AdviceInfo[] aroundAdvices, 25 final AdviceInfo[] beforeAdvices, 26 final AdviceInfo[] afterFinallyAdvices, 27 final AdviceInfo[] afterReturningAdvices, 28 final AdviceInfo[] afterThrowingAdvices) { 29 m_aroundAdvices = aroundAdvices; 30 m_beforeAdvices = beforeAdvices; 31 m_afterFinallyAdvices = afterFinallyAdvices; 32 m_afterReturningAdvices = afterReturningAdvices; 33 m_afterThrowingAdvices = afterThrowingAdvices; 34 } 35 36 public AdviceInfo[] getAroundAdvices() { 37 return m_aroundAdvices; 38 } 39 40 public AdviceInfo[] getBeforeAdvices() { 41 return m_beforeAdvices; 42 } 43 44 public AdviceInfo[] getAfterFinallyAdvices() { 45 return m_afterFinallyAdvices; 46 } 47 48 public AdviceInfo[] getAfterReturningAdvices() { 49 return m_afterReturningAdvices; 50 } 51 52 public AdviceInfo[] getAfterThrowingAdvices() { 53 return m_afterThrowingAdvices; 54 } 55 }