org.jboss.dna.repository.sequencers
Class SequencingService.Context

java.lang.Object
  extended by org.jboss.dna.repository.sequencers.SequencingService.Context
All Implemented Interfaces:
org.jboss.dna.common.component.ClassLoaderFactory, org.jboss.dna.graph.ExecutionContext, JcrExecutionContext
Enclosing class:
SequencingService

protected class SequencingService.Context
extends Object
implements JcrExecutionContext


Field Summary
protected  AtomicBoolean closed
           
protected  JcrExecutionContext delegate
           
protected  SessionFactory factory
           
 
Constructor Summary
protected SequencingService.Context(JcrExecutionContext context)
           
 
Method Summary
 void close()
           
 AccessControlContext getAccessControlContext()
          
 ClassLoader getClassLoader(String... classpath)
          
 org.jboss.dna.common.util.Logger getLogger(Class<?> clazz)
          
 org.jboss.dna.common.util.Logger getLogger(String name)
          
 LoginContext getLoginContext()
          
 org.jboss.dna.graph.properties.NamespaceRegistry getNamespaceRegistry()
          
 org.jboss.dna.graph.properties.PropertyFactory getPropertyFactory()
          
 SessionFactory getSessionFactory()
          Get the session factory, which can be used to obtain sessions temporarily for this context.
 Subject getSubject()
          
 JcrTools getTools()
          Get a set of utilities for working with JCR.
 org.jboss.dna.graph.properties.ValueFactories getValueFactories()
          
protected  void recordSession(javax.jcr.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delegate

protected final JcrExecutionContext delegate

factory

protected final SessionFactory factory

closed

protected final AtomicBoolean closed
Constructor Detail

SequencingService.Context

protected SequencingService.Context(JcrExecutionContext context)
Method Detail

close

public void close()

getClassLoader

public ClassLoader getClassLoader(String... classpath)

Specified by:
getClassLoader in interface org.jboss.dna.common.component.ClassLoaderFactory
See Also:
ClassLoaderFactory.getClassLoader(java.lang.String[])

getAccessControlContext

public AccessControlContext getAccessControlContext()

Specified by:
getAccessControlContext in interface org.jboss.dna.graph.ExecutionContext
See Also:
ExecutionContext.getAccessControlContext()

getLoginContext

public LoginContext getLoginContext()

Specified by:
getLoginContext in interface org.jboss.dna.graph.ExecutionContext
See Also:
ExecutionContext.getLoginContext()

getNamespaceRegistry

public org.jboss.dna.graph.properties.NamespaceRegistry getNamespaceRegistry()

Specified by:
getNamespaceRegistry in interface org.jboss.dna.graph.ExecutionContext

getPropertyFactory

public org.jboss.dna.graph.properties.PropertyFactory getPropertyFactory()

Specified by:
getPropertyFactory in interface org.jboss.dna.graph.ExecutionContext

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 JcrExecutionContext
Returns:
the session factory

getSubject

public Subject getSubject()

Specified by:
getSubject in interface org.jboss.dna.graph.ExecutionContext
See Also:
ExecutionContext.getSubject()

getTools

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

Specified by:
getTools in interface JcrExecutionContext
Returns:
the tools

getValueFactories

public org.jboss.dna.graph.properties.ValueFactories getValueFactories()

Specified by:
getValueFactories in interface org.jboss.dna.graph.ExecutionContext

getLogger

public org.jboss.dna.common.util.Logger getLogger(Class<?> clazz)

Specified by:
getLogger in interface org.jboss.dna.graph.ExecutionContext
See Also:
ExecutionContext.getLogger(java.lang.Class)

getLogger

public org.jboss.dna.common.util.Logger getLogger(String name)

Specified by:
getLogger in interface org.jboss.dna.graph.ExecutionContext
See Also:
ExecutionContext.getLogger(java.lang.String)

recordSession

protected void recordSession(javax.jcr.Session session)


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