1 15 package org.apache.hivemind.schema.rules; 16 17 import org.apache.hivemind.HiveMind; 18 import org.apache.hivemind.Location; 19 import org.apache.hivemind.internal.Module; 20 import org.apache.hivemind.schema.Translator; 21 22 27 public class ServiceTranslator implements Translator 28 { 29 34 public Object translate(Module contributingModule, Class propertyType, String inputValue, 35 Location location) 36 { 37 if (HiveMind.isBlank(inputValue)) 38 return null; 39 40 return contributingModule.getService(inputValue, Object .class); 41 } 42 43 } | Popular Tags |