![JAR search and dependency download from the Maven repository](/logo.png)
com.oracle.coherence.io.json.genson.ThreadLocalHolder Maven / Gradle / Ivy
/*
* Copyright (c) 2020, Oracle and/or its affiliates.
*
* Copyright 2011-2014 Genson - Cepoi Eugen
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.oracle.coherence.io.json.genson;
import static com.oracle.coherence.io.json.genson.Operations.checkNotNull;
import java.util.HashMap;
import java.util.Map;
/**
* Just another data holder that stores data in a threadlocal map.
* If you only want to share data across serializers and deserializers prefer using {@link Context}.
* Internally Genson uses it for the spring webmvc integration, so it can pass method signatures and
* extract its annotations, etc.
*
* @author Eugen Cepoi
* @see Context
* @see com.oracle.coherence.io.json.genson.ext.spring.ExtendedReqRespBodyMethodProcessor ExtendedReqRespBodyMethodProcessor
* @see com.oracle.coherence.io.json.genson.ext.spring.GensonMessageConverter GensonMessageConverter
*/
public final class ThreadLocalHolder {
private final static ThreadLocal
© 2015 - 2025 Weber Informatics LLC | Privacy Policy