Package org.bson

Interface Transformer

  • All Known Implementing Classes:
    DocumentToDBRefTransformer

    @Deprecated(since="2022-10-31")
    public interface Transformer
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.
    Transforms objects that can be converted to BSON into other Java types, and vice versa.
    • Method Detail

      • transform

        java.lang.Object transform​(java.lang.Object objectToTransform)
        Deprecated.
        Turns the objectToTransform into some other Object. 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.