| 
  |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| Factories.java | - | 100% | 100% | 100% | 
             | 
  ||||||||||||||
| 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.config; | |
| 8 | ||
| 9 | import java.io.Serializable; | |
| 10 | import java.util.LinkedList; | |
| 11 | import java.util.List; | |
| 12 | ||
| 13 | /** | |
| 14 | * This class represents a set of factories configured in a <code>jtr.xml</code> | |
| 15 | * configuration file. These factories are all responsible for instantiating | |
| 16 | * components of the JTR runtime. | |
| 17 | * | |
| 18 | * @author frusso | |
| 19 | * @version 4.0 | |
| 20 | * @since 4.0 | |
| 21 | */ | |
| 22 | public class Factories implements Serializable { | |
| 23 | ||
| 24 | /** Creates a new instance of Factories */ | |
| 25 | 1 | public Factories() { | 
| 26 | 1 | factories = new LinkedList<Factory>(); | 
| 27 | } | |
| 28 | ||
| 29 | 6 | public void addFactory(Factory f) { | 
| 30 | 6 | factories.add(f); | 
| 31 | } | |
| 32 | ||
| 33 | 2 | public List<Factory> getFactories() { | 
| 34 | 2 | return factories; | 
| 35 | } | |
| 36 | ||
| 37 | private List<Factory> factories; | |
| 38 | } | 
  | 
||||||||||