|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ServiceCreatorDefaultImpl.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | package net.sf.crispy.server; | |
| 2 | ||
| 3 | import net.sf.crispy.util.Util; | |
| 4 | ||
| 5 | /** | |
| 6 | * Default implementation. | |
| 7 | * | |
| 8 | * @author Linke | |
| 9 | * | |
| 10 | */ | |
| 11 | public class ServiceCreatorDefaultImpl implements ServiceCreator { | |
| 12 | ||
| 13 | /** | |
| 14 | * With reflection <code>Class.forName</code> and <code>newInstance</code> create a new service instance. | |
| 15 | */ | |
| 16 | 16 | public Object createService(String pvServiceInterfaceClassName, String pvServiceImplClassName) throws Exception { |
| 17 | 16 | Object lvObject = Util.createObject(pvServiceImplClassName); |
| 18 | 16 | return lvObject; |
| 19 | } | |
| 20 | ||
| 21 | } |
|
||||||||||