/** @since 2.3 */ public IPropertySource getPropertySource() { return _infrastructure.getApplicationPropertySource(); }
/** @see Infrastructure#getApplicationSpecification() */ public IApplicationSpecification getSpecification() { return _infrastructure.getApplicationSpecification(); }
/** * Gets the visit object from the * {@link org.apache.tapestry.engine.state.ApplicationStateManager}, creating it if it does not * already exist. * <p> * As of Tapestry 4.0, this will always create the visit object, possibly creating a new session * in the process. */ public Object getVisit() { return _infrastructure.getApplicationStateManager().get("visit"); }
public BeanProvider(IComponent component) { _component = component; Infrastructure infrastructure = component.getPage().getRequestCycle().getInfrastructure(); _resolver = infrastructure.getClassResolver(); INamespace namespace = component.getNamespace(); _packageList = namespace.getPropertyValue("org.apache.tapestry.bean-class-packages"); _classFinder = infrastructure.getClassFinder(); }
public String getOutputEncoding() { return _infrastructure.getOutputEncoding(); } }
cycle = _infrastructure.getRequestCycleFactory().newRequestCycle(this); _infrastructure.getApplicationStateManager().flush();
/** * @see Infrastructure#getClassResolver() */ public ClassResolver getClassResolver() { return _infrastructure.getClassResolver(); }
/** * Allows subclasses to include listener methods easily. * * @since 1.0.2 */ public ListenerMap getListeners() { if (_listeners == null) _listeners = _infrastructure.getListenerMapSource().getListenerMapForObject(this); return _listeners; }
/** * @see Infrastructure#getDataSqueezer() */ public DataSqueezer getDataSqueezer() { return _infrastructure.getDataSqueezer(); }
/** * @see org.apache.tapestry.error.ExceptionPresenter */ protected void activateExceptionPage(IRequestCycle cycle, Throwable cause) { _infrastructure.getExceptionPresenter().presentException(cycle, cause); }
/** * Standard constructor used to render a response page. * * @param engine * the current request's engine * @param parameters * query parameters (possibly the result of {@link ServiceEncoder}s decoding path * information) * @param serviceName * the name of engine service * @param environment * additional invariant services and objects needed by each RequestCycle instance */ public RequestCycle(IEngine engine, QueryParameterMap parameters, String serviceName, RequestCycleEnvironment environment) { // Variant from instance to instance _engine = engine; _parameters = parameters; _serviceName = serviceName; // Invariant from instance to instance _infrastructure = environment.getInfrastructure(); _pageSource = _infrastructure.getPageSource(); _strategySource = environment.getStrategySource(); _absoluteURLBuilder = environment.getAbsoluteURLBuilder(); _log = new ErrorLogImpl(environment.getErrorHandler(), LOG); }
public BeanProvider(IComponent component) { _component = component; Infrastructure infrastructure = component.getPage().getRequestCycle().getInfrastructure(); _resolver = infrastructure.getClassResolver(); INamespace namespace = component.getNamespace(); _packageList = namespace.getPropertyValue("org.apache.tapestry.bean-class-packages"); _classFinder = infrastructure.getClassFinder(); }
public String getOutputEncoding() { return _infrastructure.getOutputEncoding(); } }
cycle = _infrastructure.getRequestCycleFactory().newRequestCycle(this); _infrastructure.getApplicationStateManager().flush();
/** * @see Infrastructure#getClassResolver() */ public ClassResolver getClassResolver() { return _infrastructure.getClassResolver(); }
/** * Allows subclasses to include listener methods easily. * * @since 1.0.2 */ public ListenerMap getListeners() { if (_listeners == null) _listeners = _infrastructure.getListenerMapSource().getListenerMapForObject(this); return _listeners; }
/** * @see Infrastructure#getDataSqueezer() */ public DataSqueezer getDataSqueezer() { return _infrastructure.getDataSqueezer(); }
/** * @see org.apache.tapestry.error.ExceptionPresenter */ protected void activateExceptionPage(IRequestCycle cycle, Throwable cause) { _infrastructure.getExceptionPresenter().presentException(cycle, cause); }
/** * Standard constructor used to render a response page. * * @param engine * the current request's engine * @param parameters * query parameters (possibly the result of {@link ServiceEncoder}s decoding path * information) * @param serviceName * the name of engine service * @param environment * additional invariant services and objects needed by each RequestCycle instance */ public RequestCycle(IEngine engine, QueryParameterMap parameters, String serviceName, RequestCycleEnvironment environment) { // Variant from instance to instance _engine = engine; _parameters = parameters; _serviceName = serviceName; // Invariant from instance to instance _infrastructure = environment.getInfrastructure(); _pageSource = _infrastructure.getPageSource(); _strategySource = environment.getStrategySource(); _absoluteURLBuilder = environment.getAbsoluteURLBuilder(); _log = new ErrorLogImpl(environment.getErrorHandler(), LOG); }
/** * Called to start an ajax response. Writes xml doctype and starts * the <code>ajax-response</code> element that will contain all of * the returned content. */ void beginResponse() { _responseStarted = true; _writer.printRaw("<?xml version=\"1.0\" encoding=\"" + _cycle.getInfrastructure().getOutputEncoding() + "\"?>"); _writer.printRaw("<!DOCTYPE html " + "PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" " + "\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\" [" + NEWLINE + "<!ENTITY nbsp ' '>" + NEWLINE + "]>" + NEWLINE); _writer.printRaw("<ajax-response>"); }