Package org.bson.codecs
Class BsonValueCodecProvider
java.lang.Object
org.bson.codecs.BsonValueCodecProvider
- All Implemented Interfaces:
CodecProvider
@Deprecated(since="2022-10-31")
public class BsonValueCodecProvider
extends Object
implements CodecProvider
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A
CodecProvider for all subclass of BsonValue.- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Construct a new instance with the default codec for each BSON type. -
Method Summary
Modifier and TypeMethodDescription<T> Codec<T> get(Class<T> clazz, CodecRegistry registry) Deprecated.Get aCodecusing the given context, which includes, most importantly, the Class for which aCodecis required.static BsonTypeClassMapDeprecated.Gets the BsonTypeClassMap used by this provider.getClassForBsonType(BsonType bsonType) Deprecated.Get theBsonValuesubclass associated with the givenBsonType.
-
Constructor Details
-
BsonValueCodecProvider
public BsonValueCodecProvider()Deprecated.Construct a new instance with the default codec for each BSON type.
-
-
Method Details
-
getClassForBsonType
Deprecated.Get theBsonValuesubclass associated with the givenBsonType.- Parameters:
bsonType- the BsonType- Returns:
- the class associated with the given type
-
getBsonTypeClassMap
Deprecated.Gets the BsonTypeClassMap used by this provider.- Returns:
- the non-null BsonTypeClassMap
- Since:
- 3.3
-
get
Deprecated.Description copied from interface:CodecProviderGet aCodecusing the given context, which includes, most importantly, the Class for which aCodecis required.- Specified by:
getin interfaceCodecProvider- Type Parameters:
T- the type of the class for which a Codec is required- Parameters:
clazz- the Class for which to get a Codecregistry- the registry to use for resolving dependent Codec instances- Returns:
- the Codec instance, which may be null, if this source is unable to provide one for the requested Class
-