Annotation Type PluginData


  • @Retention(RUNTIME)
    public @interface PluginData
    Local path where a plugin can store its own private data.

    A plugin or extension may receive this string by Guice injection to discover a directory where it can store configuration or other data that is private:

    This binding is on both File and Path, pointing to the same location. The File version should be considered deprecated and may be removed in a future version.

     @Inject
     MyType(@PluginData java.nio.file.Path myDir) {
       this.in = Files.newInputStream(myDir.resolve("my.config"));
     }