[gatein-commits] gatein SVN: r2023 - in components/wsrp/trunk: consumer and 12 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Sun Mar 7 12:47:41 EST 2010


Author: chris.laprun at jboss.com
Date: 2010-03-07 12:47:40 -0500 (Sun, 07 Mar 2010)
New Revision: 2023

Added:
   components/wsrp/trunk/hibernate-impl/
   components/wsrp/trunk/hibernate-impl/pom.xml
   components/wsrp/trunk/hibernate-impl/src/
   components/wsrp/trunk/hibernate-impl/src/main/
   components/wsrp/trunk/hibernate-impl/src/main/java/
   components/wsrp/trunk/hibernate-impl/src/main/java/org/
   components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/
   components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/
   components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/
   components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/RegistrationInfoPostLoadEventListener.java
   components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/registry/
   components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/registry/hibernate/
Removed:
   components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/RegistrationInfoPostLoadEventListener.java
   components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/hibernate/
Modified:
   components/wsrp/trunk/consumer/pom.xml
   components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/ProducerInfo.java
   components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/registry/hibernate/HibernateConsumerRegistry.java
   components/wsrp/trunk/pom.xml
Log:
- GTNWSRP-10: Extracted Hibernate specific code into a separate module.

Modified: components/wsrp/trunk/consumer/pom.xml
===================================================================
--- components/wsrp/trunk/consumer/pom.xml	2010-03-07 15:28:04 UTC (rev 2022)
+++ components/wsrp/trunk/consumer/pom.xml	2010-03-07 17:47:40 UTC (rev 2023)
@@ -1,6 +1,6 @@
 <!--
   ~ JBoss, a division of Red Hat
-  ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+  ~ Copyright 2010, Red Hat Middleware, LLC, and individual
   ~ contributors as indicated by the @authors tag. See the
   ~ copyright.txt in the distribution for a full listing of
   ~ individual contributors.
@@ -21,7 +21,8 @@
   ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
   -->
 
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <parent>
       <groupId>org.gatein.wsrp</groupId>
       <artifactId>wsrp-parent</artifactId>
@@ -82,10 +83,6 @@
          <groupId>javax.mail</groupId>
          <artifactId>mail</artifactId>
       </dependency>
-      <dependency>
-         <groupId>org.hibernate</groupId>
-         <artifactId>hibernate-core</artifactId>
-      </dependency>
 
       <dependency>
          <groupId>org.jboss.unit</groupId>

Modified: components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/ProducerInfo.java
===================================================================
--- components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/ProducerInfo.java	2010-03-07 15:28:04 UTC (rev 2022)
+++ components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/ProducerInfo.java	2010-03-07 17:47:40 UTC (rev 2023)
@@ -228,7 +228,7 @@
 
    public RegistrationInfo getRegistrationInfo()
    {
-      // update parent since it might not be set when unfrozen from Hibernate
+      // update parent since it might not be set when unfrozen from persistence
       persistentRegistrationInfo.setParent(this);
       return persistentRegistrationInfo;
    }

Deleted: components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/RegistrationInfoPostLoadEventListener.java
===================================================================
--- components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/RegistrationInfoPostLoadEventListener.java	2010-03-07 15:28:04 UTC (rev 2022)
+++ components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/RegistrationInfoPostLoadEventListener.java	2010-03-07 17:47:40 UTC (rev 2023)
@@ -1,56 +0,0 @@
-/*
- * JBoss, a division of Red Hat
- * Copyright 2009, Red Hat Middleware, LLC, 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.gatein.wsrp.consumer;
-
-import org.hibernate.event.PostLoadEvent;
-import org.hibernate.event.def.DefaultPostLoadEventListener;
-
-/**
- * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
- * @version $Revision$
- */
-public class RegistrationInfoPostLoadEventListener extends DefaultPostLoadEventListener
-{
-   /**
-    * Once the object is loaded from Hibernate, greedily load the associated RegistrationProperties and register with
-    * them as a listener for changes in their value.
-    *
-    * @param event
-    */
-   public void onPostLoad(PostLoadEvent event)
-   {
-      Object entity = event.getEntity();
-      if (entity instanceof RegistrationInfo)
-      {
-         RegistrationInfo info = (RegistrationInfo)entity;
-
-         for (RegistrationProperty property : info.getRegistrationProperties().values())
-         {
-            property.setListener(info);
-         }
-      }
-
-      super.onPostLoad(event);
-   }
-}

Added: components/wsrp/trunk/hibernate-impl/pom.xml
===================================================================
--- components/wsrp/trunk/hibernate-impl/pom.xml	                        (rev 0)
+++ components/wsrp/trunk/hibernate-impl/pom.xml	2010-03-07 17:47:40 UTC (rev 2023)
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ JBoss, a division of Red Hat
+  ~ Copyright 2010, Red Hat Middleware, LLC, 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.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+   <modelVersion>4.0.0</modelVersion>
+
+   <parent>
+      <groupId>org.gatein.wsrp</groupId>
+      <artifactId>wsrp-parent</artifactId>
+      <version>1.0.0-CR01-SNAPSHOT</version>
+   </parent>
+
+   <groupId>org.gatein.wsrp</groupId>
+   <artifactId>hibernate-impl</artifactId>
+   <packaging>jar</packaging>
+   <name>GateIn WSRP Hibernate-based persistence implementation</name>
+
+   <dependencies>
+      <dependency>
+         <groupId>org.gatein.wsrp</groupId>
+         <artifactId>wsrp-consumer</artifactId>
+         <version>${project.version}</version>
+      </dependency>
+
+      <dependency>
+         <groupId>org.hibernate</groupId>
+         <artifactId>hibernate-core</artifactId>
+         <version>3.3.2.GA</version>
+      </dependency>
+   </dependencies>
+
+
+</project>
\ No newline at end of file

Copied: components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/RegistrationInfoPostLoadEventListener.java (from rev 2001, components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/RegistrationInfoPostLoadEventListener.java)
===================================================================
--- components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/RegistrationInfoPostLoadEventListener.java	                        (rev 0)
+++ components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/RegistrationInfoPostLoadEventListener.java	2010-03-07 17:47:40 UTC (rev 2023)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, a division of Red Hat
+ * Copyright 2010, Red Hat Middleware, LLC, 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.gatein.wsrp.consumer;
+
+import org.hibernate.event.PostLoadEvent;
+import org.hibernate.event.def.DefaultPostLoadEventListener;
+
+/**
+ * @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
+ * @version $Revision$
+ */
+public class RegistrationInfoPostLoadEventListener extends DefaultPostLoadEventListener
+{
+   /**
+    * Once the object is loaded from Hibernate, greedily load the associated RegistrationProperties and register with
+    * them as a listener for changes in their value.
+    *
+    * @param event
+    */
+   public void onPostLoad(PostLoadEvent event)
+   {
+      Object entity = event.getEntity();
+      if (entity instanceof RegistrationInfo)
+      {
+         RegistrationInfo info = (RegistrationInfo)entity;
+
+         for (RegistrationProperty property : info.getRegistrationProperties().values())
+         {
+            property.setListener(info);
+         }
+      }
+
+      super.onPostLoad(event);
+   }
+}

Copied: components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/registry/hibernate (from rev 2001, components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/hibernate)

Modified: components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/registry/hibernate/HibernateConsumerRegistry.java
===================================================================
--- components/wsrp/trunk/consumer/src/main/java/org/gatein/wsrp/consumer/registry/hibernate/HibernateConsumerRegistry.java	2010-03-05 11:00:22 UTC (rev 2001)
+++ components/wsrp/trunk/hibernate-impl/src/main/java/org/gatein/wsrp/consumer/registry/hibernate/HibernateConsumerRegistry.java	2010-03-07 17:47:40 UTC (rev 2023)
@@ -1,24 +1,25 @@
 /*
-* JBoss, a division of Red Hat
-* Copyright 2008, Red Hat Middleware, LLC, 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.
-*/
+ * JBoss, a division of Red Hat
+ * Copyright 2010, Red Hat Middleware, LLC, 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.gatein.wsrp.consumer.registry.hibernate;
 

Modified: components/wsrp/trunk/pom.xml
===================================================================
--- components/wsrp/trunk/pom.xml	2010-03-07 15:28:04 UTC (rev 2022)
+++ components/wsrp/trunk/pom.xml	2010-03-07 17:47:40 UTC (rev 2023)
@@ -21,7 +21,8 @@
   ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
   -->
 
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 
    <modelVersion>4.0.0</modelVersion>
 
@@ -55,7 +56,6 @@
       <version.javax.mail>1.4.1</version.javax.mail>
       <version.javax.xml.ws>2.1</version.javax.xml.ws>
       <version.javax.xml.soap.saaj>1.3</version.javax.xml.soap.saaj>
-      <version.hibernate>3.3.1.GA</version.hibernate>
    </properties>
 
    <dependencyManagement>
@@ -153,13 +153,6 @@
             <artifactId>saaj-api</artifactId>
             <version>${version.javax.xml.soap.saaj}</version>
          </dependency>
-
-         <dependency>
-            <groupId>org.hibernate</groupId>
-            <artifactId>hibernate-core</artifactId>
-            <version>${version.hibernate}</version>
-         </dependency>
-
       </dependencies>
    </dependencyManagement>
 
@@ -172,6 +165,7 @@
       <module>consumer</module>
       <module>admin-gui</module>
       <module>wsrp-producer-war</module>
+      <module>hibernate-impl</module>
    </modules>
 
    <repositories>



More information about the gatein-commits mailing list