KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > service > localization > BundleLocalization


1 /*******************************************************************************
2  * Copyright (c) 2004, 2006 IBM Corporation and others.
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  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.osgi.service.localization;
12
13 import java.util.ResourceBundle JavaDoc;
14 import org.osgi.framework.Bundle;
15
16 /**
17  * The interface of the service that gets {@link ResourceBundle} objects from a given
18  * bundle with a given locale.
19  * <p>
20  * This interface is not intended to be implemented by clients.
21  * </p>
22  * @since 3.1
23  */

24 public interface BundleLocalization {
25
26     /**
27      * The getLocalization method gets a ResourceBundle object for the given
28      * locale and bundle.
29      * @param bundle the bundle to get localization for
30      * @param locale the name of the locale to get
31      *
32      * @return A <code>ResourceBundle</code> object for the given bundle and locale.
33      * If <code>null</code> is passed for the locale parameter, the default locale is used.
34      */

35     public ResourceBundle JavaDoc getLocalization(Bundle JavaDoc bundle, String JavaDoc locale);
36 }
37
Popular Tags