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