1 15 package org.apache.hivemind.service.impl; 16 17 import org.apache.commons.logging.Log; 18 import org.apache.hivemind.ServiceImplementationFactoryParameters; 19 20 26 public class BuilderLogFacet extends BuilderFacet 27 { 28 public Object getFacetValue(ServiceImplementationFactoryParameters factoryParameters, 29 Class targetType) 30 { 31 return factoryParameters.getLog(); 32 } 33 34 public boolean isAssignableToType(ServiceImplementationFactoryParameters factoryParameters, 35 Class targetType) 36 { 37 return targetType == Log.class; 38 } 39 40 protected String getDefaultPropertyName() 41 { 42 return "log"; 43 } 44 45 46 public boolean canAutowireConstructorParameter() 47 { 48 return true; 49 } 50 } | Popular Tags |