KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hudson > remoting > DelegatingCallable


1 package hudson.remoting;
2
3 /**
4  * {@link Callable} that nominates another claassloader for serialization.
5  *
6  * <p>
7  * For various reasons, one {@link Callable} object is serialized by one classloader.
8  * Normally the classloader that loaded {@link Callable} implementation will be used,
9  * but when {@link Callable} further delegates to another classloader, that might
10  * not be suitable. Implementing this interface allows {@link Callable} to
11  * use designate classloader.
12  *
13  * @author Kohsuke Kawaguchi
14  */

15 public interface DelegatingCallable<V,T extends Throwable JavaDoc> extends Callable<V,T> {
16     ClassLoader JavaDoc getClassLoader();
17 }
18
Popular Tags