org.apache.ignite.resources

## Annotation Type FileSystemResource

    @Documented
    @Retention(value=RUNTIME)
    @Target(value={METHOD,FIELD})
    public @interface FileSystemResource

Annotates a field or a setter method for injection of primary Ignite filesystem to a secondary filesystem implementation.

Here is how injection would typically happen:

     public class MySecondaryFS implements IgfsSecondaryFileSystem {
          ...
          // Inject instance of primary filesystem.
          @FileSystemResource
          private IgniteFileSystem igfs;
          ...
      }

or attach the same annotations to methods:

     public class MySecondaryFS implements IgfsSecondaryFileSystem {
         ...
         private IgniteFileSystem igfs;
         ...
          // Inject instance of primary filesystem.
          @FileSystemResource
         public void setIgfs(IgniteFileSystem igfs) {
              this.igfs = igfs;
         }
         ...
     }

2017 Copyright © Apache Software Foundation

Follow @ApacheIgnite

Ignite Fabric | : ver. 2.1.0
Release Date | : July 20 2017