public class FactoryRegistry extends AudioDeviceFactory
FactoryRegistry class stores the factories
for all the audio device implementations available in the system.
Instances of this class are thread-safe.
| Constructor and Description |
|---|
FactoryRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFactory(AudioDeviceFactory factory)
Registers an
AudioDeviceFactory instance
with this registry. |
AudioDevice |
createAudioDevice()
Creates a new
AudioDevice. |
protected AudioDeviceFactory[] |
getFactoriesPriority() |
protected void |
registerDefaultFactories() |
void |
removeFactory(AudioDeviceFactory factory) |
void |
removeFactoryType(Class cls) |
static FactoryRegistry |
systemRegistry() |
instantiateprotected Hashtable factories
public static FactoryRegistry systemRegistry()
public void addFactory(AudioDeviceFactory factory)
AudioDeviceFactory instance
with this registry.public void removeFactoryType(Class cls)
public void removeFactory(AudioDeviceFactory factory)
public AudioDevice createAudioDevice() throws JavaLayerException
AudioDeviceFactoryAudioDevice.createAudioDevice in class AudioDeviceFactoryAudioDevice.JavaLayerException - if an instance of AudioDevice could not
be created.protected AudioDeviceFactory[] getFactoriesPriority()
protected void registerDefaultFactories()
Copyright © 2016. All Rights Reserved.