org.jboss.media.registry
Class JBossMediaFormatRegistry

java.lang.Object
  extended byorg.jboss.media.registry.JBossMediaFormatRegistry

public class JBossMediaFormatRegistry
extends java.lang.Object

A facade around SimpleMediaFormatRegistry or ManagedMediaFormatRegistry. SimpleMediaFormatRegistry is simpler to test. ManagedMediaFormatRegistry should be used in deployment.


Constructor Summary
JBossMediaFormatRegistry()
          Default constructor.
 
Method Summary
 void bind(java.lang.String fileExtension, MediaFormat (src)  mediaFormat)
           
static java.util.Map createMediaFormats()
           
 java.util.Iterator getFileExtensions()
           
 MediaFormat (src) lookup(java.lang.String fileExtension)
           
 void rebind(java.lang.String fileExtension, MediaFormat (src)  mediaFormat)
           
 void unbind(java.lang.String fileExtension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JBossMediaFormatRegistry

public JBossMediaFormatRegistry()
                         throws FormatAlreadyBoundException (src) 
Default constructor.

Method Detail

bind

public void bind(java.lang.String fileExtension,
                 MediaFormat (src)  mediaFormat)
          throws FormatAlreadyBoundException (src) 
Throws:
FormatAlreadyBoundException (src)

rebind

public void rebind(java.lang.String fileExtension,
                   MediaFormat (src)  mediaFormat)

unbind

public void unbind(java.lang.String fileExtension)
            throws FormatNotFoundException (src) 
Throws:
FormatNotFoundException (src)

lookup

public MediaFormat (src)  lookup(java.lang.String fileExtension)
                   throws FormatNotFoundException (src) 
Throws:
FormatNotFoundException (src)

getFileExtensions

public java.util.Iterator getFileExtensions()

createMediaFormats

public static java.util.Map createMediaFormats()