/*
 * Copyright (C) 2006-2008  exedio GmbH (www.exedio.com)
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

package com.exedio.cronjob.example;

import java.util.Arrays;
import java.util.List;

import javax.servlet.ServletConfig;

import com.exedio.cronjob.CronjobStore;
import com.exedio.cronjob.Job;

public final class ExampleStore2 implements CronjobStore
{
	/**
	 * @param config is used by other subclasses for initialization
	 */
	public ExampleStore2(final ServletConfig config)
	{
		System.out.println("ExampleStore2 constructor >" + config.getServletName() + '<');
	}

	public List<? extends Job> getJobs()
	{
		System.out.println("ExampleStore2.getJobs");
		return Arrays.asList(new NormalJob(10));
	}

	public long getInitialDelayInMilliSeconds()
	{
		System.out.println("ExampleStore2.getInitialDelayInMilliSeconds");
		return 1000;
	}
}

@@ -1352,24 +1352,98 @@
 .getJobs%22);%0A
+%09%09final NormalJob job = new NormalJob(10);%0A%09%09job.activeInitially = false;%0A
 %09%09return Arr
@@ -1453,33 +1453,19 @@
 .asList(
-new NormalJob(10)
+job
 );%0A%09%7D%0A%0A%09

disable job