blob: abd3eebb9cc5f5c20abbb85a34ba8023e91b6732 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2003, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.wst.common.modulecore.internal.builder;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.wst.common.frameworks.operations.WTPOperationDataModel;
public class LocalDependencyDelayedDataModelCache {
private static LocalDependencyDelayedDataModelCache instance;
private List list = new ArrayList();
private LocalDependencyDelayedDataModelCache() {
super();
}
public List getCacheList() {
return list;
}
public void addToCache(WTPOperationDataModel dataModel) {
list.add(dataModel);
}
public void clearCache() {
list.clear();
}
public static LocalDependencyDelayedDataModelCache getInstance() {
if (instance == null)
instance = new LocalDependencyDelayedDataModelCache();
return instance;
}
}