1 7 8 9 package org.jboss.media.engine; 10 11 import java.util.HashMap ; 12 import java.util.Iterator ; 13 14 import org.jboss.system.ServiceMBeanSupport; 15 16 22 public class MediaTranscoderRegistry 23 extends ServiceMBeanSupport 24 implements MediaTranscoderRegistryMBean 25 { 26 27 private HashMap m_transcoders = new HashMap (); 28 29 32 public void addTranscoder(String name , MediaTranscoder object) 33 { 34 m_transcoders.put(name,object); 35 } 36 37 40 public void removeTranscoder(String name) 41 { 42 m_transcoders.remove(name); 43 } 44 45 48 public Iterator getTranscoderNames() 49 { 50 return ((HashMap )m_transcoders.clone()).keySet().iterator(); 51 } 52 53 54 57 public MediaTranscoder getTranscoder(String name) 58 { 59 return (MediaTranscoder)m_transcoders.get(name); 60 } 61 62 } 63 | Popular Tags |