org.apache.tapestry.services.impl
Class DeferredObjectImpl

java.lang.Object
  extended by org.apache.tapestry.services.impl.DeferredObjectImpl
All Implemented Interfaces:
org.apache.hivemind.Locatable, DeferredObject

public class DeferredObjectImpl
extends Object
implements DeferredObject

An encapsulation of an invocation of Translator.translate(org.apache.hivemind.internal.Module, java.lang.Class, java.lang.String, org.apache.hivemind.Location), allowing the actual invocation (and all the object creation, etc., that entails) to be deferred, or even avoided all together.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
DeferredObjectImpl(org.apache.hivemind.schema.Translator objectTranslator, org.apache.hivemind.internal.Module module, String objectReference, org.apache.hivemind.Location location)
           
 
Method Summary
 org.apache.hivemind.Location getLocation()
           
 Object getObject()
          Returns the target object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeferredObjectImpl

public DeferredObjectImpl(org.apache.hivemind.schema.Translator objectTranslator,
                          org.apache.hivemind.internal.Module module,
                          String objectReference,
                          org.apache.hivemind.Location location)
Method Detail

getObject

public Object getObject()
Description copied from interface: DeferredObject
Returns the target object. The caller is expected to cache the result, if appropriate.

Specified by:
getObject in interface DeferredObject

getLocation

public org.apache.hivemind.Location getLocation()
Specified by:
getLocation in interface org.apache.hivemind.Locatable


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