01: package org.compass.core.lucene.engine.indexdeletionpolicy;
02:
03: import org.apache.lucene.store.Directory;
04:
05: /**
06: * {@link org.apache.lucene.index.IndexDeletionPolicy} that implement this interface will be
07: * injected with a {@link org.apache.lucene.store.Directory} implementation to be used.
08: *
09: * <p>The directory will be injected just after construction and before any of
10: * {@link org.apache.lucene.index.IndexDeletionPolicy} methods will be called.
11: *
12: * @author kimchy
13: */
14: public interface DirectoryConfigurable {
15:
16: /**
17: * {@link org.apache.lucene.index.IndexDeletionPolicy} that implement this interface will be
18: * injected with a {@link org.apache.lucene.store.Directory} implementation to be used.
19: *
20: * <p>The directory will be injected just after construction and before any of
21: * {@link org.apache.lucene.index.IndexDeletionPolicy} methods will be called.
22: */
23: void setDirectory(Directory directory);
24: }
|