KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > service > systembundle > EntryLocator


1 /*******************************************************************************
2  * Copyright (c) 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.osgi.service.systembundle;
12
13 import java.net.URL JavaDoc;
14 import java.util.Locale JavaDoc;
15
16 /**
17  * The System Bundle uses an EntryLocator service to find resource URLs
18  * to NLS properties files. The System Bundle does not have the ablity
19  * to host fragment bundles. The EntryLocator service allows a bundle
20  * installed in the Framework to provide NLS properties files to the
21  * System Bundle.
22  */

23 public interface EntryLocator {
24     /**
25      * Returns the URL for the specified properies file and locale.
26      * The value of null is returned if the properties file could not be
27      * found.
28      * @param basename the base name of the properties file to get
29      * @param locale the locale to use when searching for the properites file
30      * @return the URL for the properties file or null if one could not be
31      * found
32      */

33     public URL JavaDoc getProperties(String JavaDoc basename, Locale JavaDoc locale);
34 }
35
Popular Tags