org.jboss.dna.graph
Class ExecutionContexts.DelegatingExecutionEnvironment

java.lang.Object
  extended by org.jboss.dna.graph.ExecutionContexts.DelegatingExecutionEnvironment
All Implemented Interfaces:
org.jboss.dna.common.component.ClassLoaderFactory, ExecutionContext
Enclosing class:
ExecutionContexts

protected static class ExecutionContexts.DelegatingExecutionEnvironment
extends Object
implements ExecutionContext


Constructor Summary
ExecutionContexts.DelegatingExecutionEnvironment(ExecutionContext delegate, NamespaceRegistry newRegistry, PropertyFactory newPropertyFactory, NameFactory newNameFactory, PathFactory newPathFactory)
           
ExecutionContexts.DelegatingExecutionEnvironment(ExecutionContext delegate, NamespaceRegistry newRegistry, PropertyFactory newPropertyFactory, ValueFactories newValueFactories)
           
 
Method Summary
 AccessControlContext getAccessControlContext()
          
 ClassLoader getClassLoader(String... classpath)
          
protected  ExecutionContext getDelegate()
           
 org.jboss.dna.common.util.Logger getLogger(Class<?> clazz)
          Return a logger associated with this context.
 org.jboss.dna.common.util.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionContexts.DelegatingExecutionEnvironment

public ExecutionContexts.DelegatingExecutionEnvironment(ExecutionContext delegate,
                                                        NamespaceRegistry newRegistry,
                                                        PropertyFactory newPropertyFactory,
                                                        ValueFactories newValueFactories)

ExecutionContexts.DelegatingExecutionEnvironment

public ExecutionContexts.DelegatingExecutionEnvironment(ExecutionContext delegate,
                                                        NamespaceRegistry newRegistry,
                                                        PropertyFactory newPropertyFactory,
                                                        NameFactory newNameFactory,
                                                        PathFactory newPathFactory)
Method Detail

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 ExecutionContext
Returns:
the access control context; may be null
See Also:
ExecutionContext.getAccessControlContext()

getLoginContext

public LoginContext getLoginContext()

Specified by:
getLoginContext in interface ExecutionContext
Returns:
the login context; may be null
See Also:
ExecutionContext.getLoginContext()

getNamespaceRegistry

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

Specified by:
getNamespaceRegistry in interface ExecutionContext
Returns:
the namespace registry; never null
See Also:
ExecutionContext.getNamespaceRegistry()

getPropertyFactory

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

Specified by:
getPropertyFactory in interface ExecutionContext
Returns:
the property factory; never null
See Also:
ExecutionContext.getPropertyFactory()

getValueFactories

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

Specified by:
getValueFactories in interface ExecutionContext
Returns:
the property value factory; never null
See Also:
ExecutionContext.getValueFactories()

getSubject

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

Specified by:
getSubject in interface ExecutionContext
Returns:
the subject; never null
See Also:
ExecutionContext.getSubject()

getLogger

public org.jboss.dna.common.util.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.

Specified by:
getLogger in interface ExecutionContext
Parameters:
clazz - the class that is doing the logging
Returns:
the logger, named after clazz; never null
See Also:
ExecutionContext.getLogger(java.lang.Class)

getLogger

public org.jboss.dna.common.util.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.

Specified by:
getLogger in interface ExecutionContext
Parameters:
name - the name for the logger
Returns:
the logger, named after clazz; never null
See Also:
ExecutionContext.getLogger(java.lang.String)

getDelegate

protected ExecutionContext getDelegate()
Returns:
delegate


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