Author: arminw Date: Mon Oct 29 03:19:09 2007 New Revision: 589573 URL: http://svn.apache.org/viewvc?rev=589573&view=rev Log: change 'PersistentFieldClass' handling, needed to allow shortcut names (ShortcutManager)
Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/configuration/impl/OjbConfiguration.java Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/configuration/impl/OjbConfiguration.java URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/configuration/impl/OjbConfiguration.java?rev=589573&r1=589572&r2=589573&view=diff ============================================================================== --- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/configuration/impl/OjbConfiguration.java (original) +++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/util/configuration/impl/OjbConfiguration.java Mon Oct 29 03:19:09 2007 @@ -68,7 +68,6 @@ /** the repository file keeping the O/R Metadata*/ private String repositoryFilename; private Class objectCacheClass; - private Class persistentFieldClass; private Class persistenceBrokerClass; // proxy related classes @@ -167,7 +166,16 @@ public Class getPersistentFieldClass() { - return persistentFieldClass; + return getClass("PersistentFieldClass", PersistentFieldDirectImpl.class, PersistentField.class); + } + + /** + * Sets the persistentFieldClass. + * @param persistentFieldClass The persistentFieldClass to set + */ + public void setPersistentFieldClass(Class persistentFieldClass) + { + this.properties.setProperty("PersistentFieldClass", persistentFieldClass.getName()); } public Class getPersistenceBrokerClass() @@ -249,10 +257,6 @@ // object cache class objectCacheClass = getClass("ObjectCacheClass", ObjectCacheDefaultImpl.class, ObjectCache.class); - // load PersistentField Class - persistentFieldClass = - getClass("PersistentFieldClass", PersistentFieldDirectImpl.class, PersistentField.class); - // load PersistenceBroker Class persistenceBrokerClass = getClass("PersistenceBrokerClass", PersistenceBrokerImpl.class, PersistenceBroker.class); @@ -312,15 +316,6 @@ public int getSqlInLimit() { return sqlInLimit; - } - - /** - * Sets the persistentFieldClass. - * @param persistentFieldClass The persistentFieldClass to set - */ - public void setPersistentFieldClass(Class persistentFieldClass) - { - this.persistentFieldClass = persistentFieldClass; } /** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]