1 15 package org.apache.tapestry.services.impl; 16 17 import java.util.List ; 18 19 import org.apache.tapestry.services.ApplicationGlobals; 20 import org.apache.tapestry.spec.IApplicationSpecification; 21 import org.apache.tapestry.web.WebActivator; 22 import org.apache.tapestry.web.WebContext; 23 24 30 public class ApplicationGlobalsImpl implements ApplicationGlobals 31 { 32 private WebActivator _activator; 33 34 private IApplicationSpecification _specification; 35 36 private WebContext _webContext; 37 38 private List _factoryServices; 39 40 public void storeActivator(WebActivator activator) 41 { 42 _activator = activator; 43 } 44 45 public void storeSpecification(IApplicationSpecification applicationSpecification) 46 { 47 _specification = applicationSpecification; 48 } 49 50 public WebActivator getActivator() 51 { 52 return _activator; 53 } 54 55 public IApplicationSpecification getSpecification() 56 { 57 return _specification; 58 } 59 60 public String getActivatorName() 61 { 62 return _activator.getActivatorName(); 63 } 64 65 public WebContext getWebContext() 66 { 67 return _webContext; 68 } 69 70 public void storeContext(WebContext context) 71 { 72 _webContext = context; 73 } 74 75 public void storeFactoryServices(List factoryServices) 76 { 77 _factoryServices = factoryServices; 78 } 79 80 public List getFactoryServices() 81 { 82 return _factoryServices; 83 } 84 } | Popular Tags |