1 package org.apache.beehive.controls.runtime.bean; 2 19 20 import java.beans.PersistenceDelegate ; 21 import java.beans.Encoder ; 22 import java.beans.Expression ; 23 24 import org.apache.beehive.controls.api.properties.AnnotatedElementMap; 25 26 31 public class AnnotatedElementMapPersistenceDelegate extends PersistenceDelegate  32 { 33 protected Expression instantiate(Object oldInstance, Encoder out) 34 { 35 AnnotatedElementMap aem = (AnnotatedElementMap)oldInstance; 39 return new Expression (aem, aem.getClass(), "new", 40 new Object [] { aem.getAnnotatedElement() }); 41 } 42 } 43 | Popular Tags |