eXo Kernel :: Container Extension :: Spring Implementation 2.5.0-CR2

org.exoplatform.container.spring
Class FileSystemXmlApplicationContextProvider

java.lang.Object
  extended by org.exoplatform.container.spring.FileSystemXmlApplicationContextProvider
All Implemented Interfaces:
ApplicationContextProvider

public class FileSystemXmlApplicationContextProvider
extends Object
implements ApplicationContextProvider

This is the implementation of the ApplicationContextProvider based on the FileSystemXmlApplicationContext allowing to configure Spring thanks to XML files. It can be configured using a values-param, each value will be the path of the XML files to be registered. Please note that the expected paths will be retrieved thanks to the ConfigurationManager which means that all the prefixes supported by the kernel are supported by this component such as jar: and classpath:

Version:
$Id$
Author:
Nicolas Filotto

Constructor Summary
FileSystemXmlApplicationContextProvider(InitParams p, ConfigurationManager cm)
          The default constructor
 
Method Summary
 org.springframework.context.ApplicationContext getApplicationContext(org.springframework.context.ApplicationContext parent)
          Gives the ApplicationContext that will be used by the SpringContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemXmlApplicationContextProvider

public FileSystemXmlApplicationContextProvider(InitParams p,
                                               ConfigurationManager cm)
The default constructor

Parameters:
p - the initial parameters
cm - the configuration manager
Method Detail

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

eXo Kernel :: Container Extension :: Spring Implementation 2.5.0-CR2

Copyright © 2014 eXo Platform SAS. All Rights Reserved.