001 package org.tynamo.descriptor.annotation;
002
003 import org.tynamo.descriptor.TynamoPropertyDescriptor;
004
005 /**
006 * @author fus8882
007 * <p/>
008 * Applies the annotation to a given property.
009 * @see org.tynamo.descriptor.annotation.AbstractAnnotationHandler.setDescriptorPropertiesFromAnnotation
010 */
011 public class PropertyDescriptorAnnotationHandler extends AbstractAnnotationHandler implements DescriptorAnnotationHandler<PropertyDescriptor, TynamoPropertyDescriptor>
012 {
013 /**
014 * @param propertyDescriptorAnno
015 * @param descriptor
016 * @return
017 * @see AbstractAnnotationHandler.setDescriptorPropertiesFromAnnotation
018 */
019 public TynamoPropertyDescriptor decorateFromAnnotation(PropertyDescriptor propertyDescriptorAnno,
020 TynamoPropertyDescriptor descriptor)
021 {
022 setPropertiesFromAnnotation(propertyDescriptorAnno, descriptor);
023 return descriptor;
024 }
025
026 }