1 package org.apache.turbine.services.assemblerbroker; 2 3 18 19 import org.apache.turbine.modules.Assembler; 20 import org.apache.turbine.services.TurbineServices; 21 import org.apache.turbine.services.assemblerbroker.util.AssemblerFactory; 22 import org.apache.turbine.util.TurbineException; 23 24 32 public abstract class TurbineAssemblerBroker 33 { 34 40 public static AssemblerBrokerService getService() 41 { 42 return (AssemblerBrokerService) TurbineServices.getInstance() 43 .getService(AssemblerBrokerService.SERVICE_NAME); 44 } 45 46 52 public static void registerFactory(String type, AssemblerFactory factory) 53 { 54 getService().registerFactory(type, factory); 55 } 56 57 67 public static Assembler getAssembler(String type, String name) 68 throws TurbineException 69 { 70 return getService().getAssembler(type, name); 71 } 72 } 73 | Popular Tags |