public class ConfigurableDbCachingRemoteDirectoryInstanceLoader extends DbCachingRemoteDirectoryInstanceLoader
DbCachingRemoteDirectoryInstanceLoader which allows DB caching to be switched off based
on the DirectoryProperties.CACHE_ENABLED attribute.
Note, the caching in this class refers to the DB caching of directory data, not of in memory caches of the
RemoteDirectory instances themselves
| Constructor and Description |
|---|
ConfigurableDbCachingRemoteDirectoryInstanceLoader(DirectoryInstanceLoader remoteDirectoryInstanceLoader,
InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
DirectoryMonitorManager directoryMonitorManager,
DirectoryCacheFactory directoryCacheFactory,
CacheRefresherFactory cacheRefresherFactory) |
| Modifier and Type | Method and Description |
|---|---|
RemoteDirectory |
getDirectory(Directory directory)
Loads the
RemoteDirectory implementation class for a specific (already saved)
Directory configuration. |
canLoad, getRawDirectorypublic ConfigurableDbCachingRemoteDirectoryInstanceLoader(DirectoryInstanceLoader remoteDirectoryInstanceLoader, InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, DirectoryMonitorManager directoryMonitorManager, DirectoryCacheFactory directoryCacheFactory, CacheRefresherFactory cacheRefresherFactory)
public RemoteDirectory getDirectory(Directory directory) throws DirectoryInstantiationException
DbCachingRemoteDirectoryInstanceLoaderRemoteDirectory implementation class for a specific (already saved)
Directory configuration.
Implementations of this method may choose to cache the RemoteDirectory, so this must only be called for Directories that have been successfully saved.
getDirectory in interface DirectoryInstanceLoadergetDirectory in class DbCachingRemoteDirectoryInstanceLoaderdirectory - The directory to load the RemoteDirectory implementation from.RemoteDirectory loaded implementation.DirectoryInstantiationException - If the RemoteDirectory implementation could not be loaded.Copyright © 2017 Atlassian. All rights reserved.