com.atlassian.crowd.model.directory
Class DirectoryInstanceLoaderImpl

java.lang.Object
  extended by com.atlassian.crowd.model.directory.DirectoryInstanceLoaderImpl
All Implemented Interfaces:
DirectoryInstanceLoader, org.springframework.context.ApplicationContextAware

public class DirectoryInstanceLoaderImpl
extends Object
implements DirectoryInstanceLoader, org.springframework.context.ApplicationContextAware

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(String clazzName, Map<String,String> directoryAttributes, Long id)
          Loads the RemoteDirectory implementation class for a specific OldDirectory configuration.
 RemoteDirectory getRawDirectory(Directory directory)
          Gets a guaranteed UNCACHED directory implementation.
 RemoteDirectory getRawDirectory(String className, Map directoryAttributes, Long id)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 
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(String clazzName,
                                    Map<String,String> directoryAttributes,
                                    Long id)
                             throws DirectoryInstantiationException
Description copied from interface: DirectoryInstanceLoader
Loads the RemoteDirectory implementation class for a specific OldDirectory 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(String className,
                                       Map directoryAttributes,
                                       Long id)
                                throws DirectoryInstantiationException
Throws:
DirectoryInstantiationException

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.