public class SpringApplicationContextFactory extends Object
ApplicationContext
using the specified resources.
The resources can be expressed as:
AnnotationConfigApplicationContext
,
if the resources are annotated class names, or
GenericApplicationContext
otherwise.Constructor and Description |
---|
SpringApplicationContextFactory(ApplicationContext parent,
ClassLoader classLoader,
String... resources) |
SpringApplicationContextFactory(ClassLoader classLoader,
String... resources) |
SpringApplicationContextFactory(String... resources) |
Modifier and Type | Method and Description |
---|---|
ConfigurableApplicationContext |
createApplicationContext()
Creates a configurable application context from the resources provided.
|
public SpringApplicationContextFactory(String... resources)
public SpringApplicationContextFactory(ClassLoader classLoader, String... resources)
public SpringApplicationContextFactory(ApplicationContext parent, ClassLoader classLoader, String... resources)
public ConfigurableApplicationContext createApplicationContext()
AnnotationConfigApplicationContext
, if the resources are
annotated class names, or GenericApplicationContext
otherwise.Copyright © 2003–2015. All rights reserved.