Package org.exoplatform.container.spring
Class AnnotationConfigApplicationContextProvider
java.lang.Object
org.exoplatform.container.spring.AnnotationConfigApplicationContextProvider
- All Implemented Interfaces:
ApplicationContextProvider
public class AnnotationConfigApplicationContextProvider
extends Object
implements ApplicationContextProvider
This is the implementation of the
ApplicationContextProvider based on the
AnnotationConfigApplicationContext allowing to configure Spring programmatically.
It can be configured using a values-param, each value will be the FQN of the configuration class
to be registered.- Version:
- $Id$
- Author:
- Nicolas Filotto
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationConfigApplicationContextProvider(org.exoplatform.container.xml.InitParams p) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ApplicationContextgetApplicationContext(org.springframework.context.ApplicationContext parent) Gives theApplicationContextthat will be used by theSpringContainer
-
Constructor Details
-
AnnotationConfigApplicationContextProvider
public AnnotationConfigApplicationContextProvider(org.exoplatform.container.xml.InitParams p) The default constructor- Parameters:
p- the initial parameters
-
-
Method Details
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext(org.springframework.context.ApplicationContext parent) Gives theApplicationContextthat will be used by theSpringContainer- Specified by:
getApplicationContextin interfaceApplicationContextProvider- Parameters:
parent- the parent context
-