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 TypeMethodDescriptionvoid
addFactory
(AudioDeviceFactory factory) Registers anAudioDeviceFactory
instance with this registry.Creates a newAudioDevice
.protected AudioDeviceFactory[]
protected void
void
removeFactory
(AudioDeviceFactory factory) void
removeFactoryType
(Class cls) static FactoryRegistry
Methods inherited from class javazoom.jl.player.AudioDeviceFactory
instantiate
-
Field Details
-
factories
-
-
Constructor Details
-
FactoryRegistry
public FactoryRegistry()
-
-
Method Details
-
systemRegistry
-
addFactory
Registers anAudioDeviceFactory
instance with this registry. -
removeFactoryType
-
removeFactory
-
createAudioDevice
Description copied from class:AudioDeviceFactory
Creates a newAudioDevice
.- Specified by:
createAudioDevice
in 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()
-