incubator-graffito-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clomb...@apache.org
Subject svn commit: r312761 - in /incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper: Mapper.java impl/DigesterMapperImpl.java
Date Mon, 10 Oct 2005 22:21:57 GMT
Author: clombart
Date: Mon Oct 10 15:21:51 2005
New Revision: 312761

URL: http://svn.apache.org/viewcvs?rev=312761&view=rev
Log:
Apply patch for GRFT-57 (provided by Martin Koci)

Modified:
    incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper/Mapper.java
    incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper/impl/DigesterMapperImpl.java

Modified: incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper/Mapper.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper/Mapper.java?rev=312761&r1=312760&r2=312761&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper/Mapper.java
(original)
+++ incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper/Mapper.java
Mon Oct 10 15:21:51 2005
@@ -15,7 +15,6 @@
  */
 package org.apache.portals.graffito.jcr.mapper;
 
-import org.apache.portals.graffito.jcr.exception.JcrMappingException;
 import org.apache.portals.graffito.jcr.mapper.model.ClassDescriptor;
 
 /**
@@ -29,7 +28,6 @@
      * Get the mapping defition to be used for a specific java bean
      * @param clazz The java bean class
      * @return The mapping class found for the desired java bean class 
-     * @throws JcrMappingException
      */
-    public abstract ClassDescriptor getClassDescriptor(Class clazz) throws JcrMappingException;
+    public abstract ClassDescriptor getClassDescriptor(Class clazz);
 }

Modified: incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper/impl/DigesterMapperImpl.java
URL: http://svn.apache.org/viewcvs/incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper/impl/DigesterMapperImpl.java?rev=312761&r1=312760&r2=312761&view=diff
==============================================================================
--- incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper/impl/DigesterMapperImpl.java
(original)
+++ incubator/graffito/trunk/jcr-mapping/src/java/org/apache/portals/graffito/jcr/mapper/impl/DigesterMapperImpl.java
Mon Oct 10 15:21:51 2005
@@ -54,21 +54,13 @@
         mappingDescriptor = DigesterDescriptorReader.loadClassDescriptors(stream);
     }
 
+
     /**
-     * Get the mapping defition to be used for a specific java bean
-     * @param clazz The java bean class
-     * @return The mapping class found for the desired java bean class 
-     * @throws JcrMappingException
+     * 
+     * @see org.apache.portals.graffito.jcr.mapper.Mapper#getClassDescriptor(java.lang.Class)
      */
-    public ClassDescriptor getClassDescriptor(Class clazz) throws JcrMappingException
+    public ClassDescriptor getClassDescriptor(Class clazz) 
     {        
-        try
-        {
-            return mappingDescriptor.getClassDescriptor(clazz.getName());
-        }
-        catch (Exception e)
-        {
-            throw new JcrMappingException("Impossible to retrieve the Mapping class for "
+ clazz, e);
-        }
+        return mappingDescriptor.getClassDescriptor(clazz.getName());
     }
 }



Mime
View raw message