KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > resources > ResourceBundleService


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.resources;
6
7 import java.util.* ;
8 import org.exoplatform.commons.utils.PageList;
9 /**
10  * May 7, 2004
11  * @author: Tuan Nguyen
12  * @email: tuan08@users.sourceforge.net
13  * @version: $Id: ResourceBundleService.java,v 1.2 2004/10/26 18:47:55 benjmestrallet Exp $
14  **/

15 public interface ResourceBundleService {
16     public ResourceBundle getResourceBundle(String JavaDoc name, Locale locale) ;
17     public ResourceBundle getResourceBundle(String JavaDoc name, Locale locale, ClassLoader JavaDoc cl) ;
18   
19   /**
20    * This method will look call the method
21    * public ResourceBundle getResourceBundle(String[] name, Locale locale, ClassLoader cl)
22    * and using the the classloader of the current thread
23    */

24   public ResourceBundle getResourceBundle(String JavaDoc[] name, Locale locale) ;
25   /**
26    * This method will look for all the resources with the given names and merge into
27    * one resource bundle, the properties in the later resource bundle name will have
28    * the higher priority than the previous one.
29    */

30   public ResourceBundle getResourceBundle(String JavaDoc[] name, Locale locale, ClassLoader JavaDoc cl) ;
31   
32     public ResourceBundleData getResourceBundleData(String JavaDoc id) throws Exception JavaDoc ;
33     public ResourceBundleData removeResourceBundleData(String JavaDoc id) throws Exception JavaDoc ;
34     public void saveResourceBundle(ResourceBundleData data) throws Exception JavaDoc ;
35     
36   public PageList findResourceDescriptions(Query q) throws Exception JavaDoc ;
37   
38   public ResourceBundleData createResourceBundleDataInstance() ;
39 }
Popular Tags