Este conteúdo não está disponível no idioma selecionado.
16.10. Execution Context Class
The
ExecutionContext is a concrete class that is instantiated with the no-argument constructor:
public class ExecutionContext implements ClassLoaderFactory {
/**
* Create an instance of an execution context, with default implementations for all components.
*/
public ExecutionContext() { ... }
/**
* Get the factories that should be used to create values for {@link Property properties}.
* @return the property value factory; never null
*/
public ValueFactories getValueFactories() {...}
/**
* Get the namespace registry for this context.
* @return the namespace registry; never null
*/
public NamespaceRegistry getNamespaceRegistry() {...}
/**
* Get the factory for creating {@link Property} objects.
* @return the property factory; never null
*/
public PropertyFactory getPropertyFactory() {...}
/**
* Get the security context for this environment.
* @return the security context; never null
*/
public SecurityContext getSecurityContext() {...}
/**
* 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
* {@link Logger#getLogger(Class) obtain a system logger}.
* @param clazz the class that is doing the logging
* @return the logger, named after clazz; never null
*/
public 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
* {@link Logger#getLogger(Class) obtain a system logger}.
* @param name the name for the logger
* @return the logger, named after clazz; never null
*/
public Logger getLogger( String name ) {...}
...
}