1 package org.org.usurper.dummydomain;
2
3 import java.math.BigInteger;
4 import java.util.Set;
5
6 import org.org.usurper.handlers.basic.AbstractPropertyTypeHandler;
7 import org.org.usurper.model.HandledBeanProperty;
8 import org.org.usurper.model.HandledConstructorArg;
9 import org.org.usurper.model.PropertyTypeDefinition;
10
11 public class BigIntegerHandler extends AbstractPropertyTypeHandler {
12
13 public BigIntegerHandler(PropertyTypeDefinition... properTypeDefinitions) {
14 super(properTypeDefinitions);
15 }
16
17 public BigIntegerHandler(Class<?>... handledTypes) {
18 super(handledTypes);
19 }
20
21 public BigIntegerHandler(Set<PropertyTypeDefinition> handledTypes) {
22 super(handledTypes);
23 }
24
25 private static final BigInteger BIG_DECIMAL_LUCKY_VALUE = BigInteger.valueOf(13);
26
27 public Object handle(HandledBeanProperty handledBeanProperty) {
28 return BIG_DECIMAL_LUCKY_VALUE;
29 }
30
31 public Object handle(HandledConstructorArg handledConstructorArg) {
32 return BIG_DECIMAL_LUCKY_VALUE;
33 }
34
35 }