public class RemoteCrowdDirectoryInstanceLoaderImpl extends CachingDirectoryInstanceLoader implements RemoteCrowdDirectoryInstanceLoader
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.
Constructor and Description |
---|
RemoteCrowdDirectoryInstanceLoaderImpl(InstanceFactory instanceFactory,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
boolean |
canLoad(String className) |
protected RemoteDirectory |
getNewDirectory(Directory directory)
Always returns a new instance of a RemoteDirectory.
|
RemoteCrowdDirectory |
getRawDirectory(Long id,
String className,
Map<String,String> directoryAttributes)
Loads a guaranteed un-cached directory implementation for a specific configuration.
|
getDirectory, getEventPublisher, handleEvent, handleEvent, handleEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirectory
public RemoteCrowdDirectoryInstanceLoaderImpl(InstanceFactory instanceFactory, com.atlassian.event.api.EventPublisher eventPublisher)
public RemoteCrowdDirectory getRawDirectory(Long id, String className, Map<String,String> directoryAttributes) throws DirectoryInstantiationException
DirectoryInstanceLoader
getRawDirectory
in interface DirectoryInstanceLoader
id
- Directory IDclassName
- class name of directory.directoryAttributes
- the configuration attributes to pass to the RemoteDirectoryDirectoryInstantiationException
- if a RemoteDirectory implementation can not be loaded.public boolean canLoad(String className)
canLoad
in interface DirectoryInstanceLoader
className
- class name of directory.true
iff the directory can load the directory of the specified class.protected RemoteDirectory getNewDirectory(Directory directory) throws DirectoryInstantiationException
CachingDirectoryInstanceLoader
getNewDirectory
in class CachingDirectoryInstanceLoader
directory
- directory configurationDirectoryInstantiationException
- if the directory could not be instantiated.Copyright © 2013 Atlassian. All Rights Reserved.