Este contenido no está disponible en el idioma seleccionado.
16.11. Create an Execution Context
As mentioned above, the starting point is to create a default execution context, which will have all the default components:
ExecutionContext context = new ExecutionContext();
ExecutionContext context = new ExecutionContext();
Once you have this top-level context, you can start creating subcontexts with different components, and different security contexts. (Of course, you can create a subcontext from any
ExecutionContext
instance.) To create a subcontext, use one of the with(...)
methods on the parent context. We'll show examples later on in this chapter.