Lines Matching refs:control

729      * default locale and the specified control. Calling this method
733 * this.getClass().getClassLoader(), control),
744 * @param control
745 * the control which gives information for the resource bundle
750 * if <code>baseName</code> or <code>control</code> is
755 * if the given <code>control</code> doesn't perform properly
756 * (e.g., <code>control.getCandidateLocales</code> returns null.)
757 * Note that validation of <code>control</code> is performed as
763 Control control) {
767 control);
803 * locale and control, and the caller's class loader. Calling this
807 * control),
820 * @param control
821 * the control which gives information for the resource
827 * <code>control</code> is <code>null</code>
832 * if the given <code>control</code> doesn't perform properly
833 * (e.g., <code>control.getCandidateLocales</code> returns null.)
834 * Note that validation of <code>control</code> is performed as
840 Control control) {
844 control);
940 * bundle is found, the default control's {@link Control#getFallbackLocale
1033 * locale, class loader and control. Unlike the {@linkplain
1035 * factory methods with no <code>control</code> argument}, the given
1036 * <code>control</code> specifies how to locate and instantiate resource
1038 * <code>control</code> is performed in the following steps.
1051 * control.getFormats} method is called to get resource bundle formats
1061 * Locale) control.getCandidateLocales} method is called with the target
1066 * String, ClassLoader, boolean) control.newBundle} method is called to
1077 * <code>control.newBundle</code>.
1132 * Locale) control.getFallbackLocale} method is called to get a fallback
1151 * control.newBundle} method. If the time-to-live period of the
1154 * String, ClassLoader, ResourceBundle, long) control.needsReload}
1157 * <code>control.newBundle</code> to reload the resource bundle. If
1158 * <code>control.newBundle</code> returns <code>null</code>, the factory
1162 * expiration control as specified by <code>control</code>.
1166 * control.getTimeToLive} for details.
1197 * control.getFallbackLocale("foo.bar.Messages", Locale.ITALY)} which
1224 * @param control
1225 * the control which gives information for the resource
1230 * <code>loader</code>, or <code>control</code> is
1235 * if the given <code>control</code> doesn't perform properly
1236 * (e.g., <code>control.getCandidateLocales</code> returns null.)
1237 * Note that validation of <code>control</code> is performed as
1242 ClassLoader loader, Control control) {
1243 if (loader == null || control == null) {
1246 return getBundleImpl(baseName, targetLocale, loader, control);
1250 ClassLoader loader, Control control) {
1251 if (locale == null || control == null) {
1271 // don't call control.needsReload here but instead drop into the
1280 boolean isKnownControl = (control == Control.INSTANCE) ||
1281 (control instanceof SingleFormatControl);
1282 List<String> formats = control.getFormats(baseName);
1290 targetLocale = control.getFallbackLocale(baseName, targetLocale)) {
1291 List<Locale> candidateLocales = control.getCandidateLocales(baseName, targetLocale);
1296 bundle = findBundle(cacheKey, candidateLocales, formats, 0, control, baseBundle);
1313 // the control specify not to cache bundles.
1349 Control control,
1355 control, baseBundle);
1375 ResourceBundle bundle = findBundleInCache(cacheKey, control);
1400 bundle = loadBundle(cacheKey, formats, control, expiredBundle);
1406 bundle = putBundleInCache(cacheKey, bundle, control);
1412 putBundleInCache(cacheKey, NONEXISTENT_BUNDLE, control);
1424 Control control,
1436 bundle = control.newBundle(cacheKey.getName(), targetLocale, format,
1511 * @param control the Control to be used for the expiration control
1517 Control control) {
1554 // expiration control doesn't guarantee that the returned bundle and
1581 bundle.expired = control.needsReload(key.getName(),
1598 // Update the expiration control info. and reuse
1600 setExpirationTime(key, control);
1625 Control control) {
1626 setExpirationTime(cacheKey, control);
1656 private static final void setExpirationTime(CacheKey cacheKey, Control control) {
1657 long ttl = control.getTimeToLive(cacheKey.getName(),
1992 * The time-to-live constant for disabling the expiration control
2633 * expiration control.
2662 * expiration control, or {@link #TTL_DONT_CACHE} to disable