1
2
3
4
5
6 package org.openrdf.repository.readahead;
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 public class ReadAheadRepositoryFactory implements RepositoryFactory {
18
19 public static final String REPOSITORY_TYPE = "openrdf:ReadAheadRepository";
20
21 public String getRepositoryType() {
22 return REPOSITORY_TYPE;
23 }
24
25 public RepositoryImplConfig getConfig() {
26 return new DelegatingRepositoryImplConfigBase(REPOSITORY_TYPE);
27 }
28
29 public Repository getRepository(RepositoryImplConfig config)
30 throws RepositoryConfigException {
31 return new ReadAheadRepository();
32 }
33 }