com.atlassian.crowd.directory.loader
Class RemoteCrowdDirectoryInstanceLoaderImpl
java.lang.Object
com.atlassian.crowd.directory.loader.CachingDirectoryInstanceLoader
com.atlassian.crowd.directory.loader.RemoteCrowdDirectoryInstanceLoaderImpl
- All Implemented Interfaces:
- DirectoryInstanceLoader, RemoteCrowdDirectoryInstanceLoader
public class RemoteCrowdDirectoryInstanceLoaderImpl
- extends CachingDirectoryInstanceLoader
- implements RemoteCrowdDirectoryInstanceLoader
Loads an implementation of a RemoteDirectory for use at runtime
by the Crowd security server.
The CachingDirectoryInstanceLoader.getDirectory(com.atlassian.crowd.embedded.api.Directory) method caches instances of RemoteDirectory as
allowed in the spec of the interface, but getRawDirectory(Long, String, java.util.Map) returns a new instance
every time as required.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteCrowdDirectoryInstanceLoaderImpl
public RemoteCrowdDirectoryInstanceLoaderImpl(InstanceFactory instanceFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
getRawDirectory
public RemoteCrowdDirectory getRawDirectory(Long id,
String className,
Map<String,String> directoryAttributes)
throws DirectoryInstantiationException
- Specified by:
getRawDirectory in interface DirectoryInstanceLoader
- Throws:
DirectoryInstantiationException
canLoad
public boolean canLoad(String className)
- Specified by:
canLoad in interface DirectoryInstanceLoader
getNewDirectory
protected RemoteDirectory getNewDirectory(com.atlassian.crowd.embedded.api.Directory directory)
throws DirectoryInstantiationException
- Specified by:
getNewDirectory in class CachingDirectoryInstanceLoader
- Throws:
DirectoryInstantiationException
Copyright © 2014 Atlassian. All Rights Reserved.