Package: FindEntriesDelegate

FindEntriesDelegate

Coverage

1: /*******************************************************************************
2: * Copyright (c) 2008, 2010 VMware Inc.
3: * All rights reserved. This program and the accompanying materials
4: * are made available under the terms of the Eclipse Public License v1.0
5: * which accompanies this distribution, and is available at
6: * http://www.eclipse.org/legal/epl-v10.html
7: *
8: * Contributors:
9: * VMware Inc. - initial contribution
10: *******************************************************************************/
11:
12: package org.eclipse.virgo.test.stubs.framework;
13:
14: import java.net.URL;
15: import java.util.Enumeration;
16:
17: import org.osgi.framework.Bundle;
18:
19: /**
20: * An interface to allow delegation of calls to {@link Bundle#findEntries(String, String, boolean)} to be serviced in a
21: * test environment.
22: * <p />
23: *
24: * <strong>Concurrent Semantics</strong><br />
25: *
26: * Implementations must be threadsafe
27: *
28: */
29: public interface FindEntriesDelegate {
30:
31: /**
32: * @param path The root to search from
33: * @param filePattern The pattern to search for
34: * @param recurse Whether to recurse
35: * @return An enumeration of the files found
36: * @see Bundle#findEntries(String, String, boolean)
37: */
38: Enumeration<URL> findEntries(String path, String filePattern, boolean recurse);
39: }