net.sourceforge.groboutils.util.datastruct.v1
Class ObjectCache.DefaultObjectCreator

java.lang.Object
  extended bynet.sourceforge.groboutils.util.datastruct.v1.ObjectCache.DefaultObjectCreator
All Implemented Interfaces:
ObjectCache.ObjectCreator
Enclosing class:
ObjectCache

public static class ObjectCache.DefaultObjectCreator
extends java.lang.Object
implements ObjectCache.ObjectCreator

A default object creator - given a Class object, it attempts to create a new Object using the default constructor.


Constructor Summary
ObjectCache.DefaultObjectCreator(java.lang.Class clazz)
          Defines the class to create an instance in the creation method; the class must have a no-argument constructor for this class to work.
 
Method Summary
 java.lang.Object createObject()
          Called when a new object needs to be created.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCache.DefaultObjectCreator

public ObjectCache.DefaultObjectCreator(java.lang.Class clazz)
Defines the class to create an instance in the creation method; the class must have a no-argument constructor for this class to work.

Method Detail

createObject

public java.lang.Object createObject()
Description copied from interface: ObjectCache.ObjectCreator
Called when a new object needs to be created.

Specified by:
createObject in interface ObjectCache.ObjectCreator
Returns:
the newly created object


Copyright © 2001-2003 by The GroboUtils Project