org.jboss.dna.repository.util
Class SimpleExecutionContext

java.lang.Object
  extended by org.jboss.dna.repository.util.SimpleExecutionContext
All Implemented Interfaces:
ExecutionContext

public class SimpleExecutionContext
extends java.lang.Object
implements ExecutionContext

Author:
Randall Hauch

Constructor Summary
SimpleExecutionContext(SessionFactory sessionFactory)
           
 
Method Summary
 SessionFactory getSessionFactory()
          Get the session factory, which can be used to obtain sessions temporarily for this context.
 JcrTools getTools()
          Get a set of utilities for working with JCR.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleExecutionContext

public SimpleExecutionContext(SessionFactory sessionFactory)
Method Detail

getSessionFactory

public SessionFactory getSessionFactory()
Get the session factory, which can be used to obtain sessions temporarily for this context. Any session obtained from this factory should be closed before the execution finishes.

Specified by:
getSessionFactory in interface ExecutionContext
Returns:
the session factory

getTools

public JcrTools getTools()
Get a set of utilities for working with JCR.

Specified by:
getTools in interface ExecutionContext
Returns:
the tools


Copyright © 2008. All Rights Reserved.