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