View Javadoc

1   package com.atlassian.bonnie.index;
2   
3   import com.atlassian.bonnie.ILuceneConnection;
4   
5   /**
6    * Indexes/unindexes single objects.
7    */
8   public interface SingleObjectIndexer
9   {
10      /**
11       * Add an object to the index. Calls {@link #unindex} before the object is added.
12       *
13       * @param o
14       */
15      void index(Object o);
16  
17      /**
18       * Remove an object from the index.
19       *
20       * @param o
21       */
22      void unindex(Object o);
23  
24      void setLuceneConnection(ILuceneConnection luceneConnection);
25  
26      void setObjectToDocumentConverter(ObjectToDocumentConverter objectToDocumentConverter);
27  }