org.apache.tapestry5.ioc.internal.services
Class CachingObjectCreator

java.lang.Object
  extended by org.apache.tapestry5.ioc.internal.services.CachingObjectCreator
All Implemented Interfaces:
ObjectCreator

public class CachingObjectCreator
extends java.lang.Object
implements ObjectCreator

An ObjectCreator that delegates to another ObjectCreator and caches the result.


Constructor Summary
CachingObjectCreator(ObjectCreator delegate)
           
 
Method Summary
 java.lang.Object createObject()
          Create and return the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachingObjectCreator

public CachingObjectCreator(ObjectCreator delegate)
Method Detail

createObject

public java.lang.Object createObject()
Description copied from interface: ObjectCreator
Create and return the object. In some limited circumstances, the implementation may cache the result, returning the same object for repeated calls.

Specified by:
createObject in interface ObjectCreator


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