@Documented @Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface FileSystemResource
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;
}
...
}
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019