Seam SVN: r13970 - branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-01-05 09:32:01 -0500 (Wed, 05 Jan 2011)
New Revision: 13970
Modified:
branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java
Log:
removed reflection code for newer Hsearch usage
Modified: branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java
===================================================================
--- branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java 2011-01-05 13:57:58 UTC (rev 13969)
+++ branches/community/Seam_2_2/examples/dvdstore/jboss6/src/com/jboss/dvd/seam/FullTextSearchAction.java 2011-01-05 14:32:01 UTC (rev 13970)
@@ -2,9 +2,6 @@
package com.jboss.dvd.seam;
import java.io.Serializable;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -30,7 +27,6 @@
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Out;
import org.jboss.seam.annotations.datamodel.DataModel;
-import org.jboss.seam.util.Reflections;
/**
* Hibernate Search version of the store querying mechanism
@@ -161,93 +157,13 @@
String[] productFields = {"title", "description", "actors.name", "categories.name"};
Analyzer defaultAnalyzer = ((FullTextEntityManager) em).getSearchFactory().getAnalyzer(Product.class);
- QueryParser parser = createNewInstanceOfQueryParser(Version.LUCENE_30, productFields, defaultAnalyzer, boostPerField);
+ QueryParser parser = new MultiFieldQueryParser(Version.LUCENE_30, productFields, defaultAnalyzer, boostPerField);
parser.setAllowLeadingWildcard(true);
org.apache.lucene.search.Query luceneQuery = parser.parse(searchQuery);
return ( (FullTextEntityManager) em ).createFullTextQuery(luceneQuery, Product.class);
}
-
- @SuppressWarnings("finally")
- private QueryParser createNewInstanceOfQueryParser(Object luceneVersion, String[] productFields, Analyzer defaultAnalyzer, Map<String, Float> boostPerField)
- {
- //Class.forName("org.apache.lucene.queryParser.MultiFieldQueryParser");
- Class targetClass = MultiFieldQueryParser.class;
- Constructor properConstructor = null;
- if ( luceneVersion == null )
- {
- //older constructor - String[] productFields, Analyzer defaultAnalyzer, Map<String, Float> boostPerField
- properConstructor = getProperConstructor(targetClass.getConstructors(), 3);
- try
- {
- return (QueryParser) properConstructor.newInstance(productFields, defaultAnalyzer, boostPerField);
- }
- catch (IllegalArgumentException e)
- {
- return null;
- }
- catch (InstantiationException e)
- {
- return null;
- }
- catch (IllegalAccessException e)
- {
- return null;
- }
- catch (InvocationTargetException e)
- {
- return null;
- }
-
- }
- else
- {
- //newer constructor - Version luceneVersion. String[] productFields, Analyzer defaultAnalyzer, Map<String, Float> boostPerField
- properConstructor = getProperConstructor(targetClass.getConstructors(), 4);
- try
- {
- return (QueryParser) properConstructor.newInstance(luceneVersion, productFields, defaultAnalyzer, boostPerField);
- }
- catch (IllegalArgumentException e)
- {
- return null;
- }
- catch (InstantiationException e)
- {
- return null;
- }
- catch (IllegalAccessException e)
- {
- return null;
- }
- catch (InvocationTargetException e)
- {
- return null;
- }
- }
-
- }
-
- private Constructor getProperConstructor(Constructor[] constructors, int properLength)
- {
- Constructor properConstructor = null;
-
- for (int i = 0; i < constructors.length; i++ )
- {
- Constructor constructor = constructors[i];
- Class[] parametersType = constructor.getParameterTypes();
- if (parametersType.length == properLength)
- {
- // TODO: very weak condition, but for testing purpose
- properConstructor = constructor;
- return properConstructor;
- }
- }
-
- return null;
- }
-
/**
* Add the selected DVD to the cart
*/
13 years, 11 months
Seam SVN: r13969 - branches/community/Seam_2_2/examples/dvdstore/src/com/jboss/dvd/seam.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-01-05 08:57:58 -0500 (Wed, 05 Jan 2011)
New Revision: 13969
Modified:
branches/community/Seam_2_2/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearchAction.java
Log:
removed unused imports
Modified: branches/community/Seam_2_2/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearchAction.java
===================================================================
--- branches/community/Seam_2_2/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearchAction.java 2011-01-04 21:56:22 UTC (rev 13968)
+++ branches/community/Seam_2_2/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearchAction.java 2011-01-05 13:57:58 UTC (rev 13969)
@@ -23,8 +23,6 @@
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Out;
import org.jboss.seam.annotations.datamodel.DataModel;
-import org.jboss.seam.annotations.datamodel.DataModelSelection;
-import org.jboss.seam.annotations.web.RequestParameter;
import org.hibernate.search.jpa.FullTextQuery;
import org.hibernate.search.jpa.FullTextEntityManager;
13 years, 11 months
[seam/catch] 97a1a8: Fixes SEAMCATCH-39
by noreply@github.com
Branch: refs/heads/master
Home: https://github.com/seam/catch
Commit: 97a1a85cdd9d9b5e8f5623a31e195edba791dde0
https://github.com/seam/catch/commit/97a1a85cdd9d9b5e8f5623a31e195edba791...
Author: LightGuard <lightguard.jp(a)gmail.com>
Date: 2011-01-04 (Tue, 04 Jan 2011)
Changed paths:
R api/src/main/java/org/jboss/seam/exception/control/HandlesExceptionsLiteral.java
A api/src/main/java/org/jboss/seam/exception/control/literal/HandlesExceptionsLiteral.java
M impl/src/main/java/org/jboss/seam/exception/control/HandlerMethod.java
M impl/src/main/java/org/jboss/seam/exception/control/HandlerMethodImpl.java
M impl/src/main/java/org/jboss/seam/exception/control/OutboundParameterValueRedefiner.java
M impl/src/main/java/org/jboss/seam/exception/control/extension/CatchExtension.java
R impl/src/test/java/org/jboss/seam/exception/control/test/extension/ArquillianLiteral.java
R impl/src/test/java/org/jboss/seam/exception/control/test/extension/CatchQualifierLiteral.java
M impl/src/test/java/org/jboss/seam/exception/control/test/extension/ExtensionTest.java
A impl/src/test/java/org/jboss/seam/exception/control/test/extension/literal/ArquillianLiteral.java
A impl/src/test/java/org/jboss/seam/exception/control/test/extension/literal/CatchQualifierLiteral.java
M impl/src/test/java/org/jboss/seam/exception/control/test/handler/CalledExceptionHandler.java
M impl/src/test/java/org/jboss/seam/exception/control/test/handler/CallingHandlersTest.java
M impl/src/test/java/org/jboss/seam/exception/control/test/handler/ExtensionExceptionHandler.java
Log Message:
-----------
Fixes SEAMCATCH-39
Commit: b537274b5e45c89dad4be37ec52d2c09c8fd2a53
https://github.com/seam/catch/commit/b537274b5e45c89dad4be37ec52d2c09c8fd...
Author: LightGuard <lightguard.jp(a)gmail.com>
Date: 2011-01-04 (Tue, 04 Jan 2011)
Changed paths:
M docs/src/main/docbook/en-US/client_usage.xml
M docs/src/main/docbook/en-US/glossary.xml
Log Message:
-----------
Doc changes for SEAMCATCH-39
13 years, 12 months
Seam SVN: r13968 - branches/community/Seam_2_2/examples/icefaces.
by seam-commits@lists.jboss.org
Author: jguglielmin
Date: 2011-01-04 16:56:22 -0500 (Tue, 04 Jan 2011)
New Revision: 13968
Modified:
branches/community/Seam_2_2/examples/icefaces/build.xml
Log:
JBSEAM-4757 updating to ICEfaces-1.8.2 from maven central repo
Modified: branches/community/Seam_2_2/examples/icefaces/build.xml
===================================================================
--- branches/community/Seam_2_2/examples/icefaces/build.xml 2011-01-04 21:54:38 UTC (rev 13967)
+++ branches/community/Seam_2_2/examples/icefaces/build.xml 2011-01-04 21:56:22 UTC (rev 13968)
@@ -27,16 +27,16 @@
<target name="copyextradependencies">
<artifact:dependencies filesetId="icefaces.fileset" versionsId="icefaces.versions">
- <dependency groupId="org.icefaces" artifactId="icefaces" version="1.8.1">
+ <dependency groupId="org.icefaces" artifactId="icefaces" version="1.8.2">
<exclusion groupId="javax.el" artifactId="el-api" />
</dependency>
- <dependency groupId="org.icefaces" artifactId="icefaces-comps" version="1.8.1">
+ <dependency groupId="org.icefaces" artifactId="icefaces-comps" version="1.8.2">
<exclusion groupId="javax.el" artifactId="el-api" />
</dependency>
- <dependency groupId="org.icefaces" artifactId="icefaces-facelets" version="1.8.1">
+ <dependency groupId="org.icefaces" artifactId="icefaces-facelets" version="1.8.2">
<exclusion groupId="javax.el" artifactId="el-api" />
</dependency>
- <remoteRepository refId="repository.jboss.org" />
+
</artifact:dependencies>
<copy todir="${example.tmp.lib.dir}">
<fileset refid="icefaces.fileset" />
13 years, 12 months
Seam SVN: r13967 - branches/community/Seam_2_2/seam-gen.
by seam-commits@lists.jboss.org
Author: jguglielmin
Date: 2011-01-04 16:54:38 -0500 (Tue, 04 Jan 2011)
New Revision: 13967
Modified:
branches/community/Seam_2_2/seam-gen/build.xml
Log:
JBSEAM-4757
Modified: branches/community/Seam_2_2/seam-gen/build.xml
===================================================================
--- branches/community/Seam_2_2/seam-gen/build.xml 2010-12-21 21:55:48 UTC (rev 13966)
+++ branches/community/Seam_2_2/seam-gen/build.xml 2011-01-04 21:54:38 UTC (rev 13967)
@@ -818,16 +818,16 @@
<target name="copy-icefaces-maven" if="icefaces.property" unless="icefaces.lib.property">
<artifact:dependencies filesetId="icefaces.fileset" versionsId="icefaces.versions">
- <dependency groupId="org.icefaces" artifactId="icefaces" version="1.8.1">
+ <dependency groupId="org.icefaces" artifactId="icefaces" version="1.8.2">
<exclusion groupId="javax.el" artifactId="el-api"/>
</dependency>
- <dependency groupId="org.icefaces" artifactId="icefaces-comps" version="1.8.1">
+ <dependency groupId="org.icefaces" artifactId="icefaces-comps" version="1.8.2">
<exclusion groupId="javax.el" artifactId="el-api"/>
</dependency>
- <dependency groupId="org.icefaces" artifactId="icefaces-facelets" version="1.8.1">
+ <dependency groupId="org.icefaces" artifactId="icefaces-facelets" version="1.8.2">
<exclusion groupId="javax.el" artifactId="el-api"/>
</dependency>
- <remoteRepository refId="repository.jboss.org"/>
+
</artifact:dependencies>
<copy todir="${project.home}/lib" overwrite="true">
<fileset refid="icefaces.fileset"/>
13 years, 12 months
[seam/catch] b201a0: SEAMCATCH-24, SEAMCATCH-25
by noreply@github.com
Branch: refs/heads/master
Home: https://github.com/seam/catch
Commit: b201a0a4a8fdbc03bab825f0e14e81a23c76743b
https://github.com/seam/catch/commit/b201a0a4a8fdbc03bab825f0e14e81a23c76...
Author: Dan Allen <dan.j.allen(a)gmail.com>
Date: 2011-01-04 (Tue, 04 Jan 2011)
Changed paths:
M impl/src/main/java/org/jboss/seam/exception/control/extension/CatchExtension.java
A impl/src/test/java/org/jboss/seam/exception/control/test/extension/BleedingObject.java
M impl/src/test/java/org/jboss/seam/exception/control/test/extension/ExtensionTest.java
A impl/src/test/java/org/jboss/seam/exception/control/test/extension/StereotypedHandler.java
M pom.xml
Log Message:
-----------
SEAMCATCH-24, SEAMCATCH-25
- switch to Solder snapshot
- use isAnnotationPresent from Solder
- add test for stereotyped handler
Commit: 298ce9a557d5e5b1fb0ecbeae44f4029a63889cb
https://github.com/seam/catch/commit/298ce9a557d5e5b1fb0ecbeae44f4029a638...
Author: LightGuard <lightguard.jp(a)gmail.com>
Date: 2011-01-04 (Tue, 04 Jan 2011)
Changed paths:
M api/src/main/java/org/jboss/seam/exception/control/ExceptionStack.java
M impl/src/test/java/org/jboss/seam/exception/control/test/stack/ExceptionStackTest.java
A impl/src/test/java/org/jboss/seam/exception/control/test/stack/ModifyExceptionStackTest.java
Log Message:
-----------
New test for modifying the ExceptionStack
Commit: 654664eb97c00b9ed25aa4620a2cc13ba42dc5d5
https://github.com/seam/catch/commit/654664eb97c00b9ed25aa4620a2cc13ba42d...
Author: LightGuard <lightguard.jp(a)gmail.com>
Date: 2011-01-04 (Tue, 04 Jan 2011)
Log Message:
-----------
Merge branch 'master' of github.com:seam/catch
13 years, 12 months