nl.beesting.beangenerator.generator
Interface InstanceGenerator

All Known Implementing Classes:
AbstractInstanceGenerator, ColorInstanceGenerator, DateInstanceGenerator, FloatingPointNumberInstanceGenerator, IntegralNumberInstanceGenerator, ListInstanceGenerator, PhoneticalNameGenerator, PrimaryKeyGenerator, RegularExpressionInstanceGenerator, StringInstanceGenerator, TextInstanceGenerator, WordListInstanceGenerator

public interface InstanceGenerator


Method Summary
 java.lang.Object generateInstance(java.lang.Class<?> type)
          Create an instance for the given class.
 java.lang.Object generateInstance(java.lang.Class<?> type, int modus)
          Create an instance for the given class with an instance generator specific modus.
 void init(ParameterPair[] initParams)
          Initializes the instnce generator with the given array of objects.
 

Method Detail

init

void init(ParameterPair[] initParams)
Initializes the instnce generator with the given array of objects.

Parameters:
initParams -

generateInstance

java.lang.Object generateInstance(java.lang.Class<?> type)
                                  throws TypeNotSupportedException
Create an instance for the given class. The returned object is of the given class.

Parameters:
type -
Returns:
Throws:
TypeNotSupportedException

generateInstance

java.lang.Object generateInstance(java.lang.Class<?> type,
                                  int modus)
                                  throws TypeNotSupportedException
Create an instance for the given class with an instance generator specific modus. The returned object is of the given class.

Parameters:
type -
modus -
Returns:
Throws:
TypeNotSupportedException


Copyright © 2008. All Rights Reserved.