public class JDK13Services
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getDefaultInstanceName(java.lang.Class typeClass)
Obtain the instance name part of a default provider property.
|
static java.lang.String |
getDefaultProviderClassName(java.lang.Class typeClass)
Obtain the provider class name part of a default provider property.
|
static java.util.List |
getProviders(java.lang.Class serviceClass)
Obtains a List containing installed instances of the
providers for the requested service.
|
static void |
setCachingPeriod(int seconds)
Set the period provider lists are cached.
|
public static void setCachingPeriod(int seconds)
public static java.util.List getProviders(java.lang.Class serviceClass)
cachingPeriod
. During this period, the same
List instance is returned for the same type of provider. After this
period, a new instance is constructed and returned. The returned
List is immutable.serviceClass
- 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.public static java.lang.String getDefaultProviderClassName(java.lang.Class typeClass)
typeClass
- The type of the default provider property. This
should be one of Receiver.class, Transmitter.class, Sequencer.class,
Synthesizer.class, SourceDataLine.class, TargetDataLine.class,
Clip.class or Port.class.public static java.lang.String getDefaultInstanceName(java.lang.Class typeClass)
typeClass
- The type of the default provider property. This
should be one of Receiver.class, Transmitter.class, Sequencer.class,
Synthesizer.class, SourceDataLine.class, TargetDataLine.class,
Clip.class or Port.class.