Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.hivemind.schema.rules
Class ServiceTranslator  view ServiceTranslator download ServiceTranslator.java

java.lang.Object
  extended byorg.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.


Constructor Summary
ServiceTranslator()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceTranslator

public ServiceTranslator()
Method Detail

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