blob: dac466e338f778572dfb708792ba37150332476f [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2006, 2007 Sybase, Inc. and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Sybase, Inc. - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.pagedesigner.utils;
/**
* Identifies a factory/dispose advisor for cache entries
* @param <KEY>
* @param <ENTRY>
*/
public interface ICacheEntryCreator<KEY,ENTRY> {
/**
* @param key
* @return the created entry
*/
public ENTRY createEntry(KEY key);
/**
* @param key
* @param entry
*/
public void dispose(KEY key, ENTRY entry);
}