1 15 package org.apache.hivemind.lib.factory; 16 17 import org.apache.hivemind.ServiceImplementationFactory; 18 import org.apache.hivemind.ServiceImplementationFactoryParameters; 19 import org.apache.hivemind.impl.BaseLocatable; 20 21 26 public class BeanFactoryBuilder extends BaseLocatable implements ServiceImplementationFactory 27 { 28 public Object createCoreServiceImplementation( 29 ServiceImplementationFactoryParameters factoryParameters) 30 { 31 BeanFactoryParameter p = (BeanFactoryParameter) factoryParameters.getFirstParameter(); 32 33 return new BeanFactoryImpl(factoryParameters.getErrorLog(), p.getVendClass(), p 34 .getContributionsList(), p.getDefaultCacheable()); 35 } 36 } | Popular Tags |