commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simonetrip...@apache.org
Subject svn commit: r1127084 - /commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/FactoryCreate.java
Date Tue, 24 May 2011 14:30:35 GMT
Author: simonetripodi
Date: Tue May 24 14:30:35 2011
New Revision: 1127084

URL: http://svn.apache.org/viewvc?rev=1127084&view=rev
Log:
added Dummy ObjectCreationFactory type - only for annotation value type purposes

Modified:
    commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/FactoryCreate.java

Modified: commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/FactoryCreate.java
URL: http://svn.apache.org/viewvc/commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/FactoryCreate.java?rev=1127084&r1=1127083&r2=1127084&view=diff
==============================================================================
--- commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/FactoryCreate.java
(original)
+++ commons/sandbox/digester3/trunk/src/main/java/org/apache/commons/digester3/annotations/rules/FactoryCreate.java
Tue May 24 14:30:35 2011
@@ -28,6 +28,7 @@ import org.apache.commons.digester3.Fact
 import org.apache.commons.digester3.annotations.DigesterRule;
 import org.apache.commons.digester3.annotations.DigesterRuleList;
 import org.apache.commons.digester3.annotations.providers.FactoryCreateRuleProvider;
+import org.xml.sax.Attributes;
 
 /**
  * Classes annotated with {@code FactoryCreate} will be bound with {@code FactoryCreateRule}
digester rule.
@@ -93,4 +94,24 @@ public @interface FactoryCreate
         FactoryCreate[] value();
     }
 
+    /**
+     * Dummy ObjectCreationFactory type - only for annotation value type purposes.
+     */
+    public static final class DefaultObjectCreationFactory
+        extends AbstractObjectCreationFactory<Object>
+    {
+
+        /**
+         * {@inheritDoc}
+         */
+        @Override
+        public Object createObject( Attributes attributes )
+            throws Exception
+        {
+            // do nothing
+            return null;
+        }
+
+    }
+
 }



Mime
View raw message