インターフェースの使用
org.springframework.integration.file.DirectoryScanner
DirectoryScanner を使用するパッケージ
パッケージ
説明
ファイルサポートの基本パッケージ。
構成用のクラスを提供します。パーサー、名前空間ハンドラー、ファクトリ Bean。
Spring Integration Java DSL のファイルコンポーネントサポートを提供します。
ファイルシステム用の送信チャネルアダプター。
リモートとローカルファイルディレクトリの同期をサポートするクラスを提供します。
org.springframework.integration.file 内の DirectoryScanner 使用
DirectoryScanner を実装している org.springframework.integration.file のクラス修飾子と型クラス説明classデフォルトのディレクトリスキャナーと他のディレクトリスキャナーの基本クラス。classディレクトリリストから最初のmaxNumberOfFiles要素のみを返すカスタムスキャナー。classFiles.walk(Path, int, FileVisitOption...)SE を使用してディレクトリツリーをウォークスルーするDefaultDirectoryScanner拡張機能。org.springframework.integration.file.config 内の DirectoryScanner 使用
型 DirectoryScanner のパラメーターを持つ org.springframework.integration.file.config のメソッドorg.springframework.integration.file.dsl 内の DirectoryScanner 使用
型 DirectoryScanner のパラメーターを持つ org.springframework.integration.file.dsl のメソッド修飾子と型メソッド説明FileInboundChannelAdapterSpec.scanner(DirectoryScanner scanner) カスタムスキャナーを指定します。RemoteFileInboundChannelAdapterSpec.scanner(DirectoryScanner scanner) 転送後のファイルシステムスキャンに使用するスキャナーを構成します。org.springframework.integration.file.inbound 内の DirectoryScanner 使用
修飾子と型メソッド説明FileReadingMessageSource.getScanner()FileReadingMessageSourceBean を使用して、実行時にオプション(filter、lockerなど)を変更できるようにするFileReadingMessageSource.scannerプロパティアクセサー。型 DirectoryScanner のパラメーターを持つ org.springframework.integration.file.inbound のメソッド修飾子と型メソッド説明voidFileReadingMessageSource.setScanner(DirectoryScanner scanner) オプションで、FileReadingMessageSource.WatchServiceDirectoryScannerなどのカスタムスキャナーを指定します。org.springframework.integration.file.remote.synchronizer 内の DirectoryScanner 使用
型 DirectoryScanner のパラメーターを持つ org.springframework.integration.file.remote.synchronizer のメソッド修飾子と型メソッド説明voidAbstractInboundFileSynchronizingMessageSource.setScanner(DirectoryScanner scanner) ローカルFileReadingMessageSourceを切り替えて、カスタムDirectoryScannerを使用します。