@@ -0,0 +1,1228 @@
+/*%0A * Copyright (c) 2012 Mateusz Parzonka, Eric Bodden%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A *%0A * Contributors:%0A * Mateusz Parzonka - initial API and implementation%0A */%0Apackage prm4j.indexing.realtime;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport prm4j.api.MatchHandler1;%0Aimport prm4j.api.Parameter;%0A%0Apublic class AwareMatchHandler%3CP1%3E %7B%0A%0A    public static %3CP1%3E AwareMatchHandler1%3CP1%3E create(Parameter%3CP1%3E param1) %7B%0A%09return new AwareMatchHandler1%3CP1%3E(param1);%0A    %7D%0A%0A    public static class AwareMatchHandler1%3CP1%3E extends MatchHandler1%3CP1%3E %7B%0A%0A%09private final List%3CP1%3E handledMatches;%0A%0A%09public AwareMatchHandler1(Parameter%3CP1%3E param1) %7B%0A%09    super(param1);%0A%09    handledMatches = new ArrayList%3CP1%3E();%0A%09%7D%0A%0A%09@Override%0A%09public void handleMatch(P1 obj1) %7B%0A%09    System.out.println(%22Match detected for: %22 + obj1);%0A%09    handledMatches.add(obj1);%0A%09%7D%0A%0A%09/**%0A%09 * Returns a list of handled matches for the given object.%0A%09 *%0A%09 * @return%0A%09 */%0A%09public List%3CP1%3E getHandledMatches() %7B%0A%09    return handledMatches;%0A%09%7D%0A%0A    %7D%0A%7D

Add AwareMatchHandler