| Modifier and Type | Field and Description |
|---|---|
| private final ITestObjectFactory |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static Object | |
| pack-priv static <T> T | createInstance(Class<T> declaringClass, Map<Class<?>, IClass> classes, XmlTest xmlTest, IAnnotationFinder finder, ITestObjectFactory objectFactory, boolean create, String errorMsgPrefix)
|
| public Object | dispense(CreationAttributes attributes)
Implements org. |
| private static <T> Constructor | findAnnotatedConstructor(IAnnotationFinder finder, Class<T> declaringClass)
Find the best constructor given the parameters found on the annotation |
| private static <T> T | instantiateUsingDefaultConstructor(Class<T> declaringClass, Map<Class<?>, IClass> classes, XmlTest xmlTest, ITestObjectFactory factory)
|
| private static <T> T | instantiateUsingParameterizedConstructor(IAnnotationFinder finder, Constructor<T> constructor, XmlTest xmlTest, ITestObjectFactory objectFactory)
|
| public void | setNextDispenser(IObjectDispenser
- The dispenser)IObjectDispenser to dispenseImplements org. |
| objectFactory | back to summary |
|---|---|
| private final ITestObjectFactory objectFactory | |
| SimpleObjectDispenser | back to summary |
|---|---|
| pack-priv SimpleObjectDispenser(ITestObjectFactory objectFactory) | |
| computeParameters | back to summary |
|---|---|
| private static Object computeParameters(Map<Class<?>, IClass> classes, Class<?> ec, ITestObjectFactory factory) throws NoSuchMethodException | |
| createInstance | back to summary |
|---|---|
| pack-priv static <T> T createInstance(Class<T> declaringClass, Map<Class<?>, IClass> classes, XmlTest xmlTest, IAnnotationFinder finder, ITestObjectFactory objectFactory, boolean create, String errorMsgPrefix) | |
| dispense | back to summary |
|---|---|
| public Object dispense(CreationAttributes attributes) Implements org.
| |
| findAnnotatedConstructor | back to summary |
|---|---|
| private static <T> Constructor Find the best constructor given the parameters found on the annotation | |
| instantiateUsingDefaultConstructor | back to summary |
|---|---|
| private static <T> T instantiateUsingDefaultConstructor(Class<T> declaringClass, Map<Class<?>, IClass> classes, XmlTest xmlTest, ITestObjectFactory factory) throws NoSuchMethodException | |
| instantiateUsingParameterizedConstructor | back to summary |
|---|---|
| private static <T> T instantiateUsingParameterizedConstructor(IAnnotationFinder finder, Constructor<T> constructor, XmlTest xmlTest, ITestObjectFactory objectFactory) | |
| setNextDispenser | back to summary |
|---|---|
| public void setNextDispenser(IObjectDispenser dispenser) Implements org.
| |