/* | |
* Copyright (c) Robert Bosch GmbH. All rights reserved. | |
*/ | |
package org.eclipse.blockchain.core; | |
import java.util.HashSet; | |
import java.util.Set; | |
/** | |
* @author ABB3COB | |
*/ | |
public class BlockchainViewsRegistry { | |
private static Set<IBlockchainView> listOFViews = new HashSet<IBlockchainView>(); | |
/** | |
* @param view | |
*/ | |
public static void registerBlockchainView(final IBlockchainView view) { | |
listOFViews.add(view); | |
} | |
/** | |
* @param view | |
*/ | |
public static void dereisterBlockchainView(final IBlockchainView view) { | |
listOFViews.remove(view); | |
} | |
/** | |
* @return the listOFViews | |
*/ | |
public static Set<IBlockchainView> getListOFViews() { | |
return listOFViews; | |
} | |
} |