java.lang.Object
org.apache.hivemind.schema.rules.ServiceTranslator
- All Implemented Interfaces:
- org.apache.hivemind.schema.Translator
- public class ServiceTranslator
- extends java.lang.Object
- implements org.apache.hivemind.schema.Translator
Used to translate a value into a reference to a HiveMind service within the registry.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceTranslator
public ServiceTranslator()
translate
public java.lang.Object translate(org.apache.hivemind.internal.Module contributingModule,
java.lang.Class propertyType,
java.lang.String inputValue,
org.apache.hivemind.Location location)
- Returns null if the input is null or empty. Returns the service with the given name
otherwise. Will log an error and return null if an exception is thrown. If the input value is
not qualified, the contributing module's id is added as a prefix.
- Specified by:
translate
in interface org.apache.hivemind.schema.Translator