@Deprecated public class CacheableDirectoryInstanceLoader extends Object implements DirectoryInstanceLoader
Note, this caching refers to holding the RemoteDirectory instances in memory, not the
db caching which may occur in underlying implementations
| Constructor and Description |
|---|
CacheableDirectoryInstanceLoader(DelegatingDirectoryInstanceLoader delegate,
com.atlassian.event.api.EventPublisher eventPublisher,
com.atlassian.cache.CacheFactory cacheFactory)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLoad(String className)
Deprecated.
|
RemoteDirectory |
getDirectory(Directory directory)
Deprecated.
Loads the
RemoteDirectory implementation class for a specific (already saved)
Directory configuration. |
RemoteDirectory |
getRawDirectory(Long id,
String className,
Map<String,String> attributes)
Deprecated.
Loads a guaranteed un-cached directory implementation for a specific configuration.
|
void |
handleEvent(DirectoryDeletedEvent event)
Deprecated.
|
void |
handleEvent(DirectoryUpdatedEvent event)
Deprecated.
|
void |
handleEvent(XMLRestoreFinishedEvent event)
Deprecated.
|
public CacheableDirectoryInstanceLoader(DelegatingDirectoryInstanceLoader delegate, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheFactory cacheFactory)
public RemoteDirectory getDirectory(Directory directory) throws DirectoryInstantiationException
DirectoryInstanceLoaderRemoteDirectory 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 DirectoryInstanceLoaderdirectory - The directory to load the RemoteDirectory implementation from.RemoteDirectory loaded implementation.DirectoryInstantiationException - If the RemoteDirectory implementation could not be loaded.public RemoteDirectory getRawDirectory(Long id, String className, Map<String,String> attributes) throws DirectoryInstantiationException
DirectoryInstanceLoadergetRawDirectory in interface DirectoryInstanceLoaderid - Directory IDclassName - class name of directory.attributes - the configuration attributes to pass to the RemoteDirectoryDirectoryInstantiationException - if a RemoteDirectory implementation can not be loaded.public boolean canLoad(String className)
canLoad in interface DirectoryInstanceLoaderclassName - class name of directory.true iff the directory can load the directory of the specified class.@EventListener public void handleEvent(DirectoryUpdatedEvent event)
@EventListener public void handleEvent(DirectoryDeletedEvent event)
@EventListener public void handleEvent(XMLRestoreFinishedEvent event)
Copyright © 2019 Atlassian. All rights reserved.