public class Combinator extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Combinator.BeanFactory<T> |
static interface |
Combinator.CombinationAware |
| Constructor and Description |
|---|
Combinator() |
Combinator(Combinator parent) |
| Modifier and Type | Method and Description |
|---|---|
Combinator |
add(Object... options) |
ArrayList<Combinator> |
all() |
Combinator |
and() |
<T> T[] |
asBeans(Combinator.BeanFactory<T> factory)
Creates a bean for each combination of the type specified by clazz argument and uses setter/field
injection to initialize the Bean with the combination values.
|
Set<Map<String,Object>> |
combinations() |
<T> Object[] |
combinationsAsBeans(Class<T> clazz)
Creates a bean for each combination of the type specified by clazz arguement and uses setter/field
injection to initialize the Bean with the combination values.
|
<T> Object[][] |
combinationsAsParameterArgBeans(Class<T> clazz) |
<T> Object[][] |
combinationsAsParameterArgBeans(Combinator.BeanFactory<T> factory) |
Object[][] |
combinationsAsParameterArgs() |
static Combinator |
combinator() |
Combinator |
put(String attribute,
Object... options) |
public Combinator()
public Combinator(Combinator parent)
public static Combinator combinator()
public ArrayList<Combinator> all()
public Combinator put(String attribute, Object... options)
public Combinator and()
public Combinator add(Object... options)
public <T> Object[] combinationsAsBeans(Class<T> clazz) throws Exception
T - clazz - InstantiationExceptionIllegalAccessExceptionExceptionpublic <T> Object[][] combinationsAsParameterArgBeans(Class<T> clazz) throws Exception
Exceptionpublic <T> T[] asBeans(Combinator.BeanFactory<T> factory) throws Exception
clazz - InstantiationExceptionIllegalAccessExceptionExceptionpublic <T> Object[][] combinationsAsParameterArgBeans(Combinator.BeanFactory<T> factory) throws Exception
Exceptionpublic Object[][] combinationsAsParameterArgs()
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.