com.atlassian.crowd.directory.loader
Class CachingDirectoryInstanceLoader
java.lang.Object
com.atlassian.crowd.directory.loader.CachingDirectoryInstanceLoader
- All Implemented Interfaces:
- DirectoryInstanceLoader
- Direct Known Subclasses:
- DelegatedAuthenticationDirectoryInstanceLoaderImpl, InternalDirectoryInstanceLoaderImpl
public abstract class CachingDirectoryInstanceLoader
- extends java.lang.Object
- implements DirectoryInstanceLoader
Implements a DirectoryInstanceLoader. Provides caching for RemoteDirectory instances.
- Since:
- v2.1
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachingDirectoryInstanceLoader
public CachingDirectoryInstanceLoader(com.atlassian.event.api.EventPublisher eventPublisher)
getDirectory
public RemoteDirectory getDirectory(Directory directory)
throws DirectoryInstantiationException
- Specified by:
getDirectory in interface DirectoryInstanceLoader
- Throws:
DirectoryInstantiationException
getEventPublisher
protected com.atlassian.event.api.EventPublisher getEventPublisher()
getNewDirectory
protected abstract RemoteDirectory getNewDirectory(Directory directory)
throws DirectoryInstantiationException
- Always returns a new instance of a RemoteDirectory.
- Parameters:
directory - directory configuration
- Returns:
- new instance of a RemoteDirectory
- Throws:
DirectoryInstantiationException - if the directory could not be instantiated.
handleEvent
@EventListener
public void handleEvent(DirectoryUpdatedEvent event)
handleEvent
@EventListener
public void handleEvent(DirectoryDeletedEvent event)
handleEvent
@EventListener
public void handleEvent(XMLRestoreFinishedEvent event)
Copyright © 2012 Atlassian. All Rights Reserved.