Package org.apache.juneau.cp
Class FileFinder.Builder
- Enclosing interface:
- FileFinder
Builder class.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected FileFinderCreates the bean when the bean type isnull or is the default value.caching(long cachingLimit) Enables in-memory caching of files for quicker retrieval.Adds a class subpackage to the lookup paths.Adds a file system directory to the lookup paths.Specifies the regular expression file name pattern to use to exclude files from being retrieved from the file source.Overrides the bean returned by theBeanBuilder.build()method.Specifies the regular expression file name patterns to use to include files being retrieved from the file source.Adds a file system directory to the lookup paths.Overrides the bean type produced by theBeanBuilder.build()method.
- 
Constructor Details- 
BuilderConstructor.- Parameters:
- beanStore- The bean store to use for creating beans.
 
 
- 
- 
Method Details- 
buildDefaultDescription copied from class:BeanBuilderCreates the bean when the bean type isnull or is the default value.- Overrides:
- buildDefaultin class- BeanBuilder<FileFinder>
- Returns:
- A new bean.
 
- 
cpAdds a class subpackage to the lookup paths.- Parameters:
- c- The class whose package will be added to the lookup paths. Must not be- null .
- path- The absolute or relative subpath.
- recursive- If- true , also recursively adds all the paths of the parent classes as well.
- Returns:
- This object.
 
- 
dirAdds a file system directory to the lookup paths.- Parameters:
- path- The path relative to the working directory. Must not be- null 
- Returns:
- This object.
 
- 
pathAdds a file system directory to the lookup paths.- Parameters:
- path- The directory path.
- Returns:
- This object.
 
- 
cachingEnables in-memory caching of files for quicker retrieval.- Parameters:
- cachingLimit- The maximum file size in bytes.
- Returns:
- This object.
 
- 
includeSpecifies the regular expression file name patterns to use to include files being retrieved from the file source.- Parameters:
- patterns- The regular expression include patterns.
 The default is- ".*" .
- Returns:
- This object.
 
- 
excludeSpecifies the regular expression file name pattern to use to exclude files from being retrieved from the file source.- Parameters:
- patterns- The regular expression exclude patterns.
 If none are specified, no files will be excluded.
- Returns:
- This object.
 
- 
implDescription copied from class:BeanBuilderOverrides the bean returned by theBeanBuilder.build()method.Use this method if you want this builder to return an already-instantiated bean. - Overrides:
- implin class- BeanBuilder<FileFinder>
- Parameters:
- value- The setting value.
- Returns:
- This object.
 
- 
typeDescription copied from class:BeanBuilderOverrides the bean type produced by theBeanBuilder.build()method.Use this method if you want to instantiated a bean subclass. - Overrides:
- typein class- BeanBuilder<FileFinder>
- Parameters:
- value- The setting value.
- Returns:
- This object.
 
 
-