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