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.
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Hashtable |
factories |
| 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(java.lang.Class cls) |
static FactoryRegistry |
systemRegistry() |
instantiatepublic static FactoryRegistry systemRegistry()
public void addFactory(AudioDeviceFactory factory)
AudioDeviceFactory instance
with this registry.public void removeFactoryType(java.lang.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()