Class MrcpFactory

java.lang.Object
com.bytedesk.call.mrcp4j.client.MrcpFactory

public class MrcpFactory extends Object
Provides factory methods for MRCPv2 clients to gain access to MrcpProvider instances.

Currently having to go through a factory to construct an MrcpProvider may seem like a bit of overkill. However, this is implemented this way in order to facilitate transitioning in the future to a design in which there may be multiple provider implementations accessible through a single factory method.

Author:
Niels Godfredsen <ngodfredsen@users.sourceforge.net>
  • Constructor Details

    • MrcpFactory

      private MrcpFactory()
  • Method Details

    • createProvider

      public MrcpProvider createProvider()
      Constructs a new MrcpProvider instance which provides client access to MRCP resources.
      Returns:
      new provider instance.
    • newInstance

      public static MrcpFactory newInstance()
      Constructs a new MrcpFactory instance.
      Returns:
      new factory instance.