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