de.lmu.ifi.pst.x10080133.util
Class AppContextProvider

java.lang.Object
  extended by de.lmu.ifi.pst.x10080133.util.AppContextProvider
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Controller
public class AppContextProvider
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware

Helper class to provide application wide access to application context Spring initializes bean automatically and calls setApplicationContext

Author:
Roman.Schwienbacher

Field Summary
private  org.apache.commons.logging.Log log
           
 
Constructor Summary
AppContextProvider()
           
 
Method Summary
 void setApplicationContext(org.springframework.context.ApplicationContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final org.apache.commons.logging.Log log
Constructor Detail

AppContextProvider

public AppContextProvider()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException