org.jboss.dna.graph
Interface ExecutionContext

All Superinterfaces:
ClassLoaderFactory
All Known Subinterfaces:
JcrExecutionContext, SequencerContext
All Known Implementing Classes:
BasicExecutionContext, BasicJcrExecutionContext, SequencerNodeContext

public interface ExecutionContext
extends ClassLoaderFactory

An ExecutionContext is a representation of the environment or context in which a component or operation is operating. Some components require this context to be passed into individual methods, allowing the context to vary with each method invocation. Other components require the context to be provided before it's used, and will use that context for all its operations (until it is given a different one).

Author:
Randall Hauch, John Verhaeg
See Also:
ExecutionContextFactory

Method Summary
 AccessControlContext getAccessControlContext()
           
 Logger getLogger(Class<?> clazz)
          Return a logger associated with this context.
 Logger getLogger(String name)
          Return a logger associated with this context.
 LoginContext getLoginContext()
           
 NamespaceRegistry getNamespaceRegistry()
          Get the namespace registry for this context.
 PropertyFactory getPropertyFactory()
          Get the factory for creating Property objects.
 Subject getSubject()
          Get the JAAS subject for which this context was created.
 ValueFactories getValueFactories()
          Get the factories that should be used to create values for properties.
 
Methods inherited from interface org.jboss.dna.common.component.ClassLoaderFactory
getClassLoader
 

Method Detail

getAccessControlContext

AccessControlContext getAccessControlContext()
Returns:
the access control context; may be null

getLogger

Logger getLogger(Class<?> clazz)
Return a logger associated with this context. This logger records only those activities within the context and provide a way to capture the context-specific activities. All log messages are also sent to the system logger, so classes that log via this mechanism should not also obtain a system logger.

Parameters:
clazz - the class that is doing the logging
Returns:
the logger, named after clazz; never null
See Also:
getLogger(String)

getLogger

Logger getLogger(String name)
Return a logger associated with this context. This logger records only those activities within the context and provide a way to capture the context-specific activities. All log messages are also sent to the system logger, so classes that log via this mechanism should not also obtain a system logger.

Parameters:
name - the name for the logger
Returns:
the logger, named after clazz; never null
See Also:
getLogger(Class)

getLoginContext

LoginContext getLoginContext()
Returns:
the login context; may be null

getNamespaceRegistry

NamespaceRegistry getNamespaceRegistry()
Get the namespace registry for this context.

Returns:
the namespace registry; never null

getPropertyFactory

PropertyFactory getPropertyFactory()
Get the factory for creating Property objects.

Returns:
the property factory; never null

getSubject

Subject getSubject()
Get the JAAS subject for which this context was created.

Returns:
the subject; never null

getValueFactories

ValueFactories getValueFactories()
Get the factories that should be used to create values for properties.

Returns:
the property value factory; never null


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