Package org.apache.tapestry5.internal.services
package org.apache.tapestry5.internal.services
[INTERNAL USE ONLY] internal service classes; API subject to change
-
ClassDescriptionBase class for assets.Base class for strategies that store their values as keys in the session.Similar to
ComponentEventRequestHandlerImpl
, but built around the Ajax request cycle, where the action request sends back an immediate JSON response containing the new content.Performs a partial page render based on a root component.A filter that intercepts Ajax-oriented requests, thos that originate on the client-side using XmlHttpRequest.HandlesLink
result types by building a JSON response with key "redirectURL".Processes a Class result by converting the Class to a logical page name, then processing that.AComponentEventResultProcessor
, used for Ajax requests, for a String value that is interpreted as a logical page name.Used to render portions of a page as part of an Ajax request.HandlesURL
result types by building a JSON response with key "redirectURL".Allows for injection of the global application message catalog into services.Identifies frames for application classes.Simple implementation ofEventContext
.Recognizes requests where the path begins with "/asset/" (actually, as defined by theSymbolConstants.ASSET_PATH_PREFIX
symbol), and delivers the content therein as a bytestream.Performs injection of assets, based on the presence of thePath
annotation.Exposes assets (in the current locale).Wraps aStringProvider
as a read-onlyBinding
.Tracks the qualified name and value of an attribute within a start element XMLToken.Implements a barrier that periodically asks theUpdateListenerHub
to check for updates to files.Interface that defines types who provide a class name for URLChangeTracker purposes.Generates Assets for files on the classpath.Used when a component event handler returns a class value.Describes an object that can storePersistentFieldChange
s, and manage a query parameter stored into aLink
to maining this data across requests.Manages client-persistent values on behalf of aClientPersistentFieldStorageImpl
.Implements simple client-persistent properties.Allows for a number of anonymous injections based on the type of field that is to be injected.A cache for converting between class names and component (or other) classes.Service that generates a Graphviz DOT description file for a given component's dependency graph or for the whole set of dependencies of all components.Internal service that registers direct dependencies between components (including components, pages and base classes).Enum class defining the types of dependency components, pages and mixins can have among them.Processes component action events sent as requests from the client.Marker forComponentEventResultProcessor
to identify the particular implementation used for handlingComponent
instances (i.e., pages).CreatesInstantiator
s for components, based on component class name.A wrapper around aPlasticManager
that allows certain classes to be modified as they are loaded.Access to component models (as provided viaComponentInstantiatorSource
).Terminator for theComponentRequestHandler
pipeline, that feeds out into theComponentEventRequestHandler
andPageRenderRequestHandler
pipelines.Deprecated.A wrapper aroundComponentEventResultProcessor
that encapsulates capturing the exception.Provides access to cachedComponentTemplate
s.Service implementation that manages a cache of parsed component templates.Aggregates together a number of field validator instances as a single unit.Implementation ofAssetFactory
for assets that are part of the web application context.A resource stored with in the web application context.Implementation of theCookies
service interface.You can write cookies to it.Provides the cookies from the browser.Worker for theInject
annotation that delegates out to the masterMasterObjectProvider
to access the value.Default implementation ofRequestExceptionHandler
that displays the standard ExceptionReport page.After processing the component event request (including Ajax requests), or the page render request, checks for theTapestryConstants.RESPONSE_RENDERER
request attribute, and invokes it to render the deferred response.Responsible for injecting script and style links into the <head> and <body> element of the rendered HTML document.A capturing of the data fromLexicalHandler.startDTD(String, String, String)
.Manages request notifications for theEndOfRequestListener
interface.EnumValueEncoderFactory<E extends Enum<E>>Deprecated.this class is superseded byTypeCoercedValueEncoderFactory
and scheduled to be removed in Tapestry 5.5EnumValueLabelProvider<T extends Enum>Provides a label from enum.A non-threadsafe implementation (expects to use the "perthread" service lifecyle).The "flash" strategy stores data inside thesession
, just likeSessionPersistentFieldStrategy
, but also removes the values from the session on first use.Forces a reload of all caches and invalidates the component class cache.Service providing methods related to names that shouldn't be used as form control element names or ids.An implementation ofValueEncoderFactory
that returns a pre-wired instance ofValueEncoder
.HandlesHttpError
by invokingResponse.sendError(int, String)
.HandlesHttpStatus
.values returned by event handler methods.Returns the default asset path unchanged.An object that can instantiate a component.Split-out implementation ofInvalidationEventHub
that separates it fromComponentInstantiatorSource
.Stores global per-request data internal to the framework.Implementation ofComponentEventResultProcessor
forJSONObject
, allowing a component event handler to return a JSONObject that will be sent directly to the client as the reply.A defaultLinkCreationListener2
that triggers theEventConstants.DECORATE_COMPONENT_EVENT_LINK
andEventConstants.DECORATE_PAGE_RENDER_LINK
events as links are generated.A source forLink
objects.Given a set of supported locales, for a specified desired locale, sets the current thread's locale to a supported locale that is closest to the desired.Implementation ofMessages
based on a simple Map (of string keys and values).Terminator for the [@link MarkupRenderer} pipeline, which exists to invokePageRenderQueue.render(org.apache.tapestry5.MarkupWriter)
.ComponentLibraryInfoSource
implementation based on the pom.xml and pom.properties files Maven places in the /META-INF/maven/[groupId]/[artifactId] folder.Represents a bundle of properties files that can be used to collect properties that are eventually used to form aMessages
.A utility class that encapsulates all the logic for reading properties files and assemblingMessages
from them, in accordance with extension rules and locale.Class that holds information about a messages properties file for tracking.Exception thrown when a method body fails to compile; this will allow the method body to be displayed to the user on the request failure page.Implementation ofMethodInvocationResult
for failed invocations (where a checked exception was thrown).Implementation ofMethodInvocationResult
for successful method invocations.A catch-all for type Object that reports the return value as an error.Recognizes requests where the path matches the value ofSymbolConstants.OPENAPI_DESCRIPTION_PATH
(/openapi.json
by default).Fires theEventConstants.PASSIVATE
event on a page, and collects the result, converting it to an array of objects.Responsible for firing the EventConstants.ACTIVATE event on the page.Used by thePageLoader
to create partialar page elements.Instantiates a fully loaded, configured instance of a Tapestry page.Service used to render page markup using a MarkupWriter.Used when a component event handler returns a string value.Injects a<meta/>
element into the<head/>
to identify the Tapestry page name.Dispatches incoming requests for render requests.A wrapper aroundRenderQueue
, but referencable as a (per-thread) service.This services keeps track of the page being rendered and the root command for the partial render, it is therefore request/thread scoped.Handles a page render request by activating and then rendering the page.Service responsible for writing a full page markup response.Access to localized page instances (which are now shared singletons, starting in release 5.2).Terminator for thePartialMarkupRenderer
pipeline, which ultimately invokesPageRenderQueue.renderPartial(org.apache.tapestry5.MarkupWriter, org.apache.tapestry5.json.JSONObject)
.Handle persistent property changes.Checks to see if a class has a given prefix to its class name.A filter, used only in production mode, that does a "pre-flight check" that the indicated component actually exists.Provides a label from a property of the passed object.Identifies frames for various proxy classes (class name starts with a '$' and there's no line number.Uses a regular expression to identify which CSS class to apply to a frame.Forces a reload of all caches and invalidates the component class cache.Processor for objects that implementRenderCommand
(such asBlockImpl
), used with an Ajax component event.Exception used when rendering, to capture the stack of active components (for propery reporting in the exception page).Constants used when processing requests from the client web browser.Determines the reuest encoding for the given page and applies that to the request, so that parameters may be properly decoded.Filter for theRequestHandler
pipeline used to intercept and report exceptions.UsesOperationTracker
to add an operation generally describing each request.Per-thread service that caches page instances for the duration of the request, and is also responsible for tracking the active page (the page which will ultimately render the response).In Tapestry 5.1, the implementation of this worked with the page pool (a pool of page instances, reserved to individual requests/threads).Used to manage the relationship between the security of a request and the security of a page.Gutted implementation; will be removed in Tapestry 5.5.Deprecated.Deprecated in 5.4 with no replacement; see release notes about classpath assets moving to /META-INF/assets/.Responsible for streaming the contents of a resource to the client.Used to customize the behavior ofResourceStreamer.streamResource(org.apache.tapestry5.commons.Resource, java.lang.String, java.util.Set)
.Exception used when a request is made to a page with REST endpoint event handlers but doesn't match any of them.A listener that invokesSession.restoreDirtyObjects()
.Recognizes a request for the application root (i.e., "/") and handles this the same as a render request for the "Start" page.SAX-based template parser logic, taking aResource
to a Tapestry template file and returning aComponentTemplate
.Adds support for theService
annotation (which can be applied to fields or parameters), which is used to disambiguate injection when multiple services implement the same service interface.A very late worker related to theInject
annotation that, when all other forms of injection have failed, matches the field type to a service interface.Stores ASOs in theSession
, which will be created as necessary.A strategy for storing persistent page properties into thesession
.Identifies requests that are for actual resource files in the context.Used to trigger the rendering of a particular page without causing a redirect to that page.Interface used when assembling an attribute value that contains expansions.Passes the string value from the server to the client and vice-versa without any translation.Identifies any code associated with line 1 as omitted (i.e., it's a synthetic method related to an inner class).Encapsulates a number of tests for identifying stack frames that are a side-effect of various Tapestry Aspect Oriented Programming and other code generation behaviors.Parses a resource into aComponentTemplate
.Parses Tapestry XML template files intoComponentTemplate
instances.Class that holds information about a template for tracking.ProvidesValueEncoder
instances that are backed by theTypeCoercer
service.Responsible for handling the response for a page called with an unknown activation context when the check itself is enabled.Default implementation forUnknownActivationContextHandler
which answer with a 404 NOT FOUND error.Validator type and constraint values parsed from a validator specification.Parses a document as a stream of XML tokens.Identifies type ofXMLToken
.
MethodAdvice
and other parts of the new (in 5.3) plastic library.