1 45 package org.openejb.spi; 46 47 import java.util.Properties ; 48 49 import org.openejb.EnvProps; 50 import org.openejb.OpenEJBException; 51 import org.openejb.util.SafeToolkit; 52 53 54 public class AssemblerFactory { 55 56 public static Assembler getAssembler(Properties props)throws OpenEJBException{ 57 SafeToolkit toolkit = SafeToolkit.getToolkit("AssemblerFactory"); 58 59 toolkit.getSafeProperties(props); 60 61 String className = props.getProperty(EnvProps.ASSEMBLER,"org.openejb.alt.assembler.classic.Assembler"); 62 63 Assembler asse = (Assembler)toolkit.newInstance(className); 64 asse.init(props); 65 return asse; 66 } 67 } 68 | Popular Tags |