1 2 /* 3 * Copyright the original author or authors. 4 * 5 * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.mozilla.org/MPL/MPL-1.1.html 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18 import org.as2lib.core.BasicInterface; 19 import org.as2lib.env.event.distributor.EventDistributorControl; 20 21 /** 22 * {@code EventDistributorControlFactory} creates instances of type 23 * {@link EventDistributorControl} 24 * 25 * @author Martin Heidegger 26 */ 27 interface org.as2lib.env.event.distributor.EventDistributorControlFactory extends BasicInterface { 28 29 /** 30 * Creates a new instance of type {@code EventDistributorControl} 31 * 32 * @param type the distributor and listener type of the created event distributor 33 * control 34 * @return an event distributor control that is configured with the given 35 * {@code type} 36 */ 37 public function createEventDistributorControl(type:Function):EventDistributorControl; 38 39 }