1 package org.apache.beehive.controls.runtime.bean; 2 19 20 import java.beans.BeanInfo ; 21 import java.beans.DefaultPersistenceDelegate ; 22 import java.beans.Encoder ; 23 import java.beans.Expression ; 24 import java.beans.IntrospectionException ; 25 import java.beans.Introspector ; 26 import java.beans.PersistenceDelegate ; 27 import java.beans.PropertyDescriptor ; 28 import java.beans.Statement ; 29 import java.beans.XMLEncoder ; 30 import java.util.Set ; 31 32 import org.apache.beehive.controls.api.ControlException; 33 34 40 public class ContextPersistenceDelegate extends DefaultPersistenceDelegate 41 { 42 45 protected Expression instantiate(Object oldInstance, Encoder out) 46 { 47 return new Expression (((XMLEncoder )out).getOwner(), "getControlBeanContext", null); 52 } 53 54 57 protected void initialize(Class <?> type, Object oldInstance, Object newInstance, Encoder out) 58 { 59 } 61 62 65 public void writeObject(Object oldInstance, Encoder out) 66 { 67 super.writeObject(oldInstance, out); 68 } 69 } 70 | Popular Tags |