|
1 |
| package com.agical.rdoc.core.target; |
|
2 |
| |
|
3 |
| import java.io.File; |
|
4 |
| import java.io.FileNotFoundException; |
|
5 |
| import java.io.IOException; |
|
6 |
| import java.io.OutputStream; |
|
7 |
| |
|
8 |
| import com.agical.rmock.core.exception.UnsatisfiedDependencySystemException; |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| public interface TargetProvider { |
|
17 |
| |
|
18 |
| TargetProvider NULL = new TargetProvider() { |
|
19 |
0
| public File getTarget() {
|
|
20 |
0
| throw new UnsatisfiedDependencySystemException(TargetProvider.class);
|
|
21 |
| } |
|
22 |
| |
|
23 |
0
| public OutputStream createRelativeOutputStream(String name) {
|
|
24 |
0
| throw new UnsatisfiedDependencySystemException(TargetProvider.class);
|
|
25 |
| } |
|
26 |
| }; |
|
27 |
| |
|
28 |
| File getTarget(); |
|
29 |
| |
|
30 |
| |
|
31 |
| |
|
32 |
| |
|
33 |
| |
|
34 |
| |
|
35 |
| |
|
36 |
| OutputStream createRelativeOutputStream(String name); |
|
37 |
| } |