|
1 |
| package com.agical.rdoc.core.resourcemanager.impl; |
|
2 |
| |
|
3 |
| import com.agical.rdoc.core.resourcemanager.SourceProvider; |
|
4 |
| import com.agical.rmock.core.configuration.RMockServiceFactory; |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| public class SourceProviderFactory implements RMockServiceFactory { |
|
12 |
| |
|
13 |
3
| public Object createService() {
|
|
14 |
3
| SystemPropertiesBasedirProvider systemPropertiesBasedirProvider = new SystemPropertiesBasedirProvider();
|
|
15 |
3
| PropertiesSourceProvider propertiesSourceProvider = new PropertiesSourceProvider("sourceroots.properties", systemPropertiesBasedirProvider);
|
|
16 |
3
| return propertiesSourceProvider;
|
|
17 |
| } |
|
18 |
| |
|
19 |
2
| public boolean canCreateService() {
|
|
20 |
2
| return true;
|
|
21 |
| } |
|
22 |
| |
|
23 |
2
| public Class getServiceType() {
|
|
24 |
2
| return SourceProvider.class;
|
|
25 |
| } |
|
26 |
| |
|
27 |
| } |