public class InternalDirectoryInstanceLoaderImpl extends AbstractDirectoryInstanceLoader implements InternalDirectoryInstanceLoader
RemoteDirectory for use at runtime
by the Crowd security server.
The 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.
This class listens for update events on EventPublisher to know when to refresh the cache.
This loads both AbstractInternalDirectory and
DelegatedAuthenticationDirectory instances.
| Constructor and Description |
|---|
InternalDirectoryInstanceLoaderImpl(InstanceFactory instanceFactory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLoad(String className) |
InternalRemoteDirectory |
getDirectory(Directory directory) |
InternalRemoteDirectory |
getRawDirectory(Long id,
String className,
Map<String,String> directoryAttributes) |
public InternalDirectoryInstanceLoaderImpl(InstanceFactory instanceFactory)
public InternalRemoteDirectory getRawDirectory(Long id, String className, Map<String,String> directoryAttributes) throws DirectoryInstantiationException
getRawDirectory in interface DirectoryInstanceLoadergetRawDirectory in interface InternalDirectoryInstanceLoaderDirectoryInstantiationExceptionpublic boolean canLoad(String className)
canLoad in interface DirectoryInstanceLoaderpublic InternalRemoteDirectory getDirectory(Directory directory) throws DirectoryInstantiationException
getDirectory in interface DirectoryInstanceLoadergetDirectory in interface InternalDirectoryInstanceLoadergetDirectory in class AbstractDirectoryInstanceLoaderDirectoryInstantiationExceptionCopyright © 2018 Atlassian. All rights reserved.