com.atlassian.crowd.model.directory
Class DirectoryInstanceLoaderImpl

java.lang.Object
  extended by com.atlassian.crowd.model.directory.DirectoryInstanceLoaderImpl
All Implemented Interfaces:
DirectoryInstanceLoader

public class DirectoryInstanceLoaderImpl
extends java.lang.Object
implements DirectoryInstanceLoader

Loads an implementation of a RemoteDirectory for use at runtime by the Crowd security server.


Constructor Summary
DirectoryInstanceLoaderImpl(DirectoryCacheManager directoryCacheManager, DirectoryMonitorManager directoryMonitorManager)
           
 
Method Summary
 RemoteDirectory getDirectory(Directory directory)
          Loads the implementation class for a specific Directory.
 RemoteDirectory getDirectory(java.lang.String clazzName, java.util.Map directoryAttributes, java.lang.Long id)
          Loads the RemoteDirectory implementation class for a specific Directory configuration.
 RemoteDirectory getRawDirectory(Directory directory)
          Gets a guaranteed UNCACHED directory implementation.
 RemoteDirectory getRawDirectory(java.lang.String className, java.util.Map directoryAttributes, java.lang.Long id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryInstanceLoaderImpl

public DirectoryInstanceLoaderImpl(DirectoryCacheManager directoryCacheManager,
                                   DirectoryMonitorManager directoryMonitorManager)
Method Detail

getDirectory

public RemoteDirectory getDirectory(Directory directory)
                             throws DirectoryInstantiationException
Loads the implementation class for a specific Directory.

Specified by:
getDirectory in interface DirectoryInstanceLoader
Parameters:
directory - The directory to load the RemoteDirectory implementation.
Returns:
The loaded implementation.
Throws:
DirectoryInstantiationException - If the RemoteDirectory implementation could not be loaded.

getDirectory

public RemoteDirectory getDirectory(java.lang.String clazzName,
                                    java.util.Map directoryAttributes,
                                    java.lang.Long id)
                             throws DirectoryInstantiationException
Description copied from interface: DirectoryInstanceLoader
Loads the RemoteDirectory implementation class for a specific Directory configuration.

Specified by:
getDirectory in interface DirectoryInstanceLoader
Parameters:
clazzName - the name of the RemoteDirectory class to load
directoryAttributes - the configuration attributes to pass to the RemoteDirectory
id - the id of the directory
Returns:
The RemoteDirectory loaded implementation.
Throws:
DirectoryInstantiationException - If the RemoteDirectory implementation could not be loaded.

getRawDirectory

public RemoteDirectory getRawDirectory(Directory directory)
                                throws DirectoryInstantiationException
Description copied from interface: DirectoryInstanceLoader
Gets a guaranteed UNCACHED directory implementation.

Specified by:
getRawDirectory in interface DirectoryInstanceLoader
Returns:
Throws:
DirectoryInstantiationException

getRawDirectory

public RemoteDirectory getRawDirectory(java.lang.String className,
                                       java.util.Map directoryAttributes,
                                       java.lang.Long id)
                                throws DirectoryInstantiationException
Throws:
DirectoryInstantiationException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.