@@ -0,0 +1,1354 @@
+/*%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.lang.ref.WeakReference;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Set;%0A%0Aimport prm4j.api.Parameter;%0A%0A/**%0A * %7B@link DefaultBindingStore%7D which is aware of all bindings it produces and retrieves.%0A */%0Apublic class AwareDefaultBindingStore extends DefaultBindingStore %7B%0A%0A    private final List%3CWeakReference%3CLowLevelBinding%5B%5D%3E%3E listOfBindings;%0A%0A    public AwareDefaultBindingStore(Set%3CParameter%3C?%3E%3E fullParameterSet, int cleaningInterval) %7B%0A%09super(fullParameterSet, cleaningInterval);%0A%09listOfBindings = new ArrayList%3CWeakReference%3CLowLevelBinding%5B%5D%3E%3E();%0A    %7D%0A%0A    @Override%0A    public LowLevelBinding%5B%5D getBindings(Object%5B%5D boundObjects) %7B%0A%09LowLevelBinding%5B%5D bindings = super.getBindings(boundObjects);%0A%09getListOfBindings().add(new WeakReference%3CLowLevelBinding%5B%5D%3E(bindings));%0A%09return bindings;%0A    %7D%0A%0A    public List%3CWeakReference%3CLowLevelBinding%5B%5D%3E%3E getListOfBindings() %7B%0A%09return listOfBindings;%0A    %7D%0A%0A%7D%0A

Add AwareDefaultBindingStore