1
2
3
4
5
6 package org.openrdf.repository.threadproxy;
7
8 import org.openrdf.repository.Repository;
9 import org.openrdf.repository.config.DelegatingRepositoryImplConfigBase;
10 import org.openrdf.repository.config.RepositoryConfigException;
11 import org.openrdf.repository.config.RepositoryFactory;
12 import org.openrdf.repository.config.RepositoryImplConfig;
13
14
15
16
17
18
19 public class ThreadProxyRepositoryFactory implements RepositoryFactory {
20
21 public static final String REPOSITORY_TYPE = "openrdf:ThreadProxyRepository";
22
23 public String getRepositoryType() {
24 return REPOSITORY_TYPE;
25 }
26
27 public RepositoryImplConfig getConfig() {
28 return new DelegatingRepositoryImplConfigBase(REPOSITORY_TYPE);
29 }
30
31 public Repository getRepository(RepositoryImplConfig config)
32 throws RepositoryConfigException {
33 return new ThreadProxyRepository();
34 }
35 }