1 15 package org.apache.hivemind.service.impl; 16 17 import org.apache.hivemind.ServiceImplementationFactoryParameters; 18 19 25 public class BuilderServiceIdFacet extends BuilderFacet 26 { 27 28 public Object getFacetValue(ServiceImplementationFactoryParameters parameters, Class targetType) 29 { 30 return parameters.getServiceId(); 31 } 32 33 public boolean isAssignableToType(ServiceImplementationFactoryParameters factoryParameters, 34 Class targetType) 35 { 36 return targetType == String .class; 37 } 38 39 protected String getDefaultPropertyName() 40 { 41 return "serviceId"; 42 } 43 } | Popular Tags |