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 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 the ApplicationContext that will be used by the SpringContainer
      Specified by:
      getApplicationContext in interface ApplicationContextProvider
      Parameters:
      parent - the parent context