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