public class DefaultSearchStrategyFactory extends Object implements SearchStrategyFactory
SearchStrategyFactory which will delegate to the DirectoryManager for all of its
search strategies.
This factory is guaranteed to return non-empty for any application and configuration of directories
NoDirectorySearchStrategy,
SingleDirectorySearchStrategy,
InMemoryAggregatingSearchStrategy| Constructor and Description |
|---|
DefaultSearchStrategyFactory(DirectoryManager directoryManager) |
| Modifier and Type | Method and Description |
|---|---|
Optional<SearchStrategy> |
createSearchStrategy(Application application,
List<Directory> activeDirectories)
|
public DefaultSearchStrategyFactory(DirectoryManager directoryManager)
public Optional<SearchStrategy> createSearchStrategy(Application application, List<Directory> activeDirectories)
SearchStrategyFactorySearchStrategy for the specified application and
associated activeDirectories.
If the factory cannot create a SearchStrategy for the specified application or directory configuration
Optional.empty() should be returned
createSearchStrategy in interface SearchStrategyFactoryapplication - the applicationactiveDirectories - the collection of active directories associated with the applicationSearchStrategy for the application and directories or Optional.empty()Copyright © 2017 Atlassian. All rights reserved.