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(org.springframework.context.ApplicationContext parent,
ClassLoader classLoader,
String... resources) |
SpringApplicationContextFactory(ClassLoader classLoader,
String... resources) |
SpringApplicationContextFactory(String... resources) |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ConfigurableApplicationContext |
createApplicationContext()
Creates a configurable application context from the resources provided.
|
public SpringApplicationContextFactory(String... resources)
public SpringApplicationContextFactory(ClassLoader classLoader, String... resources)
public SpringApplicationContextFactory(org.springframework.context.ApplicationContext parent, ClassLoader classLoader, String... resources)
public org.springframework.context.ConfigurableApplicationContext createApplicationContext()
AnnotationConfigApplicationContext
, if the resources are
annotated class names, or GenericApplicationContext
otherwise.Copyright © 2003-2014. All Rights Reserved.