📄 loginaction.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 + -