|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
JaxWsHelperFactory.java | 100% | 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.ws.jaxws; | |
8 | ||
9 | import jtr.assigner.IFactory; | |
10 | import jtr.ws.IWsHelper; | |
11 | import jtr.ws.IWsHelperFactory; | |
12 | ||
13 | /** | |
14 | * Factory for instantiating new JAX-WS-based <code>IWsHelper</code>s. | |
15 | * | |
16 | * @author frusso | |
17 | * @version 4.0 | |
18 | * @since 4.0 | |
19 | */ | |
20 | public class JaxWsHelperFactory implements IWsHelperFactory, IFactory { | |
21 | ||
22 | 34 | public synchronized IWsHelper getInstance() { |
23 | 34 | if(singleton==null) { |
24 | 2 | singleton = new JaxWsHelper(); |
25 | } | |
26 | 34 | return singleton; |
27 | } | |
28 | ||
29 | private IWsHelper singleton; | |
30 | } |
|