01: /*
02: * Copyright James Leigh (c) 2007.
03: *
04: * Licensed under the Aduna BSD-style license.
05: */
06: package org.openrdf.repository.event;
07:
08: import java.io.File;
09: import java.util.EventListener;
10:
11: import org.openrdf.repository.Repository;
12: import org.openrdf.repository.RepositoryConnection;
13:
14: /**
15: * Interceptor interface for Repository state changes.
16: *
17: * @author Herko ter Horst
18: *
19: */
20: public interface RepositoryInterceptor extends EventListener {
21:
22: public abstract boolean getConnection(Repository repo,
23: RepositoryConnection conn);
24:
25: public abstract boolean initialize(Repository repo);
26:
27: public abstract boolean setDataDir(Repository repo, File dataDir);
28:
29: public abstract boolean shutDown(Repository repo);
30:
31: }
|