eventhandler.java
来自「CAS在Tomcat中实现单点登录项目,单点登录(Single Sign On 」· Java 代码 · 共 39 行
JAVA
39 行
/* * Copyright 2007 The JA-SIG Collaborative. All rights reserved. See license * distributed with this file and available online at * http://www.ja-sig.org/products/cas/overview/license/ */package org.jasig.cas.event;import org.springframework.context.ApplicationEvent;/** * Interface of classes that know how to handle a specific event. The concept of * handling an event usually implies that the handler will perform some form of * logging such as using Log4j or writing the information to a database. * * @author Scott Battaglia * @version $Revision: 42053 $ $Date: 2007-06-10 09:17:55 -0400 (Sun, 10 Jun 2007) $ * @since 3.0 * <p> * This is a published and supported CAS Server 3 API. * </p> */public interface EventHandler { /** * Method to handle any processing of the event that is needed. * * @param event the event to handle. */ void handleEvent(ApplicationEvent event); /** * Method to check if this handler will be able to process the event. * * @param event the event we want to check if we support. * @return true if the event is supported, false otherwise. */ boolean supports(ApplicationEvent event);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?