org.eclipse.emf.emfstore.internal.common
Class ESRunnableWrapperProvider

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.common.ESRunnableWrapperProvider

public final class ESRunnableWrapperProvider
extends Object

Singleton for obtaining an ESRunnableWrapper instance.

Author:
emueller

Method Summary
 Runnable embedInContext(Runnable runnable)
          Embed the given Runnable into the context of the currently registered ESRunnableWrapper if any.
static ESRunnableWrapperProvider getInstance()
          Returns the ESRunnableWrapperProvider singleton instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ESRunnableWrapperProvider getInstance()
Returns the ESRunnableWrapperProvider singleton instance.

Returns:
the ESRunnableWrapperProvider singleton

embedInContext

public Runnable embedInContext(Runnable runnable)
Embed the given Runnable into the context of the currently registered ESRunnableWrapper if any.

Parameters:
runnable - the Runnable to be embedded
Returns:
the wrapped Runnable


Copyright © 2016. All Rights Reserved.