[Jboss-cvs] JBoss Messaging SVN: r1300 - trunk/tests/src/org/jboss/test/messaging/core

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Sep 17 16:37:45 EDT 2006


Author: timfox
Date: 2006-09-17 16:37:43 -0400 (Sun, 17 Sep 2006)
New Revision: 1300

Added:
   trunk/tests/src/org/jboss/test/messaging/core/SimpleFilterFactory.java
Log:
Missing file



Added: trunk/tests/src/org/jboss/test/messaging/core/SimpleFilterFactory.java
===================================================================
--- trunk/tests/src/org/jboss/test/messaging/core/SimpleFilterFactory.java	2006-09-17 20:24:02 UTC (rev 1299)
+++ trunk/tests/src/org/jboss/test/messaging/core/SimpleFilterFactory.java	2006-09-17 20:37:43 UTC (rev 1300)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.messaging.core;
+
+import org.jboss.messaging.core.Filter;
+import org.jboss.messaging.core.FilterFactory;
+
+/**
+ * A SimpleFilterFactory
+ *
+ * @author <a href="mailto:tim.fox at jboss.com">Tim Fox</a>
+ * @version <tt>$Revision: 1.1 $</tt>
+ *
+ * $Id$
+ *
+ */
+public class SimpleFilterFactory implements FilterFactory
+{
+
+   public Filter createFilter(String filterString) throws Exception
+   {
+      return filterString == null ? null : new SimpleFilter(Long.valueOf(filterString).longValue());
+   }
+   
+}




More information about the jboss-cvs-commits mailing list