org.jvoicexml.implementation
Interface ResourceFactory<T extends ExternalResource>

Type Parameters:
T - Type of ExternalResource to produce in this factory.
All Known Implementing Classes:
DummyCallControlFactory, SpokenInputFactory, SystemOutputFactory

public interface ResourceFactory<T extends ExternalResource>

Factory for external resources with type T, that can be connected to a RemoteClient.

Since:
0.5.5
Version:
$Revision: 225 $

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

Author:
Dirk Schnelle

Method Summary
 T createResource()
          Factory method to create a resource.
 int getInstances()
          Retrieves the number of instances, that this factory will create using createResource().
 String getType()
          Retrieves the type of the resources that are created by this factory.
 

Method Detail

createResource

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

Returns:
The created resource.
Throws:
NoresourceError - error creating the requested resource.

getInstances

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

Returns:
Number of instances.

getType

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

Returns:
Type of this implementation platform.


Copyright © 2005-2007 JVoiceXML group.