org.jbehave.core.steps.spring
Class SpringApplicationContextFactory
java.lang.Object
org.jbehave.core.steps.spring.SpringApplicationContextFactory
public class SpringApplicationContextFactory
- extends java.lang.Object
Factory for Spring ApplicationContext using the specified resources.
The resources can be expressed as:
- Annotated class names
- XML location paths
The context will be an instance of AnnotationConfigApplicationContext,
if the resources are annotated class names, or
GenericApplicationContext otherwise.
|
Method Summary |
org.springframework.context.ConfigurableApplicationContext |
createApplicationContext()
Creates a configurable application context from the resources provided. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringApplicationContextFactory
public SpringApplicationContextFactory(java.lang.String... resources)
SpringApplicationContextFactory
public SpringApplicationContextFactory(java.lang.ClassLoader classLoader,
java.lang.String... resources)
SpringApplicationContextFactory
public SpringApplicationContextFactory(org.springframework.context.ApplicationContext parent,
java.lang.ClassLoader classLoader,
java.lang.String... resources)
createApplicationContext
public org.springframework.context.ConfigurableApplicationContext createApplicationContext()
- Creates a configurable application context from the resources provided.
The context will be an instance of
AnnotationConfigApplicationContext, if the resources are
annotated class names, or GenericApplicationContext otherwise.
- Returns:
- A ConfigurableApplicationContext
Copyright © 2003-2012. All Rights Reserved.