sun.util.spi.CalendarProvider Java Examples

The following examples show how to use sun.util.spi.CalendarProvider. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JRELocaleProviderAdapter.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = AccessController.doPrivileged(
            (PrivilegedAction<CalendarProvider>) () ->
                new CalendarProviderImpl(
                    getAdapterType(),
                    getLanguageTagSet("CalendarData")));

        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #2
Source File: JRELocaleProviderAdapter.java    From Bytecoder with Apache License 2.0 6 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = AccessController.doPrivileged(
            (PrivilegedAction<CalendarProvider>) () ->
                new CalendarProviderImpl(
                    getAdapterType(),
                    getLanguageTagSet("CalendarData")));

        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #3
Source File: JRELocaleProviderAdapter.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #4
Source File: JRELocaleProviderAdapter.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #5
Source File: JRELocaleProviderAdapter.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #6
Source File: JRELocaleProviderAdapter.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #7
Source File: JRELocaleProviderAdapter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #8
Source File: JRELocaleProviderAdapter.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #9
Source File: JRELocaleProviderAdapter.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #10
Source File: JRELocaleProviderAdapter.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #11
Source File: JRELocaleProviderAdapter.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #12
Source File: JRELocaleProviderAdapter.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #13
Source File: JRELocaleProviderAdapter.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #14
Source File: JRELocaleProviderAdapter.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    if (calendarProvider == null) {
        CalendarProvider provider = new CalendarProviderImpl(getAdapterType(),
                                                getLanguageTagSet("CalendarData"));
        synchronized (this) {
            if (calendarProvider == null) {
                calendarProvider = provider;
            }
        }
    }
    return calendarProvider;
}
 
Example #15
Source File: AuxLocaleProviderAdapter.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #16
Source File: AuxLocaleProviderAdapter.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #17
Source File: AuxLocaleProviderAdapter.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #18
Source File: AuxLocaleProviderAdapter.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #19
Source File: AuxLocaleProviderAdapter.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #20
Source File: AuxLocaleProviderAdapter.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #21
Source File: AuxLocaleProviderAdapter.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #22
Source File: AuxLocaleProviderAdapter.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #23
Source File: AuxLocaleProviderAdapter.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #24
Source File: AuxLocaleProviderAdapter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #25
Source File: AuxLocaleProviderAdapter.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #26
Source File: AuxLocaleProviderAdapter.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #27
Source File: AuxLocaleProviderAdapter.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #28
Source File: AuxLocaleProviderAdapter.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
/**
 * Getter methods for sun.util.spi.* providers
 */
@Override
public CalendarProvider getCalendarProvider() {
    return getLocaleServiceProvider(CalendarProvider.class);
}
 
Example #29
Source File: LocaleProviderAdapter.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns a CalendarProvider for this LocaleProviderAdapter, or null if no
 * CalendarProvider is available.
 *
 * @return a CalendarProvider
 */
public abstract CalendarProvider getCalendarProvider();
 
Example #30
Source File: LocaleProviderAdapter.java    From dragonwell8_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Returns a CalendarProvider for this LocaleProviderAdapter, or null if no
 * CalendarProvider is available.
 *
 * @return a CalendarProvider
 */
public abstract CalendarProvider getCalendarProvider();