Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jbehave.core.steps.spring
Class SpringApplicationContextFactory

    java.lang.Object
      org.jbehave.core.steps.spring.SpringApplicationContextFactory

    public class SpringApplicationContextFactory

extends Object

Factory for Spring `ApplicationContext` using the specified resources. The resources can be expressed as:

1. Annotated class names
2. XML location paths

The context will be an instance of `AnnotationConfigApplicationContext`, if the resources are annotated class names, or `GenericApplicationContext` otherwise.

Constructor Summary
`SpringApplicationContextFactory(org.springframework.context.ApplicationContext parent, ClassLoader classLoader, String... resources)`
`SpringApplicationContextFactory(ClassLoader classLoader, String... resources)`
`SpringApplicationContextFactory(String... resources)`

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`

Constructor Detail

### SpringApplicationContextFactory

    public SpringApplicationContextFactory(String... resources)

### SpringApplicationContextFactory

    public SpringApplicationContextFactory(ClassLoader classLoader,
                                           String... resources)

### SpringApplicationContextFactory

    public SpringApplicationContextFactory(org.springframework.context.ApplicationContext parent,
                                           ClassLoader classLoader,
                                           String... resources)

Method Detail

### 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2013. All Rights Reserved.