1 /* 2 * Copyright the original author or authors. 3 * 4 * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.mozilla.org/MPL/MPL-1.1.html 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 import org.as2lib.aop.Pointcut; 18 19 /** 20 * {@code CompositePointcut} is a composition of multiple pointcuts. In common 21 * implementations it combines the {@code captures} methods of multiple pointcuts in a 22 * specific logic, like AND or OR logic. 23 * 24 * @author Simon Wacker 25 */ 26 interface org.as2lib.aop.pointcut.CompositePointcut extends Pointcut { 27 28 /** 29 * Adds a new pointcut to the list of pointcuts. 30 * 31 * @param pointcut the pointcut to add 32 */ 33 public function addPointcut(pointcut:Pointcut):Void; 34 35 /** 36 * Returns all added pointcuts. 37 * 38 * @return all added pointcuts 39 */ 40 public function getPointcuts(Void):Array; 41 42 }