org.apache.tapestry.services.impl
Class DeferredObjectTranslator

java.lang.Object
  extended by org.apache.tapestry.services.impl.DeferredObjectTranslator
All Implemented Interfaces:
org.apache.hivemind.schema.Translator

public class DeferredObjectTranslator
extends Object
implements org.apache.hivemind.schema.Translator

Service tapestry.DeferredObjectTranslator, which is used to encapsulate the ObjectTranslator and return DeferredObjectImplinstances. These allow the translator to not be executed until (and unless) the value is needed, with the added expense that you have to de-referrence the DeferredObjectImpl.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
DeferredObjectTranslator()
           
 
Method Summary
 void setObjectTranslator(org.apache.hivemind.schema.Translator objectTranslator)
           
 Object translate(org.apache.hivemind.internal.Module module, Class propertyType, String inputValue, org.apache.hivemind.Location location)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeferredObjectTranslator

public DeferredObjectTranslator()
Method Detail

translate

public Object translate(org.apache.hivemind.internal.Module module,
                        Class propertyType,
                        String inputValue,
                        org.apache.hivemind.Location location)
Specified by:
translate in interface org.apache.hivemind.schema.Translator

setObjectTranslator

public void setObjectTranslator(org.apache.hivemind.schema.Translator objectTranslator)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.