Java Code Examples for com.sun.media.sound.JDK13Services#getProviders()

The following examples show how to use com.sun.media.sound.JDK13Services#getProviders() . 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: ProviderCacheing.java    From openjdk-jdk9 with GNU General Public License v2.0 6 votes vote down vote up
public static void main(String[] args) throws Exception {
    boolean allCached = true;
    for (int i = 0; i < providerClasses.length; i++) {
        List list0 = JDK13Services.getProviders(providerClasses[i]);
        List list1 = JDK13Services.getProviders(providerClasses[i]);
        if (list0 == list1) {
            out("Providers should not be cached for " + providerClasses[i]);
            allCached = false;
        }
    }

    if (! allCached) {
        throw new Exception("Test failed");
    } else {
        out("Test passed");
    }
}
 
Example 2
Source File: MidiSystem.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 3
Source File: MidiSystem.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 4
Source File: MidiSystem.java    From Java8CN with Apache License 2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 5
Source File: AudioSystem.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system using the
 * SPI mechanism in 1.3.
 *
 * @return a List of instances of providers for the requested service. If no
 *         providers are available, a vector of length 0 will be returned.
 */
private static List<?> getProviders(Class<?> providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 6
Source File: MidiSystem.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 7
Source File: AudioSystem.java    From Bytecoder with Apache License 2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system using the
 * SPI mechanism in 1.3.
 *
 * @param  providerClass The type of providers requested. This should be one
 *         of AudioFileReader.class, AudioFileWriter.class,
 *         FormatConversionProvider.class, MixerProvider.class,
 *         MidiDeviceProvider.class, MidiFileReader.class,
 *         MidiFileWriter.class or SoundbankReader.class.
 * @return a List of instances of providers for the requested service. If no
 *         providers are available, a vector of length 0 will be returned.
 */
private static List<?> getProviders(Class<?> providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 8
Source File: AudioSystem.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a vector of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 9
Source File: AudioSystem.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a vector of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 10
Source File: MidiSystem.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 11
Source File: AudioSystem.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a vector of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 12
Source File: MidiSystem.java    From jdk1.8-source-analysis with Apache License 2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 13
Source File: MidiSystem.java    From jdk8u-dev-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 14
Source File: AudioSystem.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a vector of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 15
Source File: MidiSystem.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 16
Source File: AudioSystem.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a vector of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 17
Source File: MidiSystem.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 18
Source File: MidiSystem.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 19
Source File: MidiSystem.java    From dragonwell8_jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a List of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}
 
Example 20
Source File: AudioSystem.java    From jdk8u-jdk with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Obtains the set of services currently installed on the system
 * using sun.misc.Service, the SPI mechanism in 1.3.
 * @return a List of instances of providers for the requested service.
 * If no providers are available, a vector of length 0 will be returned.
 */
private static List getProviders(Class providerClass) {
    return JDK13Services.getProviders(providerClass);
}