[jbosscache-commits] JBoss Cache SVN: r6592 - in searchable/trunk: src/main/java/org/jboss/cache/search and 1 other directory.
jbosscache-commits at lists.jboss.org
jbosscache-commits at lists.jboss.org
Thu Aug 21 11:02:17 EDT 2008
Author: navssurtani
Date: 2008-08-21 11:02:17 -0400 (Thu, 21 Aug 2008)
New Revision: 6592
Modified:
searchable/trunk/pom.xml
searchable/trunk/src/main/java/org/jboss/cache/search/SearchablePojoListener.java
Log:
Commented out SearchablePojoListener and changed pojo dep to cr5
Modified: searchable/trunk/pom.xml
===================================================================
--- searchable/trunk/pom.xml 2008-08-21 15:02:08 UTC (rev 6591)
+++ searchable/trunk/pom.xml 2008-08-21 15:02:17 UTC (rev 6592)
@@ -31,7 +31,7 @@
<dependency>
<groupId>org.jboss.cache</groupId>
<artifactId>jbosscache-pojo</artifactId>
- <version>2.2.0.CR7</version>
+ <version>2.2.0.CR5</version>
<scope>test</scope>
</dependency>
Modified: searchable/trunk/src/main/java/org/jboss/cache/search/SearchablePojoListener.java
===================================================================
--- searchable/trunk/src/main/java/org/jboss/cache/search/SearchablePojoListener.java 2008-08-21 15:02:08 UTC (rev 6591)
+++ searchable/trunk/src/main/java/org/jboss/cache/search/SearchablePojoListener.java 2008-08-21 15:02:17 UTC (rev 6592)
@@ -1,71 +1,71 @@
-package org.jboss.cache.search;
-
-import org.hibernate.search.impl.SearchFactoryImpl;
-import org.jboss.cache.notifications.event.NodeModifiedEvent;
-import org.jboss.cache.pojo.notification.annotation.*;
-import org.jboss.cache.pojo.notification.event.AttachedEvent;
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-
-import javax.transaction.Transaction;
-
-/**
- * @author Navin Surtani (<a href="mailto:nsurtani at redhat.com">nsurtani at redhat.com</a>)
- */
-
-//@PojoCacheListener
-public class SearchablePojoListener //extends
-{
-// private SearchFactoryImpl searchFactory;
-// private static final Log log = LogFactory.getLog(SearchablePojoListener.class);
+//package org.jboss.cache.search;
//
-// public SearchablePojoListener(SearchFactoryImpl searchFactory)
-// {
-// this.searchFactory = searchFactory;
-// }
-
- /**
- * Takes in a NodeModifiedEvent and updates the Lucene indexes using methods on the NodeModifiedEvent class.
- *
- * @param event that has occured - or a node that has been changed. {@link org.jboss.cache.notifications.event.NodeModifiedEvent}
- * @throws InvalidKeyException if an invalid key is given.
- */
-
-// @Attached
-// public void handleAttach(AttachedEvent event)
-// {
-// Object added = event.getSource();
-// }
-
-
-// @Detached
-// @FieldModified
-// @ListModified
-// @ArrayModified
-// @SetModified
-// @MapModified
-// public void updateLuceneIndexes(NodeModifiedEvent event) throws InvalidKeyException
-// {
+//import org.hibernate.search.impl.SearchFactoryImpl;
+//import org.jboss.cache.notifications.event.NodeModifiedEvent;
+//import org.jboss.cache.pojo.notification.annotation.*;
+//import org.jboss.cache.pojo.notification.event.AttachedEvent;
+//import org.apache.commons.logging.Log;
+//import org.apache.commons.logging.LogFactory;
//
-// if (log.isTraceEnabled()) log.trace("You have entered the PojoListener for Searchable Cache");
-// if (!event.isPre())
-// {
-// if (log.isTraceEnabled()) log.trace("event.isPre is false. Going to start updating indexes");
+//import javax.transaction.Transaction;
//
+///**
+// * @author Navin Surtani (<a href="mailto:nsurtani at redhat.com">nsurtani at redhat.com</a>)
+// */
//
-// switch (event.getModificationType())
-// {
-// case PUT_MAP:
-// case PUT_DATA:
-// if (log.isTraceEnabled()) log.trace("put() has been called on cache. Going to handle the data.");
-// handlePutData(event, searchFactory);
-// break;
-// case REMOVE_DATA:
-// handleDeleteData(event, searchFactory);
-// break;
-// }
-// }
-// }
-
-
-}
+////@PojoCacheListener
+//public class SearchablePojoListener //extends
+//{
+//// private SearchFactoryImpl searchFactory;
+//// private static final Log log = LogFactory.getLog(SearchablePojoListener.class);
+////
+//// public SearchablePojoListener(SearchFactoryImpl searchFactory)
+//// {
+//// this.searchFactory = searchFactory;
+//// }
+//
+// /**
+// * Takes in a NodeModifiedEvent and updates the Lucene indexes using methods on the NodeModifiedEvent class.
+// *
+// * @param event that has occured - or a node that has been changed. {@link org.jboss.cache.notifications.event.NodeModifiedEvent}
+// * @throws InvalidKeyException if an invalid key is given.
+// */
+//
+//// @Attached
+//// public void handleAttach(AttachedEvent event)
+//// {
+//// Object added = event.getSource();
+//// }
+//
+//
+//// @Detached
+//// @FieldModified
+//// @ListModified
+//// @ArrayModified
+//// @SetModified
+//// @MapModified
+//// public void updateLuceneIndexes(NodeModifiedEvent event) throws InvalidKeyException
+//// {
+////
+//// if (log.isTraceEnabled()) log.trace("You have entered the PojoListener for Searchable Cache");
+//// if (!event.isPre())
+//// {
+//// if (log.isTraceEnabled()) log.trace("event.isPre is false. Going to start updating indexes");
+////
+////
+//// switch (event.getModificationType())
+//// {
+//// case PUT_MAP:
+//// case PUT_DATA:
+//// if (log.isTraceEnabled()) log.trace("put() has been called on cache. Going to handle the data.");
+//// handlePutData(event, searchFactory);
+//// break;
+//// case REMOVE_DATA:
+//// handleDeleteData(event, searchFactory);
+//// break;
+//// }
+//// }
+//// }
+//
+//
+//}
More information about the jbosscache-commits
mailing list