org.apache.tapestry.services.impl
Class DeferredObjectTranslator
java.lang.Object
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 DeferredObjectImpl
instances.
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
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 |
DeferredObjectTranslator
public DeferredObjectTranslator()
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.