KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > services > actions > DummyAction


1 /*************************************************************************
2  * *
3  * EJBCA: The OpenSource Certificate Authority *
4  * *
5  * This software is free software; you can redistribute it and/or *
6  * modify it under the terms of the GNU Lesser General Public *
7  * License as published by the Free Software Foundation; either *
8  * version 2.1 of the License, or any later version. *
9  * *
10  * See terms of license at gnu.org. *
11  * *
12  *************************************************************************/

13 package org.ejbca.core.model.services.actions;
14
15 import org.apache.log4j.Logger;
16 import org.ejbca.core.model.services.ActionException;
17 import org.ejbca.core.model.services.ActionInfo;
18 import org.ejbca.core.model.services.BaseAction;
19
20 /**
21  * Dummy Action used for demonstration purposes and some testing
22  *
23  * Shows which methods that are necessary to implement a action
24  * @author Philip Vendil 2006 sep 27
25  *
26  * @version $Id: DummyAction.java,v 1.2 2006/10/06 07:52:51 anatom Exp $
27  */

28 public class DummyAction extends BaseAction {
29     
30     private static final Logger log = Logger.getLogger(DummyAction.class);
31
32     /**
33      * @see org.ejbca.core.model.services.IAction#performAction(org.ejbca.core.model.services.ActionInfo)
34      */

35     public void performAction(ActionInfo actionInfo) throws ActionException {
36         log.debug(">DummyAction.performAction");
37         this.properties.get("somedata");
38         // Do nothing
39
}
40
41 }
42
Popular Tags