org.rosenvold.spring.convention
Class ConventionContextLoader

java.lang.Object
  extended by org.springframework.test.context.support.AbstractContextLoader
      extended by org.rosenvold.spring.convention.ConventionContextLoader
All Implemented Interfaces:
org.springframework.test.context.ContextLoader

public class ConventionContextLoader
extends org.springframework.test.context.support.AbstractContextLoader

Author:
Kristian Rosenvold

Field Summary
 Class<? extends CandidateEvaluator> candidateEvaluator
           
 Class<? extends NameToClassResolver> nameToClassResolver
           
 
Constructor Summary
ConventionContextLoader()
           
 
Method Summary
protected  org.springframework.beans.factory.support.BeanDefinitionReader createBeanDefinitionReader(org.springframework.context.support.GenericApplicationContext context)
           
protected  void customizeBeanFactory(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory)
           
protected  void customizeContext(org.springframework.context.support.GenericApplicationContext context)
           
protected  String getResourceSuffix()
           
 org.springframework.context.ConfigurableApplicationContext loadContext(String... locations)
           
protected  String[] modifyLocations(Class<?> clazz, String... locations)
           
protected  void prepareContext(org.springframework.context.support.GenericApplicationContext context)
           
 
Methods inherited from class org.springframework.test.context.support.AbstractContextLoader
generateDefaultLocations, isGenerateDefaultLocations, processLocations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

candidateEvaluator

public Class<? extends CandidateEvaluator> candidateEvaluator

nameToClassResolver

public Class<? extends NameToClassResolver> nameToClassResolver
Constructor Detail

ConventionContextLoader

public ConventionContextLoader()
Method Detail

getResourceSuffix

protected String getResourceSuffix()
Specified by:
getResourceSuffix in class org.springframework.test.context.support.AbstractContextLoader

modifyLocations

protected String[] modifyLocations(Class<?> clazz,
                                   String... locations)
Overrides:
modifyLocations in class org.springframework.test.context.support.AbstractContextLoader

loadContext

public final org.springframework.context.ConfigurableApplicationContext loadContext(String... locations)
                                                                             throws Exception
Throws:
Exception

prepareContext

protected void prepareContext(org.springframework.context.support.GenericApplicationContext context)

customizeBeanFactory

protected void customizeBeanFactory(org.springframework.beans.factory.support.DefaultListableBeanFactory beanFactory)

createBeanDefinitionReader

protected org.springframework.beans.factory.support.BeanDefinitionReader createBeanDefinitionReader(org.springframework.context.support.GenericApplicationContext context)

customizeContext

protected void customizeContext(org.springframework.context.support.GenericApplicationContext context)


Copyright © 2011. All Rights Reserved.