[hibernate-commits] Hibernate SVN: r15437 - search/trunk/src/java/org/hibernate/search/backend.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Oct 29 12:51:52 EDT 2008


Author: hardy.ferentschik
Date: 2008-10-29 12:51:52 -0400 (Wed, 29 Oct 2008)
New Revision: 15437

Modified:
   search/trunk/src/java/org/hibernate/search/backend/BackendQueueProcessorFactory.java
   search/trunk/src/java/org/hibernate/search/backend/TransactionContext.java
Log:
Javadoc changes

Modified: search/trunk/src/java/org/hibernate/search/backend/BackendQueueProcessorFactory.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/backend/BackendQueueProcessorFactory.java	2008-10-29 16:34:25 UTC (rev 15436)
+++ search/trunk/src/java/org/hibernate/search/backend/BackendQueueProcessorFactory.java	2008-10-29 16:51:52 UTC (rev 15437)
@@ -7,9 +7,8 @@
 import org.hibernate.search.engine.SearchFactoryImplementor;
 
 /**
- * Build stateful backend processor
- * Must have a no arg constructor
- * The factory typically prepare or pool the resources needed by the queue processor
+ * Interface for different types of queue processor factories. Implementations need a no-arg constructor.
+ * The factory typically prepares or pools the resources needed by the queue processor.
  *
  * @author Emmanuel Bernard
  */
@@ -17,8 +16,10 @@
 	void initialize(Properties props, SearchFactoryImplementor searchFactory);
 
 	/**
-	 * Return a runnable implementation responsible for processing the queue to a given backend
+	 * Return a runnable implementation responsible for processing the queue to a given backend.
+	 *
+	 * @param queue The work queue to process.
+	 * @return <code>Runnable</code> which processes <code>queue</code> when started.
 	 */
-
 	Runnable getProcessor(List<LuceneWork> queue);
 }

Modified: search/trunk/src/java/org/hibernate/search/backend/TransactionContext.java
===================================================================
--- search/trunk/src/java/org/hibernate/search/backend/TransactionContext.java	2008-10-29 16:34:25 UTC (rev 15436)
+++ search/trunk/src/java/org/hibernate/search/backend/TransactionContext.java	2008-10-29 16:51:52 UTC (rev 15437)
@@ -4,13 +4,13 @@
 import javax.transaction.Synchronization;
 
 /**
- * Contract needed by Hibernate Search to bach changes per transactio
+ * Contract needed by Hibernate Search to batch changes per transaction.
  *
  * @author Navin Surtani  - navin at surtani.org
  */
 public interface TransactionContext {
 	/**
-	 * @return A boolean whether a transaction is in progress or not.
+	 * @return A boolean indicating whether a transaction is in progress or not.
 	 */
 	public boolean isTransactionInProgress();
 
@@ -20,7 +20,7 @@
 	public Object getTransactionIdentifier();
 
 	/**
-	 * register the givne synchronization
+	 * Register the given synchronization.
 	 * 
  	 * @param synchronization synchronization to register
 	 */




More information about the hibernate-commits mailing list