Class EncodingProfileScanner

java.lang.Object
org.opencastproject.composer.impl.EncodingProfileScanner
All Implemented Interfaces:
org.apache.felix.fileinstall.ArtifactInstaller, org.apache.felix.fileinstall.ArtifactListener

public class EncodingProfileScanner extends Object implements org.apache.felix.fileinstall.ArtifactInstaller
This manager class tries to read encoding profiles from the classpath.
  • Constructor Details

    • EncodingProfileScanner

      public EncodingProfileScanner()
  • Method Details

    • getProfiles

      public Map<String,EncodingProfile> getProfiles()
      Returns the list of profiles.
      Returns:
      the profile definitions
    • getProfile

      public EncodingProfile getProfile(String id)
      Returns the encoding profile for the given identifier or null if no such profile has been configured.
      Parameters:
      id - the profile identifier
      Returns:
      the profile
    • canHandle

      public boolean canHandle(File artifact)
      Specified by:
      canHandle in interface org.apache.felix.fileinstall.ArtifactListener
      See Also:
      • ArtifactListener.canHandle(java.io.File)
    • install

      public void install(File artifact) throws Exception
      Specified by:
      install in interface org.apache.felix.fileinstall.ArtifactInstaller
      Throws:
      Exception
      See Also:
      • ArtifactInstaller.install(java.io.File)
    • uninstall

      public void uninstall(File artifact) throws Exception
      Specified by:
      uninstall in interface org.apache.felix.fileinstall.ArtifactInstaller
      Throws:
      Exception
      See Also:
      • ArtifactInstaller.uninstall(java.io.File)
    • update

      public void update(File artifact) throws Exception
      Specified by:
      update in interface org.apache.felix.fileinstall.ArtifactInstaller
      Throws:
      Exception
      See Also:
      • ArtifactInstaller.update(java.io.File)