org.mobicents.media
Interface ComponentFactory


public interface ComponentFactory

Acts as a factory of any media components.

Author:
yulian oifa

Method Summary
 Component newAudioComponent(ComponentType componentType)
          Constructs new component.
 Connection newConnection(boolean isLocal)
          Constructs new connection.
 void releaseAudioComponent(Component component, ComponentType componentType)
          Frees previously allocated component component.
 void releaseConnection(Connection connection, boolean isLocal)
          Releases new connection.
 

Method Detail

newAudioComponent

Component newAudioComponent(ComponentType componentType)
Constructs new component.

Parameters:
componentType - - type of component to be created
Returns:
new instance of the component.

releaseAudioComponent

void releaseAudioComponent(Component component,
                           ComponentType componentType)
Frees previously allocated component component.

Parameters:
component - - component to release
componentType - - type of component to be created

newConnection

Connection newConnection(boolean isLocal)
Constructs new connection.

Parameters:
isLocal - - created connection should be local or remote
Returns:
new instance of the connection.

releaseConnection

void releaseConnection(Connection connection,
                       boolean isLocal)
Releases new connection.

Parameters:
connection - - connection to release
isLocal - - created connection should be local or remote


Copyright © 2013 TeleStax, Inc.. All Rights Reserved.