org.apache.hivemind.lib.factory
Class BeanTranslator

java.lang.Object
  |
  +--org.apache.hivemind.lib.factory.BeanTranslator
All Implemented Interfaces:
org.apache.hivemind.schema.Translator

public class BeanTranslator
extends java.lang.Object
implements org.apache.hivemind.schema.Translator

A translator that references a named (or named and initialized) bean from a BeanFactory. The translator string is of the form: service-id:name[,initializer]. That is, the text after the colon is an initializer passed to BeanFactory.get(String).

Author:
Howard Lewis Ship

Constructor Summary
BeanTranslator()
           
 
Method Summary
 java.lang.Object translate(org.apache.hivemind.internal.Module contributingModule, java.lang.Class propertyType, java.lang.String inputValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanTranslator

public BeanTranslator()
Method Detail

translate

public java.lang.Object translate(org.apache.hivemind.internal.Module contributingModule,
                                  java.lang.Class propertyType,
                                  java.lang.String inputValue)
Specified by:
translate in interface org.apache.hivemind.schema.Translator