org.rosenvold.spring.convention
Class ConventionContextLoader
java.lang.Object
org.springframework.test.context.support.AbstractContextLoader
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
| 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 |
candidateEvaluator
public Class<? extends CandidateEvaluator> candidateEvaluator
nameToClassResolver
public Class<? extends NameToClassResolver> nameToClassResolver
ConventionContextLoader
public ConventionContextLoader()
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.