org.xwiki.context.internal
Class DefaultExecution

java.lang.Object
  extended by org.xwiki.context.internal.DefaultExecution
All Implemented Interfaces:
Execution

@Component
@Singleton
public class DefaultExecution
extends java.lang.Object
implements Execution

Holds the Execution Context object. Note that we require this Execution component since we want to be able to pass the Execution Context to singleton components. Thus this holder is a singleton itself and the Execution Context is saved as a ThreadLocal variable.

Since:
1.5M2
Version:
$Id$

Constructor Summary
DefaultExecution()
           
 
Method Summary
 ExecutionContext getContext()
          
 void popContext()
          
 void pushContext(ExecutionContext context)
          
 void removeContext()
          
 void setContext(ExecutionContext context)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultExecution

public DefaultExecution()
Method Detail

pushContext

public void pushContext(ExecutionContext context)

Specified by:
pushContext in interface Execution
See Also:
Execution.pushContext(ExecutionContext)

popContext

public void popContext()

Specified by:
popContext in interface Execution
See Also:
Execution.popContext()

getContext

public ExecutionContext getContext()

Specified by:
getContext in interface Execution
See Also:
Execution.getContext()

setContext

public void setContext(ExecutionContext context)

Specified by:
setContext in interface Execution
See Also:
Execution.setContext(ExecutionContext)

removeContext

public void removeContext()

Specified by:
removeContext in interface Execution
See Also:
Execution.removeContext()


Copyright © 2004-2011 XWiki. All Rights Reserved.