KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ejbca > core > model > services > intervals > DummyInterval


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.intervals;
14
15 import org.apache.log4j.Logger;
16 import org.ejbca.core.model.services.BaseInterval;
17 import org.ejbca.core.model.services.IInterval;
18
19 /**
20  * Dummy class used for demonstration and test puporses
21  * Only implement one method
22  * @author Philip Vendil 2006 sep 27
23  *
24  * @version $Id: DummyInterval.java,v 1.2 2006/10/06 07:52:51 anatom Exp $
25  */

26 public class DummyInterval extends BaseInterval {
27
28     private static final Logger log = Logger.getLogger(DummyInterval.class);
29     /**
30      * @see org.ejbca.core.model.services.IInterval#getTimeToExecution()
31      */

32     public long getTimeToExecution() {
33         log.debug(">DummyInterval.performAction");
34         return IInterval.DONT_EXECUTE;
35     }
36
37 }
38
Popular Tags