org.jvoicexml
Interface ExternalResource

All Superinterfaces:
RemoteConnectable
All Known Subinterfaces:
CallControl, SpokenInput, SystemOutput, UserInput
All Known Implementing Classes:
AudioInput, AudioOutput, DummyCallControl

public interface ExternalResource
extends RemoteConnectable

An external resource that is required by the used implementation platform.

Version:
$Revision: 206 $

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

Author:
Dirk Schnelle

Method Summary
 void activate()
          Activates this resource, when it is retrieved from the pool.
 void close()
          Closes and releases the acquired resources.
 String getType()
          Retrieves a unique identifier for this external resource.
 void open()
          Initializes and and acquires the needed resources.
 void passivate()
          Passivates this resource, when it is returned to the pool.
 
Methods inherited from interface org.jvoicexml.RemoteConnectable
connect
 

Method Detail

getType

String getType()
Retrieves a unique identifier for this external resource.

Returns:
unique identifier.

open

void open()
          throws NoresourceError
Initializes and and acquires the needed resources.

Throws:
NoresourceError - The resource could not be opened.

activate

void activate()
Activates this resource, when it is retrieved from the pool.

Since:
0.5.5

passivate

void passivate()
Passivates this resource, when it is returned to the pool.

Since:
0.5.5

close

void close()
Closes and releases the acquired resources.



Copyright © 2005-2007 JVoiceXML group.