Class MediaPackageBuilderFactory

java.lang.Object
org.opencastproject.mediapackage.MediaPackageBuilderFactory

public final class MediaPackageBuilderFactory extends Object
Factory to retrieve instances of a media package builder. Use the static method newInstance() to obtain a reference to a concrete implementation of a MediaPackageBuilderFactory. This instance can then be used to create or load media packages.

The factory can be configured by specifying the concrete implementation class through the system property org.opencastproject.mediapackage.builder.

  • Field Details

  • Method Details

    • newInstance

      public static MediaPackageBuilderFactory newInstance() throws ConfigurationException
      Returns an instance of a MediaPackageBuilderFactory.
      Returns:
      the media package builder factory
      Throws:
      ConfigurationException - if the factory cannot be instantiated
    • newMediaPackageBuilder

      public MediaPackageBuilder newMediaPackageBuilder() throws ConfigurationException
      Factory method that returns an instance of a media package builder.

      It uses the following ordered lookup procedure to determine which implementation of the MediaPackageBuilder interface to use:

      • Implementation specified using the org.opencastproject.mediapackage.builder system property
      • Platform default implementation
      Returns:
      the media package builder
      Throws:
      ConfigurationException - If the builder cannot be instantiated