org.jvoicexml.implementation
Class DummyCallControlFactory

java.lang.Object
  extended by org.jvoicexml.implementation.DummyCallControlFactory
All Implemented Interfaces:
ResourceFactory<CallControl>

public final class DummyCallControlFactory
extends Object
implements ResourceFactory<CallControl>

Demo implementation of a ResourceFactory for the CallControl based on JSAPI 1.0.

Since:
0.5.5
Version:
$Revision: 214 $

Copyright © 2006 JVoiceXML group - http://jvoicexml.sourceforge.net/

Author:
Dirk Schnelle

Constructor Summary
DummyCallControlFactory()
          Constructs a new object.
 
Method Summary
 CallControl createResource()
          Factory method to create a resource.
 int getInstances()
          Retrieves the number of instances, that this factory will create using ResourceFactory.createResource().
 String getType()
          Retrieves the type of the resources that are created by this factory.
 void setInstances(int number)
          Sets the number of instances that this factory will create.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DummyCallControlFactory

public DummyCallControlFactory()
Constructs a new object.

Method Detail

createResource

public CallControl createResource()
                           throws NoresourceError
Factory method to create a resource.

Specified by:
createResource in interface ResourceFactory<CallControl>
Returns:
The created resource.
Throws:
NoresourceError - error creating the requested resource.

setInstances

public void setInstances(int number)
Sets the number of instances that this factory will create.

Parameters:
number - Number of instances to create.

getInstances

public int getInstances()
Retrieves the number of instances, that this factory will create using ResourceFactory.createResource().

Specified by:
getInstances in interface ResourceFactory<CallControl>
Returns:
Number of instances.

getType

public String getType()
Retrieves the type of the resources that are created by this factory.

Specified by:
getType in interface ResourceFactory<CallControl>
Returns:
Type of this implementation platform.


Copyright © 2005-2007 JVoiceXML group.