Interface ISourceConverter

  • All Superinterfaces:
    IConverter
    All Known Implementing Classes:
    AbstractSourceConverter

    @StableMinor(version="14.0",
                 sinceVersion="4.0")
    public interface ISourceConverter
    extends IConverter
    Defines extra methods for a converter that is used in a source context. A source field may use a IConverter, but if the converter implements this method, it is assured that the methods of this interface will be called as defined by the source framework.
    Since:
    4.0.4
    Version:
    $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
    • Method Detail

      • init

        void init​(ISourceContext sourceContext)
           throws PortalException
        This method is called to initialize the converter to be used in the given source context. It is called before any convert methods. If the converter will be used on another source context, this method is called again.
        Parameters:
        sourceContext - the source context this converter will be used in.
        Throws:
        PortalException
        Since:
        4.0.4