public class ContextUtils extends Object implements org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
ContextUtils() |
Modifier and Type | Method and Description |
---|---|
static org.springframework.beans.factory.BeanFactory |
createBeanFactory(String classpath,
Properties properties)
Create a new BeanFactory using the main ApplicationContext as parent.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Implementation of interface ApplicationContextAware
Provides a reference to the ApplicationContext object.
|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public static org.springframework.beans.factory.BeanFactory createBeanFactory(String classpath, Properties properties)
classpath
- the path to the bean definition file in the classpathproperties
- set of properties that should be replaced in the definitionsCopyright © 2013. All Rights Reserved.