/**
* Copyright (c) 2015, Andreas Hefti, anhefti@yahoo.de 
* All rights reserved.
*
* This software is licensed to you under the Apache License, Version 2.0
* (the "License"); You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* . Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* . Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* . Neither the name "InariUtils" nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
package com.inari.commons.event;

/** An generic Event Dispatcher to register/unregister generic Listeners to listen to matching Events.
 *  
 *  A Listener interface can be created for specified needs to working with a IEvent<Listener> implementation
 *  
 *  @author anhefti@yahoo.de
 *
 */
public interface IEventDispatcher {

    <L> void register( Class<? extends Event<L>> eventType, L listener );

    <L> boolean unregister( Class<? extends Event<L>> eventType, L listener );

    <L> void notify( Event<L> event );

    <L extends AspectedEventListener> void notify( AspectedEvent<L> event );

    <L extends MatchedEventListener> void notify( MatchedEvent<L> event );

}
@@ -1,12 +1,90 @@
 /**
-%0A
+*****************************************************************************%0A 
 * Copyri
@@ -112,23 +112,25 @@
  Hefti, 
-anhe
+inariso
 ft
-i
 @yahoo.d
@@ -136,61 +136,24 @@
 de %0A
-* All rights reserved.%0A*%0A* This software is l
+ * %0A * L
 icensed 
 to y
@@ -152,15 +152,8 @@
 sed 
-to you 
 unde
@@ -185,18 +185,16 @@
 sion 2.0
-%0A*
  (the %22L
@@ -202,16 +202,87 @@
 cense%22);
+%0A * you may not use this file except in compliance with the License.%0A *
  You may
@@ -314,19 +314,24 @@
 ense at%0A
-*%0A*
+ * %0A *  
  http://
@@ -370,1469 +370,411 @@
 2.0%0A
-*%0A* Redistribution and use in source and binary forms, with or without%0A* modification, are permitted provided that the following conditions are met:%0A*%0A* . Redistributions of source code must retain the above copyright notice, this%0A* list of conditions and the following disclaimer.%0A*%0A* . Redistributions in binary form must reproduce the above copyright notice
+ * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS
 ,%0A
+ 
 * 
-this list of conditions and the following disclaimer in the documentation%0A* and/or other materials provided with the distribution.%0A*%0A* . Neither the name %22InariUtils%22 nor the names of its contributors may be%0A* used to endorse or promote products derived from this software without%0A* specific prior written permission.%0A*%0A* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS %22AS IS%22%0A* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE%0A* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE%0A* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE%0A* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR%0A* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF%0A* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS%0A* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN%0A* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)%0A* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE%0A* POSSIBILITY OF SUCH DAMAGE.%0A
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A *****************************************************************************
 */%0Ap
@@ -909,21 +909,16 @@
 Events.%0A
- *  %0A
  *  A Li
@@ -1097,16 +1097,284 @@
 cher %7B%0A%0A
+    /** Register a Listener L to listen to specified type of event that is familiar with the %0A     *  the Listener.%0A     *  @param eventType The class type of the Event's to listen at%0A     *  @param listener The listener that gets informed by specified events%0A     */%0A
     %3CL%3E 
@@ -1718,5 +1718,6 @@
 );%0A%0A
-
 %7D
+%0A

Update IEventDispatcher.java