Author: scottbw
Date: Thu Jun 17 09:29:50 2010
New Revision: 955523
URL: http://svn.apache.org/viewvc?rev=955523&view=rev
Log:
Made the delegate more of a shallow clone - DWR needs to access the bean
outside the persistence manager thread.
Modified:
incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/ajaxmodel/impl/PreferenceDelegate.java
Modified:
incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/ajaxmodel/impl/PreferenceDelegate.java
URL:
http://svn.apache.org/viewvc/incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/ajaxmodel/impl/PreferenceDelegate.java?rev=955523&r1=955522&r2=955523&view=diff
==============================================================================
---
incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/ajaxmodel/impl/PreferenceDelegate.java
(original)
+++
incubator/wookie/branches/pluggablepersistence/src/org/apache/wookie/ajaxmodel/impl/PreferenceDelegate.java
Thu Jun 17 09:29:50 2010
@@ -20,37 +20,41 @@ import org.apache.wookie.beans.IPreferen
*/
public class PreferenceDelegate implements IPreference {
- private IPreference pref;
+ private String dkey;
+ private String dvalue;
+ private boolean readOnly;
public PreferenceDelegate(){
}
public PreferenceDelegate(IPreference pref){
- this.pref = pref;
+ this.dkey = pref.getDkey();
+ this.dvalue = pref.getDvalue();
+ this.readOnly = pref.isReadOnly();
}
public String getDkey() {
- return pref.getDkey();
+ return dkey;
}
public String getDvalue() {
- return pref.getDvalue();
+ return dvalue;
}
public boolean isReadOnly() {
- return pref.isReadOnly();
+ return readOnly;
}
public void setDkey(String dkey) {
- pref.setDkey(dkey);
+ this.dkey = dkey;
}
public void setDvalue(String dvalue) {
- pref.setDvalue(dvalue);
+ this.dvalue = dvalue;
}
public void setReadOnly(boolean readOnly) {
- pref.setReadOnly(readOnly);
+ this.readOnly = readOnly;
}
}