replace Callback with Callable/Pausable
[org.ibex.util.git] / src / org / ibex / util / Callable.java
1 // Copyright 2000-2005 the Contributors, as shown in the revision logs.
2 // Licensed under the Apache Public Source License 2.0 ("the License").
3 // You may not use this file except in compliance with the License.
4
5 package org.ibex.util;
6
7 /** Provides a generic interface with which to call an object with a
8  *  given argument.
9  *
10  * <b>NOTE:</b> State restrictions and concurrent access are implementation
11  * specific. All the <tt>Callable</tt> interface specifies is that an
12  * object is callable, not the conditions under which a call may be
13  * made.
14  *
15  * @see org.ibex.util.Pausable
16  *
17  */
18 public interface Callable {
19     /** Calls the object with a given argument. */
20     public Object run(Object o) throws Exception;
21 }