public class RemoteCrowdDirectoryInstanceLoaderImpl extends AbstractDirectoryInstanceLoader implements RemoteCrowdDirectoryInstanceLoader
RemoteDirectory
for use at runtime
by the Crowd security server.
The AbstractDirectoryInstanceLoader.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) |
Modifier and Type | Method and Description |
---|---|
boolean |
canLoad(String className) |
RemoteCrowdDirectory |
getRawDirectory(Long id,
String className,
Map<String,String> directoryAttributes)
Loads a guaranteed un-cached directory implementation for a specific configuration.
|
getDirectory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirectory
public RemoteCrowdDirectoryInstanceLoaderImpl(InstanceFactory instanceFactory)
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.Copyright © 2016 Atlassian. All rights reserved.