View Javadoc

1   package de.matthias_burbach.mosaique.core.model;
2   
3   /***
4    * To support multiple trees of file item trees in parallel and still allow for
5    * caching, this context was introduced to push caches down from
6    * VM global scope to clusters of objects that share caches of the services
7    * accessible from this context.
8    *
9    * @author Matthias Burbach
10   */
11  public class Context {
12      /***
13       * The shared definition resolver of this context.
14       */
15      private DefinitionResolver definitionResolver;
16  
17      /***
18       * The shared JSP resolver of this context.
19       */
20      private JspResolver jspResolver;
21  
22      /***
23       * @return The shared definition resolver of this context.
24       */
25      public DefinitionResolver getDefinitionResolver() {
26          return definitionResolver;
27      }
28  
29      /***
30       * @param definitionResolver The shared definition resolver of this context.
31       */
32      public void setDefinitionResolver(
33              final DefinitionResolver definitionResolver) {
34          this.definitionResolver = definitionResolver;
35      }
36  
37      /***
38       * @return The shared JSP resolver of this context.
39       */
40      public JspResolver getJspResolver() {
41          return jspResolver;
42      }
43  
44      /***
45       * @param jspResolver The shared JSP resolver of this context.
46       */
47      public void setJspResolver(final JspResolver jspResolver) {
48          this.jspResolver = jspResolver;
49      }
50  }