org.org.usurper.handlers.additional
Class ValueObjectPropertyTypeHandler

java.lang.Object
  extended by org.org.usurper.handlers.basic.AbstractPropertyTypeHandler
      extended by org.org.usurper.handlers.additional.ValueObjectPropertyTypeHandler
All Implemented Interfaces:
IHandler

public class ValueObjectPropertyTypeHandler
extends AbstractPropertyTypeHandler

This handler allows for a redundant ;) generation of ValueObjects. Handled Value Object types have to be passed to the constructor(s).

Author:
pagregoire

Constructor Summary
ValueObjectPropertyTypeHandler(java.lang.Class<?>... supportedTypes)
          This constructor takes a series of Supported types' Classes as a parameter.
ValueObjectPropertyTypeHandler(PropertyTypeDefinition... supportedTypes)
          This constructor takes a series of Supported types' PropertyTypeDefinitions as a parameter.
 
Method Summary
 java.lang.Object handle(HandledBeanProperty handledBeanProperty)
          This method allows the generation of a properties' value.
 java.lang.Object handle(HandledConstructorArg handledConstructorArg)
          This method allows the generation of a constructor argument.
 
Methods inherited from class org.org.usurper.handlers.basic.AbstractPropertyTypeHandler
getHandledTypes, setHandledTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueObjectPropertyTypeHandler

public ValueObjectPropertyTypeHandler(PropertyTypeDefinition... supportedTypes)
This constructor takes a series of Supported types' PropertyTypeDefinitions as a parameter.

Parameters:
supportedTypes -

ValueObjectPropertyTypeHandler

public ValueObjectPropertyTypeHandler(java.lang.Class<?>... supportedTypes)
This constructor takes a series of Supported types' Classes as a parameter.

Parameters:
supportedTypes -
Method Detail

handle

public java.lang.Object handle(HandledBeanProperty handledBeanProperty)
Description copied from interface: IHandler
This method allows the generation of a properties' value.

Parameters:
handledBeanProperty - The bean property's info
Returns:
the generated value.
See Also:
org.org.usurper.handlers.basic.AbstractPropertyTypeHandler#handle()

handle

public java.lang.Object handle(HandledConstructorArg handledConstructorArg)
Description copied from interface: IHandler
This method allows the generation of a constructor argument.

Parameters:
handledConstructorArg - The constructor's arg's info
Returns:
the generated value.
See Also:
org.org.usurper.handlers.basic.AbstractPropertyTypeHandler#handle()


Copyright © 2008. All Rights Reserved.