Seam SVN: r14173 - branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-09-08 02:05:06 -0400 (Thu, 08 Sep 2011)
New Revision: 14173
Modified:
branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Security.xml
Log:
JBPAPP-7139 - Documentation changes due upgrade of openid4java
Modified: branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Security.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Security.xml 2011-09-07 16:48:05 UTC (rev 14172)
+++ branches/enterprise/JBPAPP_5_0/doc/Seam_Reference_Guide/en-US/Security.xml 2011-09-08 06:05:06 UTC (rev 14173)
@@ -4287,7 +4287,7 @@
<section>
<title>Configuring OpenID</title>
<para>
- Seam uses the <literal>opemid4java</literal> package, and requires four additional <filename>JAR</filename>s to make use of Seam integration. These are <filename>htmlparser.jar</filename>, <filename>openid4java.jar</filename>, <filename>openxri-client.jar</filename> and <filename>openxri-syntax.jar</filename>.
+ Seam uses the <literal>openid4java</literal> package, and requires a few additional <filename>JAR</filename>s to make use of Seam integration. These are <filename>nekohtml.jar</filename>, <filename>openid4java-nodeps.jar</filename>, <filename>guice.jar</filename>, <filename>jcip-annotations.jar</filename>, <filename>httpclient.jar</filename> and <filename>commons-codec.jar</filename>.
</para>
<para>
OpenID processing requires the <literal>OpenIdPhaseListener</literal>, which should be added to your <filename>faces-config.xml</filename> file. The phase listener processes the callback from the OpenID provider, allowing re-entry into the local application.
14 years, 7 months
Seam SVN: r14172 - branches/enterprise/JBPAPP_5_1_1_JBPAPP-6925/src/main/org/jboss/seam/util.
by seam-commits@lists.jboss.org
Author: smendenh(a)redhat.com
Date: 2011-09-07 12:48:05 -0400 (Wed, 07 Sep 2011)
New Revision: 14172
Modified:
branches/enterprise/JBPAPP_5_1_1_JBPAPP-6925/src/main/org/jboss/seam/util/AnnotatedBeanProperty.java
Log:
further changes for JBPAPP-6925
Modified: branches/enterprise/JBPAPP_5_1_1_JBPAPP-6925/src/main/org/jboss/seam/util/AnnotatedBeanProperty.java
===================================================================
--- branches/enterprise/JBPAPP_5_1_1_JBPAPP-6925/src/main/org/jboss/seam/util/AnnotatedBeanProperty.java 2011-09-07 13:15:02 UTC (rev 14171)
+++ branches/enterprise/JBPAPP_5_1_1_JBPAPP-6925/src/main/org/jboss/seam/util/AnnotatedBeanProperty.java 2011-09-07 16:48:05 UTC (rev 14172)
@@ -14,18 +14,28 @@
*/
public class AnnotatedBeanProperty<T extends Annotation> implements java.io.Serializable
{
- private Field propertyField;
- private Method propertyGetter;
- private Method propertySetter;
+ private transient Field propertyField;
+ private transient Method propertyGetter;
+ private transient Method propertySetter;
private String name;
private Type propertyType;
private T annotation;
private boolean isFieldProperty;
private boolean set = false;
+
+ private Class<?> cls;
+ private Class<T> annotationClass;
public AnnotatedBeanProperty(Class<?> cls, Class<T> annotationClass)
{
+ this.cls = cls;
+ this.annotationClass = annotationClass;
+ init();
+ }
+
+ private void init()
+ {
// First check declared fields
for (Field f : cls.getDeclaredFields())
{
@@ -37,7 +47,7 @@
return;
}
}
-
+
// Then check public fields, in case it's inherited
for (Field f : cls.getFields())
{
@@ -49,7 +59,7 @@
return;
}
}
-
+
// Then check public methods (we ignore private methods)
for (Method m : cls.getMethods())
{
@@ -57,7 +67,7 @@
{
this.annotation = m.getAnnotation(annotationClass);
String methodName = m.getName();
-
+
if ( m.getName().startsWith("get") )
{
this.name = Introspector.decapitalize( m.getName().substring(3) );
@@ -66,7 +76,7 @@
{
this.name = Introspector.decapitalize( m.getName().substring(2) );
}
-
+
if (this.name != null)
{
this.propertyGetter = Reflections.getGetterMethod(cls, this.name);
@@ -81,9 +91,30 @@
"Method: " + m + " in class: " + cls);
}
}
- }
+ }
}
+ public Field getPropertyField()
+ {
+ if (propertyField == null)
+ init();
+ return propertyField;
+ }
+
+ public Method getPropertyGetter()
+ {
+ if (propertyGetter == null)
+ init();
+ return propertyGetter;
+ }
+
+ public Method getPropertySetter()
+ {
+ if (propertySetter == null)
+ init();
+ return propertySetter;
+ }
+
private void setupFieldProperty(Field propertyField)
{
this.propertyField = propertyField;
@@ -96,11 +127,11 @@
{
if (isFieldProperty)
{
- Reflections.setAndWrap(propertyField, bean, value);
+ Reflections.setAndWrap(getPropertyField(), bean, value);
}
else
{
- Reflections.invokeAndWrap(propertySetter, bean, value);
+ Reflections.invokeAndWrap(getPropertySetter(), bean, value);
}
}
@@ -108,11 +139,11 @@
{
if (isFieldProperty)
{
- return Reflections.getAndWrap(propertyField, bean);
+ return Reflections.getAndWrap(getPropertyField(), bean);
}
else
{
- return Reflections.invokeAndWrap(propertyGetter, bean);
+ return Reflections.invokeAndWrap(getPropertyGetter(), bean);
}
}
14 years, 7 months
Seam SVN: r14171 - branches/community/Seam_2_3/jboss-seam-parent.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-09-07 09:15:02 -0400 (Wed, 07 Sep 2011)
New Revision: 14171
Modified:
branches/community/Seam_2_3/jboss-seam-parent/pom.xml
Log:
cleaned commented things
Modified: branches/community/Seam_2_3/jboss-seam-parent/pom.xml
===================================================================
--- branches/community/Seam_2_3/jboss-seam-parent/pom.xml 2011-09-06 18:30:06 UTC (rev 14170)
+++ branches/community/Seam_2_3/jboss-seam-parent/pom.xml 2011-09-07 13:15:02 UTC (rev 14171)
@@ -1145,58 +1145,6 @@
</exclusions>
</dependency>
-<!-- <dependency> -->
-<!-- <groupId>org.openid4java</groupId> -->
-<!-- <artifactId>openid4java</artifactId> -->
-<!-- <version>0.9.6</version> -->
-<!-- <exclusions> -->
-<!-- <exclusion> -->
-<!-- <groupId>com.ibm.icu</groupId> -->
-<!-- <artifactId>icu4j</artifactId> -->
-<!-- </exclusion> -->
-
-<!-- <exclusion> -->
-<!-- <groupId>xerces</groupId> -->
-<!-- <artifactId>xercesImpl</artifactId> -->
-<!-- </exclusion> -->
-
-<!-- <exclusion> -->
-<!-- <groupId>xml-security</groupId> -->
-<!-- <artifactId>xmlsec</artifactId> -->
-<!-- </exclusion> -->
-
- <!-- <exclusion> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId>
- </exclusion> -->
- <!-- <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
- </exclusion> -->
-<!-- <exclusion> -->
-<!-- <groupId>log4j</groupId> -->
-<!-- <artifactId>log4j</artifactId> -->
-<!-- </exclusion> -->
-
-<!-- <exclusion> -->
-<!-- <groupId>jug</groupId> -->
-<!-- <artifactId>jug</artifactId> -->
-<!-- </exclusion> -->
-
-<!-- <exclusion> -->
-<!-- <groupId>xml-apis</groupId> -->
-<!-- <artifactId>xml-apis</artifactId> -->
-<!-- </exclusion> -->
-
-<!-- <exclusion> -->
-<!-- <groupId>xalan</groupId> -->
-<!-- <artifactId>xalan</artifactId> -->
-<!-- </exclusion> -->
-
-<!-- <exclusion> -->
-<!-- <groupId>com.sun</groupId> -->
-<!-- <artifactId>tools</artifactId> -->
-<!-- </exclusion> -->
-<!-- </exclusions> -->
-<!-- </dependency> -->
-
-
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
@@ -1848,7 +1796,6 @@
<plugin>
<artifactId>maven-ejb-plugin</artifactId>
- <version>2.1</version> <!-- this uses maven-archiver which generate META-INF/maven/* http://jira.codehaus.org/browse/MSHARED-185 -->
<configuration>
<ejbVersion>3.0</ejbVersion>
</configuration>
14 years, 7 months
Seam SVN: r14170 - in branches/enterprise/JBPAPP_5_0: examples and 1 other directory.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-09-06 14:30:06 -0400 (Tue, 06 Sep 2011)
New Revision: 14170
Modified:
branches/enterprise/JBPAPP_5_0/build/core.pom.xml
branches/enterprise/JBPAPP_5_0/build/root.pom.xml
branches/enterprise/JBPAPP_5_0/examples/build.xml
Log:
JBPAPP-7139 upgrade of openid4java
Modified: branches/enterprise/JBPAPP_5_0/build/core.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/core.pom.xml 2011-09-06 17:23:00 UTC (rev 14169)
+++ branches/enterprise/JBPAPP_5_0/build/core.pom.xml 2011-09-06 18:30:06 UTC (rev 14170)
@@ -333,7 +333,8 @@
<dependency>
<groupId>org.openid4java</groupId>
- <artifactId>openid4java</artifactId>
+ <artifactId>openid4java-consumer</artifactId>
+ <type>pom</type>
<optional>true</optional>
</dependency>
Modified: branches/enterprise/JBPAPP_5_0/build/root.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/root.pom.xml 2011-09-06 17:23:00 UTC (rev 14169)
+++ branches/enterprise/JBPAPP_5_0/build/root.pom.xml 2011-09-06 18:30:06 UTC (rev 14170)
@@ -1061,59 +1061,19 @@
<dependency>
<groupId>org.openid4java</groupId>
- <artifactId>openid4java</artifactId>
- <version>0.9.4.339</version>
+ <artifactId>openid4java-consumer</artifactId>
+ <version>0.9.6</version>
+ <type>pom</type>
<exclusions>
<exclusion>
- <groupId>com.ibm.icu</groupId>
- <artifactId>icu4j</artifactId>
- </exclusion>
-
- <exclusion>
<groupId>xerces</groupId>
<artifactId>xercesImpl</artifactId>
</exclusion>
<exclusion>
- <groupId>xml-security</groupId>
- <artifactId>xmlsec</artifactId>
- </exclusion>
-
-
- <exclusion>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- </exclusion>
-
- <exclusion>
- <groupId>commons-httpclient</groupId>
- <artifactId>commons-httpclient</artifactId>
- </exclusion>
-
- <exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
-
- <exclusion>
- <groupId>jug</groupId>
- <artifactId>jug</artifactId>
- </exclusion>
-
- <exclusion>
- <groupId>xml-apis</groupId>
- <artifactId>xml-apis</artifactId>
- </exclusion>
-
- <exclusion>
- <groupId>xalan</groupId>
- <artifactId>xalan</artifactId>
- </exclusion>
-
- <exclusion>
- <groupId>com.sun</groupId>
- <artifactId>tools</artifactId>
- </exclusion>
</exclusions>
</dependency>
Modified: branches/enterprise/JBPAPP_5_0/examples/build.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/build.xml 2011-09-06 17:23:00 UTC (rev 14169)
+++ branches/enterprise/JBPAPP_5_0/examples/build.xml 2011-09-06 18:30:06 UTC (rev 14170)
@@ -160,12 +160,13 @@
<!-- openid required dependencies -->
<fileset id="openid.jar" dir="${lib.dir}">
- <include name="openid4java.jar" if="openid.lib" />
- <include name="openxri-client.jar" if="openid.lib" />
- <include name="openxri-syntax.jar" if="openid.lib" />
- <include name="htmlparser.jar" if="openid.lib" />
+ <include name="openid4java-nodeps.jar" if="openid.lib" />
+ <include name="jcip-annotations.jar" if="openid.lib" />
+ <include name="guice.jar" if="openid.lib" />
+ <include name="nekohtml.jar" if="openid.lib" />
<include name="commons-codec.jar" if="openid.lib" />
- <include name="commons-httpclient.jar" if="openid.lib" />
+ <include name="httpclient.jar" if="openid.lib" />
+ <include name="httpcore.jar" if="openid.lib" />
</fileset>
<!-- Seam debug, with required dependencies -->
14 years, 7 months
Seam SVN: r14169 - in branches/community/Seam_2_3: jboss-seam and 1 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2011-09-06 13:23:00 -0400 (Tue, 06 Sep 2011)
New Revision: 14169
Modified:
branches/community/Seam_2_3/examples/openid/openid-ear/pom.xml
branches/community/Seam_2_3/jboss-seam-parent/pom.xml
branches/community/Seam_2_3/jboss-seam/pom.xml
Log:
JBSEAM-4838 upgrade of openid4java in openid example and in jboss seam core module
Modified: branches/community/Seam_2_3/examples/openid/openid-ear/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples/openid/openid-ear/pom.xml 2011-09-05 12:28:48 UTC (rev 14168)
+++ branches/community/Seam_2_3/examples/openid/openid-ear/pom.xml 2011-09-06 17:23:00 UTC (rev 14169)
@@ -47,7 +47,9 @@
</dependency>
<dependency>
<groupId>org.openid4java</groupId>
- <artifactId>openid4java</artifactId>
+ <artifactId>openid4java-consumer</artifactId>
+ <type>pom</type>
+ <scope>import</scope>
</dependency>
</dependencies>
Modified: branches/community/Seam_2_3/jboss-seam/pom.xml
===================================================================
--- branches/community/Seam_2_3/jboss-seam/pom.xml 2011-09-05 12:28:48 UTC (rev 14168)
+++ branches/community/Seam_2_3/jboss-seam/pom.xml 2011-09-06 17:23:00 UTC (rev 14169)
@@ -407,11 +407,12 @@
<optional>true</optional>
</dependency>
- <dependency>
- <groupId>org.openid4java</groupId>
- <artifactId>openid4java</artifactId>
- <optional>true</optional>
- </dependency>
+ <dependency>
+ <groupId>org.openid4java</groupId>
+ <artifactId>openid4java-consumer</artifactId>
+ <type>pom</type>
+ <optional>true</optional>
+ </dependency>
<dependency>
<groupId>org.slf4j</groupId>
Modified: branches/community/Seam_2_3/jboss-seam-parent/pom.xml
===================================================================
--- branches/community/Seam_2_3/jboss-seam-parent/pom.xml 2011-09-05 12:28:48 UTC (rev 14168)
+++ branches/community/Seam_2_3/jboss-seam-parent/pom.xml 2011-09-06 17:23:00 UTC (rev 14169)
@@ -1126,56 +1126,75 @@
</exclusions>
</dependency>
- <dependency>
- <groupId>org.openid4java</groupId>
- <artifactId>openid4java</artifactId>
- <version>0.9.4.339</version>
- <exclusions>
- <exclusion>
- <groupId>com.ibm.icu</groupId>
- <artifactId>icu4j</artifactId>
- </exclusion>
+ <dependency>
+ <groupId>org.openid4java</groupId>
+ <artifactId>openid4java-consumer</artifactId>
+ <version>0.9.6</version>
+ <type>pom</type>
+ <exclusions>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
- <exclusion>
- <groupId>xerces</groupId>
- <artifactId>xercesImpl</artifactId>
- </exclusion>
+ <exclusion>
+ <groupId>xerces</groupId>
+ <artifactId>xercesImpl</artifactId>
+ </exclusion>
+
+ </exclusions>
+ </dependency>
+
+<!-- <dependency> -->
+<!-- <groupId>org.openid4java</groupId> -->
+<!-- <artifactId>openid4java</artifactId> -->
+<!-- <version>0.9.6</version> -->
+<!-- <exclusions> -->
+<!-- <exclusion> -->
+<!-- <groupId>com.ibm.icu</groupId> -->
+<!-- <artifactId>icu4j</artifactId> -->
+<!-- </exclusion> -->
- <exclusion>
- <groupId>xml-security</groupId>
- <artifactId>xmlsec</artifactId>
- </exclusion>
+<!-- <exclusion> -->
+<!-- <groupId>xerces</groupId> -->
+<!-- <artifactId>xercesImpl</artifactId> -->
+<!-- </exclusion> -->
+<!-- <exclusion> -->
+<!-- <groupId>xml-security</groupId> -->
+<!-- <artifactId>xmlsec</artifactId> -->
+<!-- </exclusion> -->
+
<!-- <exclusion> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId>
</exclusion> -->
<!-- <exclusion> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId>
</exclusion> -->
- <exclusion>
- <groupId>log4j</groupId>
- <artifactId>log4j</artifactId>
- </exclusion>
+<!-- <exclusion> -->
+<!-- <groupId>log4j</groupId> -->
+<!-- <artifactId>log4j</artifactId> -->
+<!-- </exclusion> -->
- <exclusion>
- <groupId>jug</groupId>
- <artifactId>jug</artifactId>
- </exclusion>
+<!-- <exclusion> -->
+<!-- <groupId>jug</groupId> -->
+<!-- <artifactId>jug</artifactId> -->
+<!-- </exclusion> -->
- <exclusion>
- <groupId>xml-apis</groupId>
- <artifactId>xml-apis</artifactId>
- </exclusion>
+<!-- <exclusion> -->
+<!-- <groupId>xml-apis</groupId> -->
+<!-- <artifactId>xml-apis</artifactId> -->
+<!-- </exclusion> -->
- <exclusion>
- <groupId>xalan</groupId>
- <artifactId>xalan</artifactId>
- </exclusion>
+<!-- <exclusion> -->
+<!-- <groupId>xalan</groupId> -->
+<!-- <artifactId>xalan</artifactId> -->
+<!-- </exclusion> -->
- <exclusion>
- <groupId>com.sun</groupId>
- <artifactId>tools</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
+<!-- <exclusion> -->
+<!-- <groupId>com.sun</groupId> -->
+<!-- <artifactId>tools</artifactId> -->
+<!-- </exclusion> -->
+<!-- </exclusions> -->
+<!-- </dependency> -->
<dependency>
14 years, 7 months