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

📄 loginaction.java

📁 一个关于Spring框架的示例应用程序,简单使用,可以参考.
💻 JAVA
字号:
/*
 * $Workfile: LoginAction.java$ Copyright (c) 2005 Freeborders. All rights
 * reserved. Last Changed by: $Author:user$ On: $Date: 2005-6-6 15:22:19$
 * $Revision: 1$
 */
package base;

import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * Class description goes here.
 * 
 * @version 1.0 2005-6-6
 * @author user
 */
public class LoginAction implements ApplicationContextAware
{
	private ApplicationContext applicationContext;

	public void setApplicationContext(ApplicationContext applicationContext)
		throws BeansException
	{
		this.applicationContext = applicationContext;
	}

	public int login(String username, String password)
	{
		ActionEvent event = new ActionEvent(username);
		this.applicationContext.publishEvent(event);
		return 0;
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -