public abstract void setValue(Object instance, Object value, boolean convert); public abstract Object getValue(Object instance);
public abstract void setValue(Object instance, Object value, boolean convert); public abstract Object getValue(Object instance);
public abstract void setValue(Object instance, Object value, boolean convert); public abstract Object getValue(Object instance);
public abstract void setValue(Object instance, Object value, boolean convert); public abstract Object getValue(Object instance);
public T resolve() throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException { T object = newInstance(); if (object == null) throw new InstantiationException("Instantiator newInstance() method cannot return null"); for (Referer referer : referers) referer.property.setValue(referer.object, object); return object; }
public T resolve() throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException { T object = newInstance(); if (object == null) throw new InstantiationException("Instantiator newInstance() method cannot return null"); for (Referer referer : referers) referer.property.setValue(referer.object, object); return object; }
public T resolve() throws IOException, ClassNotFoundException, InstantiationException, IllegalAccessException { T object = newInstance(); if (object == null) throw new InstantiationException("Instantiator newInstance() method cannot return null"); for (Referer referer : referers) referer.property.setValue(referer.object, object); return object; }
public void setPropertyValue(int index, Object instance, Object value) { Property prop = properties.get(index); if (value instanceof AbstractInstantiator<?>) ((AbstractInstantiator<?>)value).addReferer(instance, prop); else prop.setValue(instance, value); }
public void setPropertyValue(int index, Object instance, Object value) { Property prop = properties.get(index); if (value instanceof AbstractInstantiator<?>) ((AbstractInstantiator<?>)value).addReferer(instance, prop); else prop.setValue(instance, value); }
public void setPropertyValue(int index, Object instance, Object value) { Property prop = properties.get(index); if (value instanceof AbstractInstantiator<?>) ((AbstractInstantiator<?>)value).addReferer(instance, prop); else prop.setValue(instance, value); }
public void setPropertyValue(String name, Object instance, Object value) { // instance must be an instance of Map... Property prop = new MapProperty(converters, name); if (value instanceof AbstractInstantiator<?>) ((AbstractInstantiator<?>)value).addReferer(instance, prop); else prop.setValue(instance, value); }
public void setPropertyValue(String name, Object instance, Object value) { // instance must be an instance of Map... Property prop = new MapProperty(converters, name); if (value instanceof AbstractInstantiator<?>) ((AbstractInstantiator<?>)value).addReferer(instance, prop); else prop.setValue(instance, value); }
public void setPropertyValue(String name, Object instance, Object value) { // instance must be an instance of Map... Property prop = new MapProperty(converters, name); if (value instanceof AbstractInstantiator<?>) ((AbstractInstantiator<?>)value).addReferer(instance, prop); else prop.setValue(instance, value); }
public void readExternal(Object o, ObjectInput in) throws IOException, ClassNotFoundException, IllegalAccessException { if (o instanceof AbstractInstantiator<?>) { AbstractInstantiator<?> instantiator = (AbstractInstantiator<?>)o; List<String> fields = instantiator.getOrderedFieldNames(); log.debug("Reading bean with instantiator %s with fields %s", instantiator.getClass().getName(), fields); for (String fieldName : fields) instantiator.put(fieldName, in.readObject()); } else { List<Property> fields = findOrderedFields(o.getClass()); log.debug("Reading bean %s with fields %s", o.getClass().getName(), fields); for (Property field : fields) { Object value = in.readObject(); if (!(field instanceof MethodProperty && field.isAnnotationPresent(Include.class, true))) field.setValue(o, value); } } }
public void readExternal(Object o, ObjectInput in) throws IOException, ClassNotFoundException, IllegalAccessException { if (o instanceof AbstractInstantiator<?>) { AbstractInstantiator<?> instantiator = (AbstractInstantiator<?>)o; List<String> fields = instantiator.getOrderedFieldNames(); log.debug("Reading bean with instantiator %s with fields %s", instantiator.getClass().getName(), fields); for (String fieldName : fields) instantiator.put(fieldName, in.readObject()); } else { List<Property> fields = findOrderedFields(o.getClass()); log.debug("Reading bean %s with fields %s", o.getClass().getName(), fields); for (Property field : fields) { Object value = in.readObject(); if (!(field instanceof MethodProperty && field.isAnnotationPresent(Include.class, true))) field.setValue(o, value); } } }
public void readExternal(Object o, ObjectInput in) throws IOException, ClassNotFoundException, IllegalAccessException { if (o instanceof AbstractInstantiator<?>) { AbstractInstantiator<?> instantiator = (AbstractInstantiator<?>)o; List<String> fields = instantiator.getOrderedFieldNames(); log.debug("Reading bean with instantiator %s with fields %s", instantiator.getClass().getName(), fields); for (String fieldName : fields) instantiator.put(fieldName, in.readObject()); } else { List<Property> fields = findOrderedFields(o.getClass()); log.debug("Reading bean %s with fields %s", o.getClass().getName(), fields); for (Property field : fields) { Object value = in.readObject(); if (!(field instanceof MethodProperty && field.isAnnotationPresent(Include.class, true))) field.setValue(o, value); } } }
protected void readStandard(ActionScriptClassDescriptor desc, Object result) throws IOException { // defined values... final int count = desc.getPropertiesCount(); for (int i = 0; i < count; i++) { Property property = desc.getProperty(i); Object value = readObject(readUnsignedByte()); if (value != null && value.getClass() == property.getType()) property.setValue(result, value, false); else property.setValue(result, value, true); } // dynamic values... if (desc.isDynamic()) { while (true) { String name = readAMF3String(); if (name.length() == 0) break; Object value = readObject(readUnsignedByte()); desc.setPropertyValue(name, result, value); } } }
protected void readStandard(ActionScriptClassDescriptor desc, Object result) throws IOException { // defined values... final int count = desc.getPropertiesCount(); for (int i = 0; i < count; i++) { Property property = desc.getProperty(i); Object value = readObject(readUnsignedByte()); if (value != null && value.getClass() == property.getType()) property.setValue(result, value, false); else property.setValue(result, value, true); } // dynamic values... if (desc.isDynamic()) { while (true) { String name = readAMF3String(); if (name.length() == 0) break; Object value = readObject(readUnsignedByte()); desc.setPropertyValue(name, result, value); } } }
protected void readStandard(ActionScriptClassDescriptor desc, Object result) throws IOException { // defined values... final int count = desc.getPropertiesCount(); for (int i = 0; i < count; i++) { Property property = desc.getProperty(i); Object value = readObject(readUnsignedByte()); if (value != null && value.getClass() == property.getType()) property.setValue(result, value, false); else property.setValue(result, value, true); } // dynamic values... if (desc.isDynamic()) { while (true) { String name = readAMF3String(); if (name.length() == 0) break; Object value = readObject(readUnsignedByte()); desc.setPropertyValue(name, result, value); } } }
field.setValue(o, value, false);