001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.spring.aop;
016    
017    import java.util.List;
018    
019    import org.aopalliance.intercept.MethodInterceptor;
020    
021    /**
022     * @author Shuyang Zhou
023     */
024    public class MethodInterceptorsBag {
025    
026            public MethodInterceptorsBag(
027                    List<MethodInterceptor> classLevelMethodInterceptors,
028                    List<MethodInterceptor> mergedMethodInterceptors) {
029    
030                    _classLevelMethodInterceptors = classLevelMethodInterceptors;
031                    _mergedMethodInterceptors = mergedMethodInterceptors;
032            }
033    
034            public List<MethodInterceptor> getClassLevelMethodInterceptors() {
035                    return _classLevelMethodInterceptors;
036            }
037    
038            public List<MethodInterceptor> getMergedMethodInterceptors() {
039                    return _mergedMethodInterceptors;
040            }
041    
042            public void setClassLevelMethodInterceptors(
043                    List<MethodInterceptor> classLevelMethodInterceptors) {
044    
045                    _classLevelMethodInterceptors = classLevelMethodInterceptors;
046            }
047    
048            public void setMergedMethodInterceptors(
049                    List<MethodInterceptor> mergedMethodInterceptors) {
050    
051                    _mergedMethodInterceptors = mergedMethodInterceptors;
052            }
053    
054            private List<MethodInterceptor> _classLevelMethodInterceptors;
055            private List<MethodInterceptor> _mergedMethodInterceptors;
056    
057    }