public abstract boolean isAnnotationPresent(Class<? extends Annotation> annotationClass, boolean recursive);
public abstract boolean isAnnotationPresent(Class<? extends Annotation> annotationClass, boolean recursive);
public abstract boolean isAnnotationPresent(Class<? extends Annotation> annotationClass, boolean recursive);
public abstract boolean isAnnotationPresent(Class<? extends Annotation> annotationClass, boolean recursive);
public abstract boolean isAnnotationPresent(Class<? extends Annotation> annotationClass, boolean recursive);
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); } } }
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.setProperty(o, value); } } }
log.debug("Reading entity %s with fields %s", o.getClass().getName(), fields); for (Property field : fields) { if (!field.isAnnotationPresent(Id.class)) continue; Object value = in.readObject();
public SpecialValueFactory<?> getValueFactory(Property property) { Type propertyType = property.getType(); Class<?> type = TypeUtil.classOfType(propertyType); if (!Externalizable.class.isAssignableFrom(type)) { if ((type.isArray() && type.getComponentType() != byte.class) || Collection.class.isAssignableFrom(type)) { if (property.isAnnotationPresent(AMFVectorInt.class)) return new AMFVectorIntValueFactory(property.getAnnotation(AMFVectorInt.class)); if (property.isAnnotationPresent(AMFVectorNumber.class)) return new AMFVectorNumberValueFactory(property.getAnnotation(AMFVectorNumber.class)); if (property.isAnnotationPresent(AMFVectorUint.class)) return new AMFVectorUintValueFactory(property.getAnnotation(AMFVectorUint.class)); if (property.isAnnotationPresent(AMFVectorObject.class)) { AMFVectorObject annotation = property.getAnnotation(AMFVectorObject.class); String vectorComponentType = annotation.type(); if (vectorComponentType == null || vectorComponentType.length() == 0) { Class<?> componentClass = TypeUtil.componentClassOfType(propertyType); vectorComponentType = vectorObjectAlias.aliasFor(componentClass); } return new AMFVectorObjectValueFactory(annotation, vectorComponentType); } } else if (Map.class.isAssignableFrom(type) && property.isAnnotationPresent(AMFDictionary.class)) { return new AMFDictionaryValueFactory(property.getAnnotation(AMFDictionary.class)); } } return null; }
public SpecialValueFactory<?> getValueFactory(Property property) { Type propertyType = property.getType(); Class<?> type = TypeUtil.classOfType(propertyType); if (!Externalizable.class.isAssignableFrom(type)) { if ((type.isArray() && type.getComponentType() != byte.class) || Collection.class.isAssignableFrom(type)) { if (property.isAnnotationPresent(AMFVectorInt.class)) return new AMFVectorIntValueFactory(property.getAnnotation(AMFVectorInt.class)); if (property.isAnnotationPresent(AMFVectorNumber.class)) return new AMFVectorNumberValueFactory(property.getAnnotation(AMFVectorNumber.class)); if (property.isAnnotationPresent(AMFVectorUint.class)) return new AMFVectorUintValueFactory(property.getAnnotation(AMFVectorUint.class)); if (property.isAnnotationPresent(AMFVectorObject.class)) { AMFVectorObject annotation = property.getAnnotation(AMFVectorObject.class); String vectorComponentType = annotation.type(); if (vectorComponentType == null || vectorComponentType.length() == 0) { Class<?> componentClass = TypeUtil.componentClassOfType(propertyType); vectorComponentType = vectorObjectAlias.aliasFor(componentClass); } return new AMFVectorObjectValueFactory(annotation, vectorComponentType); } } else if (Map.class.isAssignableFrom(type) && property.isAnnotationPresent(AMFDictionary.class)) { return new AMFDictionaryValueFactory(property.getAnnotation(AMFDictionary.class)); } } return null; }
public SpecialValueFactory<?> getValueFactory(Property property) { Type propertyType = property.getType(); Class<?> type = TypeUtil.classOfType(propertyType); if (!Externalizable.class.isAssignableFrom(type)) { if ((type.isArray() && type.getComponentType() != byte.class) || Collection.class.isAssignableFrom(type)) { if (property.isAnnotationPresent(AMFVectorInt.class)) return new AMFVectorIntValueFactory(property.getAnnotation(AMFVectorInt.class)); if (property.isAnnotationPresent(AMFVectorNumber.class)) return new AMFVectorNumberValueFactory(property.getAnnotation(AMFVectorNumber.class)); if (property.isAnnotationPresent(AMFVectorUint.class)) return new AMFVectorUintValueFactory(property.getAnnotation(AMFVectorUint.class)); if (property.isAnnotationPresent(AMFVectorObject.class)) { AMFVectorObject annotation = property.getAnnotation(AMFVectorObject.class); String vectorComponentType = annotation.type(); if (vectorComponentType == null || vectorComponentType.length() == 0) { Class<?> componentClass = TypeUtil.componentClassOfType(propertyType); vectorComponentType = vectorObjectAlias.aliasFor(componentClass); } return new AMFVectorObjectValueFactory(annotation, vectorComponentType); } } else if (Map.class.isAssignableFrom(type) && property.isAnnotationPresent(AMFDictionary.class)) { return new AMFDictionaryValueFactory(property.getAnnotation(AMFDictionary.class)); } } return null; }
if (field.isAnnotationPresent(Id.class)) {
if (!(field instanceof MethodProperty && field.isAnnotationPresent(Include.class, true))) {
for (Property field : fields) { Object value = in.readObject(); if (!(field instanceof MethodProperty && field.isAnnotationPresent(Include.class, true))) {
if (sorted && field.isAnnotationPresent(Sort.class)) { Sort sort = field.getAnnotation(Sort.class); if (sort.type() == SortType.COMPARATOR) {