Package javazoom.jl.player
Class FactoryRegistry
java.lang.Object
javazoom.jl.player.AudioDeviceFactory
javazoom.jl.player.FactoryRegistry
The
FactoryRegistry class stores the factories
for all the audio device implementations available in the system.
Instances of this class are thread-safe.
- Since:
- 0.0.8
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFactory(AudioDeviceFactory factory) Registers anAudioDeviceFactoryinstance with this registry.Creates a newAudioDevice.protected AudioDeviceFactory[]protected voidvoidremoveFactory(AudioDeviceFactory factory) voidremoveFactoryType(Class cls) static FactoryRegistryMethods inherited from class javazoom.jl.player.AudioDeviceFactory
instantiate
-
Field Details
-
factories
-
-
Constructor Details
-
FactoryRegistry
public FactoryRegistry()
-
-
Method Details
-
systemRegistry
-
addFactory
Registers anAudioDeviceFactoryinstance with this registry. -
removeFactoryType
-
removeFactory
-
createAudioDevice
Description copied from class:AudioDeviceFactoryCreates a newAudioDevice.- Specified by:
createAudioDevicein classAudioDeviceFactory- Returns:
- a new instance of a specific class of
AudioDevice. - Throws:
JavaLayerException- if an instance of AudioDevice could not be created.
-
getFactoriesPriority
-
registerDefaultFactories
protected void registerDefaultFactories()
-