org.tynamo.descriptor.annotation
Class InitialValueAnnotationHandler

java.lang.Object
  extended by org.tynamo.descriptor.annotation.AbstractAnnotationHandler
      extended by org.tynamo.descriptor.annotation.InitialValueAnnotationHandler
All Implemented Interfaces:
DescriptorAnnotationHandler<InitialValue,TynamoPropertyDescriptor>

public class InitialValueAnnotationHandler
extends AbstractAnnotationHandler
implements DescriptorAnnotationHandler<InitialValue,TynamoPropertyDescriptor>

Creates a InitialValueDescriptorExtension using the information retrieved from a InitialValue annotation.

Author:
pruggia

Constructor Summary
InitialValueAnnotationHandler()
           
 
Method Summary
 TynamoPropertyDescriptor decorateFromAnnotation(InitialValue annotation, TynamoPropertyDescriptor descriptor)
          Creates a InitialValueDescriptorExtension and adds it to the property descriptor.
 
Methods inherited from class org.tynamo.descriptor.annotation.AbstractAnnotationHandler
isDefault, setPropertiesFromAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitialValueAnnotationHandler

public InitialValueAnnotationHandler()
Method Detail

decorateFromAnnotation

public TynamoPropertyDescriptor decorateFromAnnotation(InitialValue annotation,
                                                       TynamoPropertyDescriptor descriptor)
Creates a InitialValueDescriptorExtension and adds it to the property descriptor.

Specified by:
decorateFromAnnotation in interface DescriptorAnnotationHandler<InitialValue,TynamoPropertyDescriptor>
Parameters:
annotation - Annotation added to the property. It cannot be null.
descriptor - The property descriptor. It cannot be null.
Returns:
The provided descriptor with the extension added.


Copyright © 2004-2009. All Rights Reserved.