File tree 2 files changed +11
-3
lines changed
src/main/java/tools/jackson/databind
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,11 @@ protected BeanDescription(JavaType type) {
35
35
_type = type ;
36
36
}
37
37
38
- public BeanDescription .Supplier supplier (MapperConfig <?> config ) {
39
- return new EagerSupplier (config , this );
40
- }
38
+ /**
39
+ * Method for constructing a supplier for this bean description instance:
40
+ * sometimes needed when code expects supplier, not description instance.
41
+ */
42
+ public abstract BeanDescription .Supplier supplier ();
41
43
42
44
/*
43
45
/**********************************************************************
Original file line number Diff line number Diff line change 7
7
import com .fasterxml .jackson .annotation .JsonInclude ;
8
8
9
9
import tools .jackson .databind .*;
10
+ import tools .jackson .databind .BeanDescription .EagerSupplier ;
10
11
import tools .jackson .databind .cfg .MapperConfig ;
11
12
import tools .jackson .databind .util .Annotations ;
12
13
import tools .jackson .databind .util .ClassUtil ;
@@ -154,6 +155,11 @@ protected List<BeanPropertyDefinition> _properties() {
154
155
return _properties ;
155
156
}
156
157
158
+ @ Override
159
+ public BeanDescription .Supplier supplier () {
160
+ return new EagerSupplier (_config , this );
161
+ }
162
+
157
163
/*
158
164
/**********************************************************************
159
165
/* Limited modifications by core databind functionality
You can’t perform that action at this time.
0 commit comments