|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| IAssignmentPolicyFactory.java | - | - | - | - |
|
||||||||||||||
| 1 | /** | |
| 2 | * JTRunner is free software; you can redistribute it and/or modify it under the | |
| 3 | * terms of the GNU General Public License as published by the Free Software | |
| 4 | * Foundation; either version 2, or (at your option) any later version. | |
| 5 | */ | |
| 6 | ||
| 7 | package jtr.assigner; | |
| 8 | ||
| 9 | /** | |
| 10 | * This interface defines the contract between JTR and those concrete classes in | |
| 11 | * charge of instantiating objects meant for managing the assignment of | |
| 12 | * parameters to <code>IRunner</code>s instances. Different factories can be | |
| 13 | * plugged-in by means of the <code>jtr.xml</code> configuration file. | |
| 14 | * | |
| 15 | * @author Francesco Russo (frusso@dev.java.net) | |
| 16 | * @version 4.0 | |
| 17 | * @since 1.0 | |
| 18 | * @see jtr.assigner.IAssignmentPolicy | |
| 19 | */ | |
| 20 | public interface IAssignmentPolicyFactory extends IFactory { | |
| 21 | /** | |
| 22 | * Returns an instance of <code>IAssignmentPolicy</code> according to the | |
| 23 | * requested type. | |
| 24 | * | |
| 25 | * @param type | |
| 26 | * The type of required <code>IAssignmentPolicy</code> | |
| 27 | * @throws UnknownAssignmentPolicyException | |
| 28 | * The requested type is not known | |
| 29 | * @return IAssignmentPolicy The requested <code>IAssignmentPolicy</code> | |
| 30 | */ | |
| 31 | public IAssignmentPolicy getInstance(String type) throws UnknownAssignmentPolicyException; | |
| 32 | } |
|
||||||||||