Annotation Type FileTypeLoader


  • @Retention(RUNTIME)
    public @interface FileTypeLoader
    Default a loader by extension and Object Loader type
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String extension
      The file extension including the .
      Class<? extends ObjectLoader> loadedBy
      A class, with a default constructor, which can load this file extension.
    • Element Detail

      • extension

        String extension
        The file extension including the .
        Returns:
        lowercase file extension - e.g. .json
      • loadedBy

        Class<? extends ObjectLoader> loadedBy
        A class, with a default constructor, which can load this file extension. We can subclass JsonLoader or make our own
        Returns:
        a loader type to use. Must have default constructor