org.jboss.dna.repository.util
Interface JcrExecutionContext

All Superinterfaces:
ClassLoaderFactory, ExecutionContext
All Known Implementing Classes:
BasicJcrExecutionContext

public interface JcrExecutionContext
extends ExecutionContext

The context of an execution within a JCR environment.

Author:
Randall Hauch

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 interface org.jboss.dna.graph.ExecutionContext
getAccessControlContext, getLogger, getLogger, getLoginContext, getNamespaceRegistry, getPropertyFactory, getSubject, getValueFactories
 
Methods inherited from interface org.jboss.dna.common.component.ClassLoaderFactory
getClassLoader
 

Method Detail

getSessionFactory

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.

Returns:
the session factory

getTools

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

Returns:
the tools


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.