|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| WsifHelperFactory.java | - | 0% | 0% | 0% |
|
||||||||||||||
| 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.ws.wsif; | |
| 8 | ||
| 9 | import jtr.assigner.IFactory; | |
| 10 | import jtr.ws.IWsHelper; | |
| 11 | import jtr.ws.IWsHelperFactory; | |
| 12 | ||
| 13 | /** | |
| 14 | * This factory class is one of the concrete implementation of the <code>IWsHelperFactory</code> | |
| 15 | * interface.<br> | |
| 16 | * This class represents the entry point available to application-level concrete runner | |
| 17 | * implementations to the webservices functionalities implemented by means of the WSIF | |
| 18 | * project.<br> | |
| 19 | * In order to change thi entry point with another one based on other webservice frameworks, | |
| 20 | * you have to follow these steps:<br> | |
| 21 | * 1. implement the <code>IWsHelperFactory</code> interface<br> | |
| 22 | * 2. implement the <code>IWsHelper</code> interface<br> | |
| 23 | * 3. implement any other class you might need<br> | |
| 24 | * 4. package them all and put the jar in the classpath<br> | |
| 25 | * 5. point out the FQN of the factory implemented at the first step in the jtr.xml configuration file | |
| 26 | * as a <code>factory</code> element, using as a key <code>IWsHelperFactory</code><br> | |
| 27 | * | |
| 28 | * @see jtr.ws.wsif.WsifHelper | |
| 29 | * @author Francesco Russo (frusso@dev.java.net) | |
| 30 | * @version 4.0 | |
| 31 | * @since 3.0 | |
| 32 | */ | |
| 33 | public class WsifHelperFactory implements IWsHelperFactory, IFactory { | |
| 34 | ||
| 35 | /** | |
| 36 | * @see jtr.ws.IWsHelperFactory#getInstance() | |
| 37 | */ | |
| 38 | 0 | public IWsHelper getInstance() { |
| 39 | 0 | return new WsifHelper(); |
| 40 | } | |
| 41 | } |
|
||||||||||