⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 globespringcontext.java

📁 spring的配置和使用,没有杂合其他框架,一目了然
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -