Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* Factory for Test Execution Required implementations.
* Implementations have to register to this factory.
*
* @author ETSI / STF424
* @version $URL$
* $Id$
*
*/
package org.etsi.adapter;
/**
* Factory for Test Execution Required implementations.
* Implementations have to register to this factory.
*/
public class TERFactory {
/**
* Registered ITERequired implementation
*/
private static ITERequired instance;
/**
* Gets the registered ITERequired implementation
* @return Instance of ITERequired implementation registered through setImpl() or null
* @see setImpl
*/
public static ITERequired getInstance() {
return instance;
}
/**
* Private constructor (Singleton pattern)
*/
private TERFactory() {
//empty
}
/**
* Sets the implementation instance to be returned by the factory
* @param impl Instance of the implementation to be registered
*/
public static void setImpl(ITERequired impl) {
instance = impl;
}
}