arminw      2005/08/12 09:36:40

  Modified:    src/java/org/apache/ojb/broker/cache Tag: OJB_1_0_RELEASE
                        ObjectCacheTwoLevelImpl.java
  Log:
  add note about new property
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.10  +17 -6     
db-ojb/src/java/org/apache/ojb/broker/cache/Attic/ObjectCacheTwoLevelImpl.java
  
  Index: ObjectCacheTwoLevelImpl.java
  ===================================================================
  RCS file: 
/home/cvs/db-ojb/src/java/org/apache/ojb/broker/cache/Attic/ObjectCacheTwoLevelImpl.java,v
  retrieving revision 1.1.2.9
  retrieving revision 1.1.2.10
  diff -u -r1.1.2.9 -r1.1.2.10
  --- ObjectCacheTwoLevelImpl.java      12 Aug 2005 13:49:21 -0000      1.1.2.9
  +++ ObjectCacheTwoLevelImpl.java      12 Aug 2005 16:36:39 -0000      1.1.2.10
  @@ -85,6 +85,20 @@
    * make field-descriptor based copies of the cached objects).
    * </td>
    * </tr>
  + * <p/>
  + * <tr>
  + * <td>forceProxies</td>
  + * <td>
  + * If <em>true</em> on materialization of cached objects, all referenced 
objects will
  + * be represented by proxy objects (independent from the proxy settings in 
reference- or
  + * collection-descriptor).
  + * <br/>
  + * <strong>Note:</strong> To use this feature all persistence capable 
objects have to be
  + * interface based <strong>or</strong> the <em>ProxyFactory</em> and
  + * <em>IndirectionHandler</em> implementation classes supporting dynamic 
proxy enhancement
  + * for all classes (see OJB.properties file).
  + * </td>
  + * </tr>
    * </table>
    * <p/>
    *
  @@ -129,11 +143,8 @@
           this.sessionCache = new HashMap(100);
           // this.enabledReadCache = false;
           setupApplicationCache(broker, prop);
  -        if(broker != null)
  -        {
  -            // we add this instance as a permanent PBStateListener
  -            broker.addListener(this, true);
  -        }
  +        // we add this instance as a permanent PBStateListener
  +        broker.addListener(this, true);
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to