globespringcontext.java
来自「spring的配置和使用,没有杂合其他框架,一目了然」· Java 代码 · 共 32 行
JAVA
32 行
package com.framework.service;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
/*
* Created on 2004-11-19
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: Hygrand</p>
*/
/**
* @author gongy
* @version $Id: GlobeSpringContext.java,v 1.1 2007/01/12 03:25:16 xdju Exp $
*/
public class GlobeSpringContext implements ApplicationContextAware
{
private static ApplicationContext ac;
/* (non-Javadoc)
* @see org.springframework.context.ApplicationContextAware#setApplicationContext(org.springframework.context.ApplicationContext)
*/
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
{
ac=applicationContext;
}
public static ApplicationContext getApplicationContext()
{
return ac;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?