zinger.util.recycling
Class CollectionGenerator

java.lang.Object
  extended by zinger.util.recycling.ClassInstanceGenerator
      extended by zinger.util.recycling.CollectionGenerator
All Implemented Interfaces:
ObjectGenerator

public class CollectionGenerator
extends ClassInstanceGenerator


Field Summary
 
Fields inherited from class zinger.util.recycling.ClassInstanceGenerator
args, constructor, EMPTY_CLASS_ARRAY
 
Constructor Summary
CollectionGenerator(java.lang.Class c)
           
CollectionGenerator(java.lang.reflect.Constructor constructor, java.lang.Object[] args)
           
 
Method Summary
 boolean prepareObject(java.lang.Object obj, java.lang.Object arg)
          An empty implementation for the sake of not having to declare this class abstract.
 
Methods inherited from class zinger.util.recycling.ClassInstanceGenerator
getDefaultConstructor, newObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionGenerator

public CollectionGenerator(java.lang.reflect.Constructor constructor,
                           java.lang.Object[] args)
                    throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

CollectionGenerator

public CollectionGenerator(java.lang.Class c)
                    throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException
Method Detail

prepareObject

public boolean prepareObject(java.lang.Object obj,
                             java.lang.Object arg)
                      throws java.lang.IllegalArgumentException
Description copied from class: ClassInstanceGenerator
An empty implementation for the sake of not having to declare this class abstract.

Specified by:
prepareObject in interface ObjectGenerator
Overrides:
prepareObject in class ClassInstanceGenerator
Returns:
true if the preparation succeeded
false if there is something wrong with the object passed
Throws:
java.lang.IllegalArgumentException - if the argument passed for preparation is inappropriate