01: /*
02: * $Id: ICode.java 458456 2006-01-02 07:37:31Z jonl $ $Revision: 458456 $
03: * $Date: 2006-01-02 08:37:31 +0100 (Mon, 02 Jan 2006) $
04: *
05: * ==============================================================================
06: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
07: * use this file except in compliance with the License. You may obtain a copy of
08: * the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15: * License for the specific language governing permissions and limitations under
16: * the License.
17: */
18: package wicket.util.thread;
19:
20: import org.apache.commons.logging.Log;
21:
22: /**
23: * Interface to an arbitrary piece of code that runs and can do logging.
24: *
25: * @author Jonathan Locke
26: */
27: public interface ICode {
28: /**
29: * Override this method to provide the code to run as a task
30: *
31: * @param log
32: * The log that will be used by the code.
33: */
34: void run(Log log);
35: }
|