public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(_descriptor.getBeanClass()); out.writeObject(_descriptor.getCustomizerClass()); out.writeObject(_descriptor.getDisplayName()); out.writeBoolean(_descriptor.isExpert()); out.writeObject(_descriptor.getName()); out.writeBoolean(_descriptor.isPreferred()); out.writeObject(_descriptor.getShortDescription()); Map<String,Object> map = new HashMap<String, Object>(4,1); for (Enumeration<String> e = _descriptor.attributeNames(); e.hasMoreElements();) { String name = e.nextElement(); // It is not necessary to serialize AttachedObjectTarget list because // we only use it when VDL.retargetAttachedObjects() is called and this only // happen when the view is built. Also, try to serialize this instances could // cause unwanted exceptions. if (!AttachedObjectTarget.ATTACHED_OBJECT_TARGETS_KEY.equals(name)) { map.put(name, _descriptor.getValue(name)); } } out.writeObject(map); out.writeObject(_propertyDescriptors); } }
out.writeBoolean(_descriptor.isExpert()); out.writeObject(_descriptor.getName()); out.writeBoolean(_descriptor.isPreferred()); out.writeObject(_descriptor.getShortDescription());
public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(_descriptor.getBeanClass()); out.writeObject(_descriptor.getCustomizerClass()); out.writeObject(_descriptor.getDisplayName()); out.writeBoolean(_descriptor.isExpert()); out.writeObject(_descriptor.getName()); out.writeBoolean(_descriptor.isPreferred()); out.writeObject(_descriptor.getShortDescription()); Map<String,Object> map = new HashMap<String, Object>(4,1); for (Enumeration<String> e = _descriptor.attributeNames(); e.hasMoreElements();) { String name = e.nextElement(); // It is not necessary to serialize AttachedObjectTarget list because // we only use it when VDL.retargetAttachedObjects() is called and this only // happen when the view is built. Also, try to serialize this instances could // cause unwanted exceptions. if (!AttachedObjectTarget.ATTACHED_OBJECT_TARGETS_KEY.equals(name)) { map.put(name, _descriptor.getValue(name)); } } out.writeObject(map); out.writeObject(_propertyDescriptors); } }