Interface VarLoader


public interface VarLoader
Interface for updating individual variables in the target system
  • Method Summary

    Modifier and Type Method Description
    String getDestination()
    Gets the name of the destination, used by the VarLoaderFactory to categorise it
    Class<? extends Var> getVarClass()
    Gets the java class type that this var loader loads
    void setStyle​(String style)
    Defines the style of how this variable should be saved
    int update​(Object location, Var var)
    Update the passed in variable
  • Method Details

    • getDestination

      String getDestination()
      Gets the name of the destination, used by the VarLoaderFactory to categorise it
      Returns:
      The name of the destination, e.g. mongodb
    • getVarClass

      Class<? extends Var> getVarClass()
      Gets the java class type that this var loader loads
      Returns:
      The class of the Var that this loader loads
    • setStyle

      void setStyle​(String style)
      Defines the style of how this variable should be saved
      Parameters:
      style - The named style
    • update

      int update​(Object location, Var var)
      Update the passed in variable
      Parameters:
      location - The loader specific location to store the Var
      var - The variable to update
      Returns:
      The number of variables updated