public final class JVoiceXmlImplementationPlatformFactory extends java.lang.Object implements ImplementationPlatformFactory
ImplementationPlatformFactory.
This implementation manages a pool of resource factories which are delivered
to each created ImplementationPlatform.
In init(Configuration) the resources are acquired as
PlatformFactorys and ResourceFactorys.
| Constructor and Description |
|---|
JVoiceXmlImplementationPlatformFactory()
Constructs a new object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPlatform(PlatformFactory platform)
Adds the given platform factory to the list of known factories.
|
void |
addSpokenInputFactory(ResourceFactory<SpokenInput> factory)
Adds the given
ResourceFactory for SpokenInput to the
list of know factories. |
void |
addTelephonyFactory(ResourceFactory<Telephony> factory)
Adds the given
ResourceFactory for Telephony to the list
of know factories. |
void |
close()
Closes all implementation platforms.
|
ImplementationPlatform |
getImplementationPlatform(ConnectionInformation info)
Factory method to retrieve an implementation platform for the given
connection information.
|
void |
init(Configuration config)
Initializes this component with data from the given configuration object.
|
public JVoiceXmlImplementationPlatformFactory()
This method should not be called by any application. This resource is
controlled by the JvoiceXml object.
JVoiceXmlpublic void init(Configuration config) throws ConfigurationException
PlatformFactorys and
ResourceFactorys. They can also be set manually by
addPlatform(PlatformFactory),
addSpokenInputFactory(ResourceFactory),
addSynthesizedOutputFactory(ResourceFactory) and
addTelephonyFactory(ResourceFactory).init in interface Configurableconfig - the current configuration, maybe nullConfigurationException - error initializing the component.public void addPlatform(PlatformFactory platform) throws java.lang.Exception
platform - the platform factory to add.java.lang.Exception - error adding the platformpublic void addSpokenInputFactory(ResourceFactory<SpokenInput> factory) throws java.lang.Exception
ResourceFactory for SpokenInput to the
list of know factories.factory - the factory to add.java.lang.Exception - error adding the factorypublic void addTelephonyFactory(ResourceFactory<Telephony> factory) throws java.lang.Exception
ResourceFactory for Telephony to the list
of know factories.factory - the factory to add.java.lang.Exception - error adding the factorypublic ImplementationPlatform getImplementationPlatform(ConnectionInformation info) throws NoresourceError
getImplementationPlatform in interface ImplementationPlatformFactoryinfo - the connection information to useImplementationPlatform to use.NoresourceError - Error assigning the calling device to TTS or recognizer.public void close()
close in interface ImplementationPlatformFactory