Skip to content

Commit 7224b55

Browse files
committed
Add auto-configuration for Jackson's CBOR data format
Closes gh-47641
1 parent e1f9116 commit 7224b55

7 files changed

Lines changed: 675 additions & 335 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright 2012-present the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.boot.jackson.autoconfigure;
18+
19+
import tools.jackson.dataformat.cbor.CBORMapper;
20+
import tools.jackson.dataformat.cbor.CBORMapper.Builder;
21+
22+
/**
23+
* Callback interface that can be implemented by beans wishing to further customize the
24+
* {@link CBORMapper} through {@link Builder CBORMapper.Builder} to fine-tune its
25+
* auto-configuration.
26+
*
27+
* @author Andy Wilkinson
28+
* @since 4.0.0
29+
*/
30+
@FunctionalInterface
31+
public interface CborMapperBuilderCustomizer {
32+
33+
/**
34+
* Customize the CBORMapper.Builder.
35+
* @param cborMapperBuilder the builder to customize
36+
*/
37+
void customize(CBORMapper.Builder cborMapperBuilder);
38+
39+
}

0 commit comments

Comments
 (0)