Package org.bson
Interface Transformer
-
Deprecated.there is no direct replacement for this class, but you can achieve the same effect more flexibly using aCodecRegistry.
@Deprecated public interface Transformer
Transforms objects that can be converted to BSON into other Java types, and vice versa.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Objecttransform(Object objectToTransform)Deprecated.Turns theobjectToTransforminto some otherObject.
-
-
-
Method Detail
-
transform
Object transform(Object objectToTransform)
Deprecated.Turns theobjectToTransforminto some otherObject. This can either be turning a simple BSON-friendly object into a different Java type, or it can be turning a Java type that can't automatically be converted into BSON into something that can.- Parameters:
objectToTransform- the object that needs to be transformed.- Returns:
- the new transformed object.
-
-