View Javadoc

1   package com.atlassian.config.lifecycle;
2   
3   import com.atlassian.johnson.JohnsonEventContainer;
4   
5   import javax.servlet.ServletContext;
6   
7   public class DefaultLifecycleContext implements LifecycleContext
8   {
9       private final ServletContext servletContext;
10      private final JohnsonEventContainer johnsonEventContainer;
11  
12      public DefaultLifecycleContext(ServletContext servletContext)
13      {
14          this.servletContext = servletContext;
15          this.johnsonEventContainer = JohnsonEventContainer.get(servletContext);
16      }
17  
18      public ServletContext getServletContext()
19      {
20          return servletContext;
21      }
22  
23      public JohnsonEventContainer getAgentJohnson()
24      {
25          return johnsonEventContainer;
26      }
27  }