You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by to...@apache.org on 2005/10/01 14:37:14 UTC
cvs commit: db-ojb/src/test/org/apache/ojb/broker FactoryTest.java
tomdz 2005/10/01 05:37:14
Modified: src/java/org/apache/ojb/broker/core/factory
ObjectCreator.java ObjectFactoryDefaultImpl.java
src/test/org/apache/ojb/broker FactoryTest.java
Log:
Removed newIdentityInstance method from the ObjectCreator interface which is obviously not necessary (the Identity class does not need an instance of the target class)
Revision Changes Path
1.4 +0 -12 db-ojb/src/java/org/apache/ojb/broker/core/factory/ObjectCreator.java
Index: ObjectCreator.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/factory/ObjectCreator.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ObjectCreator.java 30 Sep 2005 21:45:15 -0000 1.3
+++ ObjectCreator.java 1 Oct 2005 12:37:14 -0000 1.4
@@ -35,16 +35,4 @@
* @throws ObjectFactoryException If no new instance could be created
*/
public Object newInstance(ClassDescriptor classDesc, Object[] args, Object enclosingObj) throws ObjectFactoryException;
-
- /**
- * Creates a new instance of the type described by the given class descriptor, that is meant to
- * be used as an identity object.
- *
- * @param classDesc The class descriptor
- * @param args The arguments
- * @param enclosingObj The enclosing class instance
- * @return The new instance
- * @throws ObjectFactoryException If no new instance could be created
- */
- public Object newIdentityInstance(ClassDescriptor classDesc, Object[] args, Object enclosingObj) throws ObjectFactoryException;
}
1.5 +0 -8 db-ojb/src/java/org/apache/ojb/broker/core/factory/ObjectFactoryDefaultImpl.java
Index: ObjectFactoryDefaultImpl.java
===================================================================
RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/core/factory/ObjectFactoryDefaultImpl.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ObjectFactoryDefaultImpl.java 30 Sep 2005 21:45:15 -0000 1.4
+++ ObjectFactoryDefaultImpl.java 1 Oct 2005 12:37:14 -0000 1.5
@@ -104,12 +104,4 @@
}
}
}
-
- /**
- * {@inheritDoc}
- */
- public Object newIdentityInstance(ClassDescriptor classDesc, Object[] args, Object enclosingObj) throws ObjectFactoryException
- {
- return newInstance(classDesc, args, enclosingObj);
- }
}
1.7 +0 -4 db-ojb/src/test/org/apache/ojb/broker/FactoryTest.java
Index: FactoryTest.java
===================================================================
RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/FactoryTest.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- FactoryTest.java 30 Sep 2005 21:48:42 -0000 1.6
+++ FactoryTest.java 1 Oct 2005 12:37:14 -0000 1.7
@@ -86,8 +86,4 @@
{
return new InitializableObject();
}
- public Object newIdentityInstance(ClassDescriptor classDesc, Object[] args, Object enclosingObj)
- {
- return new InitializableObject();
- }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org