1 16 package org.apache.cocoon.i18n; 17 18 import org.apache.avalon.framework.component.Component; 19 import org.apache.avalon.framework.component.ComponentException; 20 21 import java.util.Locale ; 22 23 31 public interface BundleFactory extends Component { 32 33 36 String ROLE = BundleFactory.class.getName(); 37 38 41 static class ConfigurationKeys { 42 49 public static final String ROOT_DIRECTORY = "catalogue-location"; 50 51 56 public static final String STORE_ROLE = "store-role"; 57 58 63 public static final String RELOAD_INTERVAL = "reload-interval"; 64 } 65 66 76 Bundle select(String base, String bundleName, String locale) throws ComponentException; 77 78 88 Bundle select(String base, String bundleName, Locale locale) throws ComponentException; 89 90 100 Bundle select(String [] directories, String bundleName, Locale locale) throws ComponentException; 101 102 111 Bundle select(String bundleName, String locale) throws ComponentException; 112 113 122 Bundle select(String bundleName, Locale locale) throws ComponentException; 123 124 129 void release(Bundle bundle); 130 } 131 | Popular Tags |