diff options
author | Tatu Saloranta <tsaloranta@gmail.com> | 2011-12-27 22:34:55 -0800 |
---|---|---|
committer | Tatu Saloranta <tsaloranta@gmail.com> | 2011-12-27 22:34:55 -0800 |
commit | 289b58d10604feb7b709b91da6d314e0d6ac3b5d (patch) | |
tree | 1cc516cd5e704437495d02ce1351b0d1473bf5bc /src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java | |
parent | 79a126ba58df304da0e5c2eb7a7a4874fadea118 (diff) | |
download | jackson-databind-289b58d10604feb7b709b91da6d314e0d6ac3b5d.tar.gz |
Improve ValueInstantiator interface to pass enough information to properly construct types (i.e. give DeserializationConfig)
Diffstat (limited to 'src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java')
-rw-r--r-- | src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java b/src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java index cc06099a2..344e781c9 100644 --- a/src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java +++ b/src/main/java/com/fasterxml/jackson/databind/deser/ValueInstantiator.java @@ -3,6 +3,7 @@ package com.fasterxml.jackson.databind.deser; import java.io.IOException; import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.DeserializationConfig; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.introspect.AnnotatedWithParams; @@ -115,9 +116,8 @@ public abstract class ValueInstantiator * constructor or factory method) * is available for this instantiator */ - public boolean canCreateUsingDelegate() { - return getDelegateType() != null; - } + public abstract boolean canCreateUsingDelegate(); +// return getDelegateType(null) != null; /** * Method that can be called to check whether a property-based creator @@ -138,7 +138,7 @@ public abstract class ValueInstantiator * NOTE: all properties will be of type * {@link com.fasterxml.jackson.databind.deser.impl.CreatorProperty}. */ - public SettableBeanProperty[] getFromObjectArguments() { + public SettableBeanProperty[] getFromObjectArguments(DeserializationConfig config) { return null; } @@ -149,7 +149,7 @@ public abstract class ValueInstantiator * specified type (using standard deserializer for that type), and * pass that to instantiator. */ - public JavaType getDelegateType() { + public JavaType getDelegateType(DeserializationConfig config) { return null; } |