Interface ModelLoader<T>

  • Type Parameters:
    T - the type of the model

    public interface ModelLoader<T>
    Model loader. Given a path knows how to load a model of a specified type from disk.
    Author:
    Adam Gibson
    • Method Detail

      • saveModel

        io.vertx.core.buffer.Buffer saveModel​(T model)
        Save a model as a buffer
        Parameters:
        model - the model to save
        Returns:
        a buffer representing the binary representation of the model
      • loadModel

        T loadModel()
             throws java.lang.Exception
        Load the model
        Returns:
        the loaded model
        Throws:
        java.lang.Exception - if an error occurs loading the model