Lines Matching defs:Control

186  * <h4>ResourceBundle.Control</h4>
188 * The {@link ResourceBundle.Control} class provides information necessary
190 * factory methods that take a <code>ResourceBundle.Control</code>
194 * {@link #getBundle(String, Locale, ClassLoader, Control) getBundle}
206 * Control) <code>getBundle</code> factory method}, {@link
208 * Control#getTimeToLive(String, Locale)
209 * ResourceBundle.Control.getTimeToLive}, and {@link
210 * Control#needsReload(String, Locale, String, ClassLoader, ResourceBundle,
211 * long) ResourceBundle.Control.needsReload} for details.
494 // Control.needsReload().
504 // Control.TTL_DONT_CACHE or Control.TTL_NO_EXPIRATION_CONTROL.
724 Control.INSTANCE);
737 * #getBundle(String, Locale, ClassLoader, Control) getBundle} for the
739 * <code>ResourceBundle.Control</code>.
763 Control control) {
798 Control.INSTANCE);
811 * #getBundle(String, Locale, ClassLoader, Control) getBundle} for the
813 * <code>ResourceBundle.Control</code>.
840 Control control) {
852 * {@link #getBundle(String, Locale, ClassLoader, Control)} passing a
853 * default instance of {@link Control}. The following describes this behavior.
908 * of {@link Control#getCandidateLocales(String, Locale)
913 * resource bundle. It uses the default controls' {@link Control#getFormats
940 * bundle is found, the default control's {@link Control#getFallbackLocale
1028 return getBundleImpl(baseName, locale, loader, Control.INSTANCE);
1050 * <li>The {@link ResourceBundle.Control#getFormats(String)
1060 * <li>The {@link ResourceBundle.Control#getCandidateLocales(String,
1065 * <li>The {@link ResourceBundle.Control#newBundle(String, Locale,
1131 * <li>The {@link ResourceBundle.Control#getFallbackLocale(String,
1150 * Control#newBundle(String, Locale, String, ClassLoader, boolean)
1153 * calls the {@link ResourceBundle.Control#needsReload(String, Locale,
1165 * {@link Control#getTimeToLive(String,Locale)
1169 * default <code>ResourceBundle.Control</code> implementation.
1196 * Control#getFallbackLocale(String, Locale)
1242 ClassLoader loader, Control control) {
1250 ClassLoader loader, Control control) {
1280 boolean isKnownControl = (control == Control.INSTANCE) ||
1284 throw new IllegalArgumentException("Invalid Control: getFormats");
1293 throw new IllegalArgumentException("Invalid Control: getCandidateLocales");
1349 Control control,
1424 Control control,
1511 * @param control the Control to be used for the expiration control
1517 Control control) {
1625 Control control) {
1627 if (cacheKey.expirationTime != Control.TTL_DONT_CACHE) {
1656 private static final void setExpirationTime(CacheKey cacheKey, Control control) {
1665 } else if (ttl >= Control.TTL_NO_EXPIRATION_CONTROL) {
1668 throw new IllegalArgumentException("Invalid Control: TTL=" + ttl);
1677 * @see ResourceBundle.Control#getTimeToLive(String,Locale)
1691 * @see ResourceBundle.Control#getTimeToLive(String,Locale)
1804 * <code>ResourceBundle.Control</code> defines a set of callback methods
1806 * Locale, ClassLoader, Control) ResourceBundle.getBundle} factory
1808 * <code>ResourceBundle.Control</code> collaborates with the factory
1826 * <code>ResourceBundle.Control</code> instances that implement common
1829 * <p>The formats returned by the {@link Control#getFormats(String)
1831 * ResourceBundle.Control#getCandidateLocales(String, Locale)
1842 * <p>A <code>ResourceBundle.Control</code> instance must be thread-safe
1845 * the <code>ResourceBundle.Control</code> methods. The default
1848 * <p>Applications can specify <code>ResourceBundle.Control</code>
1850 * created from a subclass of <code>ResourceBundle.Control</code> to
1861 * import static java.util.ResourceBundle.Control.*;
1865 * ResourceBundle.Control.getControl(FORMAT_PROPERTIES));
1885 * new ResourceBundle.Control() {
1950 public static class Control {
1999 private static final Control INSTANCE = new Control();
2005 protected Control() {
2009 * Returns a <code>ResourceBundle.Control</code> in which the {@link
2012 * one of {@link Control#FORMAT_PROPERTIES}, {@link
2013 * Control#FORMAT_CLASS} or {@link
2014 * Control#FORMAT_DEFAULT}. <code>ResourceBundle.Control</code>
2017 * <p>Specifying {@link Control#FORMAT_DEFAULT} is equivalent to
2018 * instantiating the <code>ResourceBundle.Control</code> class,
2023 * <code>ResourceBundle.Control.getFormats</code> method
2024 * @return a <code>ResourceBundle.Control</code> supporting the
2031 public static final Control getControl(List<String> formats) {
2032 if (formats.equals(Control.FORMAT_PROPERTIES)) {
2035 if (formats.equals(Control.FORMAT_CLASS)) {
2038 if (formats.equals(Control.FORMAT_DEFAULT)) {
2039 return Control.INSTANCE;
2045 * Returns a <code>ResourceBundle.Control</code> in which the {@link
2048 * Control#getFallbackLocale(String, Locale) getFallbackLocale}
2050 * be equal to one of {@link Control#FORMAT_PROPERTIES}, {@link
2051 * Control#FORMAT_CLASS} or {@link Control#FORMAT_DEFAULT}.
2052 * <code>ResourceBundle.Control</code> instances returned by this
2057 * <code>ResourceBundle.Control.getFormats</code> method
2058 * @return a <code>ResourceBundle.Control</code> supporting the
2066 public static final Control getNoFallbackControl(List<String> formats) {
2067 if (formats.equals(Control.FORMAT_DEFAULT)) {
2070 if (formats.equals(Control.FORMAT_PROPERTIES)) {
2073 if (formats.equals(Control.FORMAT_CLASS)) {
2625 * <code>ResourceBundle.Control</code>. Positive time-to-live values
2685 * calls this method on the <code>ResourceBundle.Control</code>
2870 private static class SingleFormatControl extends Control {
2871 private static final Control PROPERTIES_ONLY
2874 private static final Control CLASS_ONLY
2892 private static final Control NO_FALLBACK
2895 private static final Control PROPERTIES_ONLY_NO_FALLBACK
2898 private static final Control CLASS_ONLY_NO_FALLBACK