com.atlassian.user.configuration
Class DefaultRepositoryProcessor

java.lang.Object
  extended bycom.atlassian.user.configuration.DefaultRepositoryProcessor
All Implemented Interfaces:
RepositoryProcessor
Direct Known Subclasses:
HibernateRepositoryProcessor, LdapRepositoryProcessor, MemoryRepositoryProcessor, OSURepositoryProcessor

public class DefaultRepositoryProcessor
extends java.lang.Object
implements RepositoryProcessor


Field Summary
protected  org.apache.log4j.Logger log
           
 
Constructor Summary
DefaultRepositoryProcessor()
           
 
Method Summary
protected  java.lang.Object createBean(java.lang.String componentName, RepositoryConfiguration config)
           
protected  java.lang.Object createBean(java.lang.String componentName, RepositoryConfiguration config, boolean useConstructorInjection)
           
protected  org.springframework.beans.factory.support.DefaultListableBeanFactory createComponentContext(RepositoryConfiguration config)
          Create a Spring bean factory containing the components in the provided map.
protected  java.lang.Class getClassForName(java.lang.String className)
          Gets the specified class using ClassLoaderUtils.loadClass(String,Class).
 RepositoryAccessor process(RepositoryConfiguration config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.apache.log4j.Logger log
Constructor Detail

DefaultRepositoryProcessor

public DefaultRepositoryProcessor()
Method Detail

process

public RepositoryAccessor process(RepositoryConfiguration config)
                           throws ConfigurationException
Specified by:
process in interface RepositoryProcessor
Throws:
ConfigurationException

createBean

protected java.lang.Object createBean(java.lang.String componentName,
                                      RepositoryConfiguration config)

createBean

protected java.lang.Object createBean(java.lang.String componentName,
                                      RepositoryConfiguration config,
                                      boolean useConstructorInjection)

getClassForName

protected java.lang.Class getClassForName(java.lang.String className)
Gets the specified class using ClassLoaderUtils.loadClass(String,Class).

Parameters:
className - the fully qualified name of the class to retrieve
Throws:
java.lang.RuntimeException - if the class cannot be found.

createComponentContext

protected org.springframework.beans.factory.support.DefaultListableBeanFactory createComponentContext(RepositoryConfiguration config)
Create a Spring bean factory containing the components in the provided map.

Returns:
the bean factory containing the components.


Copyright © 2005-2008 Atlassian Software Systems Pty Ltd. All Rights Reserved.