Restlet Framework 2.2.2
Java Standard Edition

org.restlet.engine.util
Class ContextualRunnable

java.lang.Object
  extended by org.restlet.engine.util.ContextualRunnable
All Implemented Interfaces:
Runnable

public abstract class ContextualRunnable
extends Object
implements Runnable

Runnable That allows to define the context class loader.

Author:
Jerome Louvel

Constructor Summary
ContextualRunnable()
          Constructor.
 
Method Summary
 ClassLoader getContextClassLoader()
          Returns the runnable's context class loader.
 void setContextClassLoader(ClassLoader contextClassLoader)
          Sets the runnable's context class loader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

ContextualRunnable

public ContextualRunnable()
Constructor.

Method Detail

getContextClassLoader

public ClassLoader getContextClassLoader()
Returns the runnable's context class loader.

Returns:
The runnable's context class loader.

setContextClassLoader

public void setContextClassLoader(ClassLoader contextClassLoader)
Sets the runnable's context class loader.

Parameters:
contextClassLoader - The runnable's context class loader.

Restlet Framework 2.2.2
Java Standard Edition

Copyright © 2005-2014 Restlet.