org.apache.tapestry5.services
Class TapestryModule

java.lang.Object
  extended by org.apache.tapestry5.services.TapestryModule

@Marker(value=Core.class)
@SubModule(value=InternalModule.class)
public final class TapestryModule
extends Object

The root module for Tapestry.


Constructor Summary
TapestryModule(PipelineBuilder pipelineBuilder, PropertyShadowBuilder shadowBuilder, RequestGlobals requestGlobals, ApplicationGlobals applicationGlobals, ChainBuilder chainBuilder, Environment environment, StrategyBuilder strategyBuilder, PropertyAccess propertyAccess, Request request, Response response, EnvironmentalShadowBuilder environmentalBuilder, EndOfRequestEventHub endOfRequestEventHub)
          We inject all sorts of common dependencies (including builders) into the module itself (note: even though some of these service are defined by the module itself, that's ok because services are always lazy proxies).
 
Method Summary
static void adviseLazy(LazyAdvisor advisor, MethodAdviceReceiver receiver)
          Advises the ComponentMessagesSource service so that the creation of Messages instances can be deferred.
static void bind(ServiceBinder binder)
           
 ComponentEventRequestHandler buildAjaxComponentEventRequestHandler(List<ComponentEventRequestFilter> configuration, org.slf4j.Logger logger, AjaxComponentEventRequestHandler terminator)
          Builds the action request handler for Ajax requests, based on a pipeline around AjaxComponentEventRequestHandler.
 ComponentEventResultProcessor buildAjaxComponentEventResultProcessor(Map<Class,ComponentEventResultProcessor> configuration)
          The component event result processor used for Ajax-oriented component requests.
static Alias buildAlias(org.slf4j.Logger logger, String mode, AliasManager overridesManager, Collection<AliasContribution> configuration)
           
 ApplicationInitializer buildApplicationInitializer(org.slf4j.Logger logger, List<ApplicationInitializerFilter> configuration)
          Initializes the application, using a pipeline of ApplicationInitializers.
 AssetFactory buildClasspathAssetFactory(ResourceCache resourceCache, ClasspathAssetAliasManager aliasManager, AssetPathConverter converter)
           
 ClientBehaviorSupport buildClientBehaviorSupport()
          Builds a proxy to the current ClientBehaviorSupport inside this thread's Environment.
 PersistentFieldStrategy buildClientPersistentFieldStrategy(LinkCreationHub linkCreationHub, ClientPersistentFieldStrategy service)
           
static InvalidationEventHub buildComponentClassesInvalidationEventHub(ComponentInstantiatorSource source)
           
 ClassFactory buildComponentClassFactory(ComponentInstantiatorSource source)
          Returns a ClassFactory that can be used to create extra classes around component classes.
static ComponentClassResolver buildComponentClassResolver(ComponentClassResolverImpl service, InvalidationEventHub hub)
           
 ComponentClassTransformWorker buildComponentClassTransformWorker(List<ComponentClassTransformWorker> configuration)
          Allows the exact steps in the component class transformation process to be defined.
 ComponentEventRequestHandler buildComponentEventRequestHandler(List<ComponentEventRequestFilter> configuration, org.slf4j.Logger logger, ComponentEventRequestHandlerImpl terminator)
          Builds the component action request handler for traditional (non-Ajax) requests.
 ComponentEventResultProcessor buildComponentEventResultProcessor(Map<Class,ComponentEventResultProcessor> configuration)
          The component event result processor used for normal component requests.
static InvalidationEventHub buildComponentMessagesInvalidationEventHub(ComponentMessagesSource messagesSource)
           
 ComponentRequestHandler buildComponentRequestHandler(List<ComponentRequestFilter> configuration, ComponentRequestHandlerTerminator terminator, org.slf4j.Logger logger)
           
static InvalidationEventHub buildComponentTemplatesInvalidationEventHub(ComponentTemplateSource templateSource)
           
 Context buildContext(ApplicationGlobals globals)
           
 AssetFactory buildContextAssetFactory(ApplicationGlobals globals, String applicationVersion, AssetPathConverter converter)
           
 DataTypeAnalyzer buildDataTypeAnalyzer(List<DataTypeAnalyzer> configuration)
          Analyzes properties to determine the data types, used to contributeBeanBlockSource(org.apache.tapestry5.ioc.Configuration) locale display and edit blocks} for properties.
static DataTypeAnalyzer buildDefaultDataTypeAnalyzer(DefaultDataTypeAnalyzer service, InvalidationEventHub hub)
          The default data type analyzer is the final analyzer consulted and identifies the type entirely pased on the property type, working against its own configuration (mapping property type class to data type).
 Environment buildEnvironment(PerthreadManager perthreadManager)
           
 FormSupport buildFormSupport()
          Builds a proxy to the current FormSupport inside this thread's Environment.
 HttpServletRequest buildHttpServletRequest()
          Builds a shadow of the RequestGlobals.HTTPServletRequest property.
 HttpServletRequestHandler buildHttpServletRequestHandler(org.slf4j.Logger logger, List<HttpServletRequestFilter> configuration, RequestHandler handler, String applicationCharset, SessionPersistedObjectAnalyzer analyzer)
           
 HttpServletResponse buildHttpServletResponse()
           
 InjectionProvider buildInjectionProvider(List<InjectionProvider> configuration)
          A chain of command for providing values for Inject-ed fields in component classes.
static LinkCreationHub buildLinkCreationHub(LinkSource source)
           
 MarkupRenderer buildMarkupRenderer(org.slf4j.Logger logger, MarkupRendererTerminator terminator, List<MarkupRendererFilter> configuration)
          The MarkupRenderer service is used to render a full page as markup.
 Dispatcher buildMasterDispatcher(List<Dispatcher> configuration)
          Ordered contributions to the MasterDispatcher service allow different URL matching strategies to occur.
 StackTraceElementAnalyzer buildMasterStackTraceElementAnalyzer(List<StackTraceElementAnalyzer> configuration)
           
static MetaDataLocator buildMetaDataLocator(MetaDataLocatorImpl service, InvalidationEventHub hub)
           
 ObjectRenderer buildObjectRenderer(Map<Class,ObjectRenderer> configuration)
           
 PageRenderRequestHandler buildPageRenderRequestHandler(List<PageRenderRequestFilter> configuration, org.slf4j.Logger logger, PageRenderRequestHandlerImpl terminator)
           
 PartialMarkupRenderer buildPartialMarkupRenderer(org.slf4j.Logger logger, List<PartialMarkupRendererFilter> configuration, PartialMarkupRendererTerminator terminator)
          A wrapper around PageRenderQueue used for partial page renders.
 BindingFactory buildPropBindingFactory(List<BindingFactory> configuration, PropBindingFactory service)
          Builds the PropBindingFactory as a chain of command.
 PropertyConduitSource buildPropertyConduitSource(PropertyConduitSourceImpl service, InvalidationEventHub hub)
           
 RenderSupport buildRenderSupport()
          Builds a proxy to the current RenderSupport inside this thread's Environment.
 Request buildRequest()
          Builds a shadow of the RequestGlobals.request property.
 RequestHandler buildRequestHandler(org.slf4j.Logger logger, List<RequestFilter> configuration, Dispatcher masterDispatcher)
           
 Response buildResponse()
          Builds a shadow of the RequestGlobals.response property.
 ServletApplicationInitializer buildServletApplicationInitializer(org.slf4j.Logger logger, List<ServletApplicationInitializerFilter> configuration, ApplicationInitializer initializer)
           
 SessionPersistedObjectAnalyzer buildSessionPersistedObjectAnalyzer(Map<Class,SessionPersistedObjectAnalyzer> configuration)
          The master Sessi`onPesistedObjectAnalyzer.
static TranslatorSource buildTranslatorSource(TranslatorSourceImpl service, InvalidationEventHub hub)
           
 ValidationMessagesSource buildValidationMessagesSource(List<String> configuration, UpdateListenerHub updateListenerHub, AssetFactory classpathAssetFactory, ClasspathURLConverter classpathURLConverter)
          Builds the source of Messages containing validation messages.
static ValueEncoderSource buildValueEncoderSource(Map<Class,ValueEncoderFactory> configuration, InvalidationEventHub hub)
           
static void contributeAjaxComponentEventResultProcessor(MappedConfiguration<Class,ComponentEventResultProcessor> configuration)
          Contributes handlers for the following types: Object Failure case, added to provide more useful exception message RenderCommand Typically, a Block Component Renders the component and its body (unless its a page, in which case a redirect JSON response is sent) JSONObject or JSONArray The JSONObject is returned as a text/javascript response StreamResponse The stream response is sent as the actual response String Interprets the value as a logical page name and sends a client response to redirect to that page Link Sends a JSON response to redirect to the link Class Treats the class as a page class and sends a redirect for a page render for that page MultiZoneUpdate Sends a single JSON response to update the content of multiple zones
 void contributeApplicationInitializer(OrderedConfiguration<ApplicationInitializerFilter> configuration, TypeCoercer typeCoercer, ComponentClassResolver componentClassResolver, InvalidationEventHub invalidationEventHub, RestoreDirtySessionObjects restoreDirtySessionObjects)
          Adds a listener to the ComponentInstantiatorSource that clears the PropertyAccess and TypeCoercer caches on a class loader invalidation.
 void contributeApplicationStatePersistenceStrategySource(MappedConfiguration<String,ApplicationStatePersistenceStrategy> configuration, ApplicationStatePersistenceStrategy sessionStategy)
          Contributes the default "session" strategy.
 void contributeAssetSource(MappedConfiguration<String,AssetFactory> configuration, AssetFactory contextAssetFactory, AssetFactory classpathAssetFactory)
           
static void contributeBeanBlockSource(Configuration<BeanBlockContribution> configuration)
           
static void contributeBindingSource(MappedConfiguration<String,BindingFactory> configuration, BindingFactory propBindingFactory, BindingFactory messageBindingFactory, BindingFactory validateBindingFactory, BindingFactory translateBindingFactory, BindingFactory assetBindingFactory, BindingFactory nullFieldStrategyBindingFactory, BindingFactory contextBindingFactory)
          Contributes the factory for serveral built-in binding prefixes ("asset", "block", "component", "literal", prop", "nullfieldstrategy", "message", "validate", "translate", "var").
static void contributeClasspathAssetAliasManager(MappedConfiguration<String,String> configuration, String tapestryVersion, String applicationVersion, String appPackage, String scriptaculousPath, String datepickerPath, String blackbirdPath)
           
static void contributeComponentClassResolver(Configuration<LibraryMapping> configuration)
           
static void contributeComponentClassTransformWorker(OrderedConfiguration<ComponentClassTransformWorker> configuration, ObjectLocator locator, InjectionProvider injectionProvider, ComponentClassResolver resolver)
          Adds a number of standard component class transform workers: Retain Allows fields to retain their values between requests Persist Allows fields to store their their value persistently between requests Parameter Identifies parameters based on the Parameter annotation Component Defines embedded components based on the Component annotation Mixin Adds a mixin as part of a component's implementation Environment Allows fields to contain values extracted from the Environment service Inject Used with the Inject annotation, when a value is supplied InjectService Handles the InjectService annotation InjectPage Adds code to allow access to other pages via the InjectPage field annotation InjectBlock Allows a block from the template to be injected into a field IncludeStylesheet Supports the IncludeStylesheet annotation IncludeJavaScriptLibrary Supports the IncludeJavaScriptLibrary annotation SupportsInformalParameters Checks for the annotation Meta Checks for meta data and adds it to the component model ApplicationState Converts fields that reference application state objects UnclaimedField Identifies unclaimed fields and resets them to null/0/false at the end of the request RenderCommand Ensures all components also implement RenderCommand SetupRender, BeginRender, etc.
 void contributeComponentEventRequestHandler(OrderedConfiguration<ComponentEventRequestFilter> configuration, RequestSecurityManager requestSecurityManager, ComponentEventRequestHandler ajaxHandler)
          Contributes filters: Ajax Determines if the request is Ajax oriented, and redirects to an alternative handler if so ImmediateRender When immediate action response rendering is enabled, generates the markup response (instead of a page redirect response, which is the normal behavior) Secure Sends a redirect if an non-secure request accesses a secure page
 void contributeComponentEventResultProcessor(ComponentEventResultProcessor componentInstanceProcessor, MappedConfiguration<Class,ComponentEventResultProcessor> configuration)
          Contributes handlers for the following types: Object Failure case, added to provide a more useful exception message Link Sends a redirect to the link (which is typically a page render link) String Sends a page render redirect Class Interpreted as the class name of a page, sends a page render render redirect (this is more refactoring safe than the page name) Component A page's root component (though a non-root component will work, but will generate a warning).
static void contributeDataTypeAnalyzer(OrderedConfiguration<DataTypeAnalyzer> configuration, DataTypeAnalyzer defaultDataTypeAnalyzer)
           Annotation Checks for DataType annotation Default (ordered last) DefaultDataTypeAnalyzer service (contributeDefaultDataTypeAnalyzer(org.apache.tapestry5.ioc.MappedConfiguration) })
static void contributeDefaultDataTypeAnalyzer(MappedConfiguration<Class,String> configuration)
          Maps property types to data type names: String --> text Number --> number Enum --> enum Boolean --> boolean Date --> date
static void contributeFactoryDefaults(MappedConfiguration<String,String> configuration)
          Contributes factory defaults that may be overridden.
static void contributeFieldValidatorSource(MappedConfiguration<String,Validator> configuration)
          Contributes the basic set of validators: required minlength maxlength min max regexp
static void contributeHiddenFieldLocationRules(MappedConfiguration<String,RelativeElementPosition> configuration)
          Determines positioning of hidden fields relative to other elements (this is needed by FormFragment and others.
 void contributeHttpServletRequestHandler(OrderedConfiguration<HttpServletRequestFilter> configuration, boolean gzipCompressionEnabled, GZipFilter gzipFilter, HttpServletRequestFilter ignoredPathsFilter)
           StoreIntoGlobals Stores the request and response into RequestGlobals at the start of the pipeline IgnoredPaths Identifies requests that are known (via the IgnoredPathsFilter service's configuration) to be mapped to other applications GZip Handles GZIP compression of response streams (if supported by client)
static void contributeInjectionProvider(OrderedConfiguration<InjectionProvider> configuration, MasterObjectProvider masterObjectProvider, ObjectLocator locator, SymbolSource symbolSource, AssetSource assetSource)
          Contributes the base set of injection providers: Default based on MasterObjectProvider Block injects fields of type Block ComponentResources give component access to its resources CommonResources access to properties of resources (log, messages, etc.) Asset injection of assets (triggered via Path annotation), with the path relative to the component class Service ordered last, for use when Inject is present and nothing else works, matches field type against Tapestry IoC services
 void contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter> configuration, boolean productionMode, Asset spacerImage, boolean omitGeneratorMeta, String tapestryVersion, boolean combineScripts, SymbolSource symbolSource, AssetSource assetSource, ClientDataEncoder clientDataEncoder, ClientInfrastructure clientInfrastructure)
          Adds page render filters, each of which provides an Environmental service.
static void contributeMasterDispatcher(OrderedConfiguration<Dispatcher> configuration)
          The MasterDispatcher is a chain-of-command of individual Dispatchers, each handling (like a servlet) a particular kind of incoming request.
static void contributeMasterObjectProvider(OrderedConfiguration<ObjectProvider> configuration, Alias alias, ObjectProvider assetObjectProvider)
          Contributes two object providers: Alias Searches by type among contributions to the Alias service Asset Checks for the Path annotation, and injects an Asset Service Injects based on the Service annotation, if present
static void contributeMasterStackTraceElementAnalyzer(OrderedConfiguration<StackTraceElementAnalyzer> configuration)
          Adds two analyzers: Application Checks for classes in the application package Proxies Checks for classes that appear to be generated proxies. SunReflect Checks for sun.reflect (which are omitted)
static void contributeNullFieldStrategySource(MappedConfiguration<String,NullFieldStrategy> configuration)
          Contributes strategies accessible via the NullFieldStrategySource service.
 void contributeObjectRenderer(MappedConfiguration<Class,ObjectRenderer> configuration, ObjectRenderer locationRenderer, TypeCoercer typeCoercer)
          Contributes a default object renderer for type Object, plus specialized renderers for Request, Location, ComponentResources, EventContext, List, and Object[].
 void contributePageRenderRequestHandler(OrderedConfiguration<PageRenderRequestFilter> configuration, RequestSecurityManager securityManager)
          Contributes a single filter, "Secure", which checks for non-secure requests that access secure pages.
 void contributePartialMarkupRenderer(OrderedConfiguration<PartialMarkupRendererFilter> configuration, Asset spacerImage, SymbolSource symbolSource, AssetSource assetSource)
          Contributes PartialMarkupRendererFilters used when rendering a partial Ajax response.
 void contributePersistentFieldManager(MappedConfiguration<String,PersistentFieldStrategy> configuration, Request request, PersistentFieldStrategy clientStrategy)
          Contributes several strategies: session Values are stored in the Session flash Values are stored in the Session, until the next request (for the page) client Values are encoded into URLs (or hidden form fields)
 void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration, Context context, long checkInterval, long updateTimeout, UpdateListenerHub updateListenerHub, URLRewriter urlRewriter)
          Continues a number of filters into the RequestHandler service: StaticFiles Checks to see if the request is for an actual file, if so, returns true to let the servlet container process the request CheckForUpdates Periodically fires events that checks to see if the file system sources for any cached data has changed (see CheckForUpdatesFilter).
static void contributeResourceDigestGenerator(Configuration<String> configuration)
          Configures the extensions that will require a digest to be downloaded via the asset dispatcher.
 void contributeResourceStreamer(MappedConfiguration<String,String> configuration)
          Adds content types: css text/css js text/javascript jpg, jpeg image/jpeg gif image/gif png image/png

static void contributeResponseCompressionAnalyzer(Configuration<String> configuration)
          Contibutions are content types that do not benefit from compression.
static void contributeSessionPersistedObjectAnalyzer(MappedConfiguration<Class,SessionPersistedObjectAnalyzer> configuration)
          Identifies String, Number and Boolean as immutable objects, a catch-all handler for Object (that understands ImmutableSessionPersistedObject, and handlers for OptimizedSessionPersistedObject and OptimizedApplicationStateObject.
static void contributeTemplateParser(MappedConfiguration<String,URL> config)
           
static void contributeTranslatorSource(Configuration<Translator> configuration, NumericTranslatorSupport support)
          Contributes the basic set of translators: string byte short integer long float double BigInteger BigDecimal
static void contributeTypeCoercer(Configuration<CoercionTuple> configuration, TypeCoercer coercer, ThreadLocale threadLocale, AssetSource assetSource)
          Adds coercions: String to SelectModel String to InsertPosition Map to SelectModel Collection to GridDataSource null to GridDataSource String to GridPagerPosition List to SelectModel ComponentResourcesAware (typically, a component) to ComponentResources String to BlankOption ComponentResources to PropertyOverrides String to Renderable Renderable to Block String to DateFormat PrimaryKeyEncoder to ValueEncoder String to Resource (via AssetSource.resourceForPath(String)) Renderable to RenderCommand
static void contributeValidationConstraintGenerator(OrderedConfiguration<ValidationConstraintGenerator> configuration)
          Adds built-in constraint generators: PrimtiveField -- primitive fields are always required ValidateAnnotation -- adds constraints from a Validate annotation
 void contributeValidationMessagesSource(OrderedConfiguration<String> configuration)
          Contributes org/apache/tapestry5/internal/ValidationMessages as "Default", ordered first.
static void contributeValueEncoderSource(MappedConfiguration<Class,ValueEncoderFactory> configuration)
          Contributes ValueEncoderFactorys for types: Object String Enum
static ComponentEventLinkEncoder decorateComponentEventLinkEncoder(ComponentEventLinkEncoder encoder, URLRewriter urlRewriter, Request request, HttpServletRequest httpServletRequest, Response response, AspectDecorator aspectDecorator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TapestryModule

public TapestryModule(PipelineBuilder pipelineBuilder,
                      PropertyShadowBuilder shadowBuilder,
                      RequestGlobals requestGlobals,
                      ApplicationGlobals applicationGlobals,
                      ChainBuilder chainBuilder,
                      Environment environment,
                      StrategyBuilder strategyBuilder,
                      PropertyAccess propertyAccess,
                      Request request,
                      Response response,
                      EnvironmentalShadowBuilder environmentalBuilder,
                      EndOfRequestEventHub endOfRequestEventHub)
We inject all sorts of common dependencies (including builders) into the module itself (note: even though some of these service are defined by the module itself, that's ok because services are always lazy proxies). This isn't about efficiency (it may be slightly more efficient, but not in any noticable way), it's about eliminating the need to keep injecting these dependencies into invividual service builder and contribution methods.

Method Detail

bind

public static void bind(ServiceBinder binder)

buildAlias

@PreventServiceDecoration
public static Alias buildAlias(org.slf4j.Logger logger,
                                                        @Inject@Symbol(value="tapestry.alias-mode")
                                                        String mode,
                                                        @InjectService(value="AliasOverrides")
                                                        AliasManager overridesManager,
                                                        Collection<AliasContribution> configuration)

contributeBindingSource

public static void contributeBindingSource(MappedConfiguration<String,BindingFactory> configuration,
                                           @InjectService(value="PropBindingFactory")
                                           BindingFactory propBindingFactory,
                                           @InjectService(value="MessageBindingFactory")
                                           BindingFactory messageBindingFactory,
                                           @InjectService(value="ValidateBindingFactory")
                                           BindingFactory validateBindingFactory,
                                           @InjectService(value="TranslateBindingFactory")
                                           BindingFactory translateBindingFactory,
                                           @InjectService(value="AssetBindingFactory")
                                           BindingFactory assetBindingFactory,
                                           @InjectService(value="NullFieldStrategyBindingFactory")
                                           BindingFactory nullFieldStrategyBindingFactory,
                                           @InjectService(value="ContextBindingFactory")
                                           BindingFactory contextBindingFactory)
Contributes the factory for serveral built-in binding prefixes ("asset", "block", "component", "literal", prop", "nullfieldstrategy", "message", "validate", "translate", "var").


contributeClasspathAssetAliasManager

public static void contributeClasspathAssetAliasManager(MappedConfiguration<String,String> configuration,
                                                        @Symbol(value="tapestry.version")
                                                        String tapestryVersion,
                                                        @Symbol(value="tapestry.application-version")
                                                        String applicationVersion,
                                                        @Symbol(value="tapestry.app-package")
                                                        String appPackage,
                                                        @Symbol(value="tapestry.scriptaculous.path")
                                                        String scriptaculousPath,
                                                        @Symbol(value="tapestry.datepicker.path")
                                                        String datepickerPath,
                                                        @Symbol(value="tapestry.blackbird.path")
                                                        String blackbirdPath)

contributeComponentClassResolver

public static void contributeComponentClassResolver(Configuration<LibraryMapping> configuration)

contributeComponentClassTransformWorker

public static void contributeComponentClassTransformWorker(OrderedConfiguration<ComponentClassTransformWorker> configuration,
                                                           ObjectLocator locator,
                                                           InjectionProvider injectionProvider,
                                                           ComponentClassResolver resolver)
Adds a number of standard component class transform workers:
Retain
Allows fields to retain their values between requests
Persist
Allows fields to store their their value persistently between requests
Parameter
Identifies parameters based on the Parameter annotation
Component
Defines embedded components based on the Component annotation
Mixin
Adds a mixin as part of a component's implementation
Environment
Allows fields to contain values extracted from the Environment service
Inject
Used with the Inject annotation, when a value is supplied
InjectService
Handles the InjectService annotation
InjectPage
Adds code to allow access to other pages via the InjectPage field annotation
InjectBlock
Allows a block from the template to be injected into a field
IncludeStylesheet
Supports the IncludeStylesheet annotation
IncludeJavaScriptLibrary
Supports the IncludeJavaScriptLibrary annotation
SupportsInformalParameters
Checks for the annotation
Meta
Checks for meta data and adds it to the component model
ApplicationState
Converts fields that reference application state objects
UnclaimedField
Identifies unclaimed fields and resets them to null/0/false at the end of the request
RenderCommand
Ensures all components also implement RenderCommand
SetupRender, BeginRender, etc.
Correspond to component render phases and annotations
InvokePostRenderCleanupOnResources
Makes sure InternalComponentResources.postRenderCleanup() is invoked after a component finishes rendering
Secure
Checks for the Secure annotation
ContentType
Checks for ContentType annotation
GenerateAccessors
Generates accessor methods if Property annotation is present
Cached
Checks for the Cached annotation
Log
Checks for the Log annotation


contributeDataTypeAnalyzer

public static void contributeDataTypeAnalyzer(OrderedConfiguration<DataTypeAnalyzer> configuration,
                                              @InjectService(value="DefaultDataTypeAnalyzer")
                                              DataTypeAnalyzer defaultDataTypeAnalyzer)
Annotation
Checks for DataType annotation
Default (ordered last)
DefaultDataTypeAnalyzer service (contributeDefaultDataTypeAnalyzer(org.apache.tapestry5.ioc.MappedConfiguration) })


contributeDefaultDataTypeAnalyzer

public static void contributeDefaultDataTypeAnalyzer(MappedConfiguration<Class,String> configuration)
Maps property types to data type names:


contributeBeanBlockSource

public static void contributeBeanBlockSource(Configuration<BeanBlockContribution> configuration)

contributeFieldValidatorSource

public static void contributeFieldValidatorSource(MappedConfiguration<String,Validator> configuration)
Contributes the basic set of validators:


contributeInjectionProvider

public static void contributeInjectionProvider(OrderedConfiguration<InjectionProvider> configuration,
                                               MasterObjectProvider masterObjectProvider,
                                               ObjectLocator locator,
                                               SymbolSource symbolSource,
                                               AssetSource assetSource)
Contributes the base set of injection providers:
Default
based on MasterObjectProvider
Block
injects fields of type Block
ComponentResources
give component access to its resources
CommonResources
access to properties of resources (log, messages, etc.)
Asset
injection of assets (triggered via Path annotation), with the path relative to the component class
Service
ordered last, for use when Inject is present and nothing else works, matches field type against Tapestry IoC services


contributeMasterObjectProvider

public static void contributeMasterObjectProvider(OrderedConfiguration<ObjectProvider> configuration,
                                                  @Local
                                                  Alias alias,
                                                  @InjectService(value="AssetObjectProvider")
                                                  ObjectProvider assetObjectProvider)
Contributes two object providers:
Alias
Searches by type among contributions to the Alias service
Asset
Checks for the Path annotation, and injects an Asset
Service
Injects based on the Service annotation, if present


contributeHttpServletRequestHandler

public void contributeHttpServletRequestHandler(OrderedConfiguration<HttpServletRequestFilter> configuration,
                                                @Symbol(value="tapestry.gzip-compression-enabled")
                                                boolean gzipCompressionEnabled,
                                                @Autobuild
                                                GZipFilter gzipFilter,
                                                @InjectService(value="IgnoredPathsFilter")
                                                HttpServletRequestFilter ignoredPathsFilter)
StoreIntoGlobals
Stores the request and response into RequestGlobals at the start of the pipeline
IgnoredPaths
Identifies requests that are known (via the IgnoredPathsFilter service's configuration) to be mapped to other applications
GZip
Handles GZIP compression of response streams (if supported by client)


contributeRequestHandler

public void contributeRequestHandler(OrderedConfiguration<RequestFilter> configuration,
                                     Context context,
                                     @Symbol(value="tapestry.file-check-interval")@IntermediateType(value=TimeInterval.class)
                                     long checkInterval,
                                     @Symbol(value="tapestry.file-check-update-timeout")@IntermediateType(value=TimeInterval.class)
                                     long updateTimeout,
                                     UpdateListenerHub updateListenerHub,
                                     URLRewriter urlRewriter)
Continues a number of filters into the RequestHandler service:
StaticFiles
Checks to see if the request is for an actual file, if so, returns true to let the servlet container process the request
CheckForUpdates
Periodically fires events that checks to see if the file system sources for any cached data has changed (see CheckForUpdatesFilter).
ErrorFilter
Catches request errors and lets the RequestExceptionHandler handle them
StoreIntoGlobals
Stores the request and response into the RequestGlobals service (this is repeated at the end of the pipeline, in case any filter substitutes the request or response).


contributeTranslatorSource

public static void contributeTranslatorSource(Configuration<Translator> configuration,
                                              NumericTranslatorSupport support)
Contributes the basic set of translators:
  • string
  • byte
  • short
  • integer
  • long
  • float
  • double
  • BigInteger
  • BigDecimal


contributeTypeCoercer

public static void contributeTypeCoercer(Configuration<CoercionTuple> configuration,
                                         @Builtin
                                         TypeCoercer coercer,
                                         @Builtin
                                         ThreadLocale threadLocale,
                                         @Core
                                         AssetSource assetSource)
Adds coercions:


contributeValidationConstraintGenerator

public static void contributeValidationConstraintGenerator(OrderedConfiguration<ValidationConstraintGenerator> configuration)
Adds built-in constraint generators:
  • PrimtiveField -- primitive fields are always required
  • ValidateAnnotation -- adds constraints from a Validate annotation


buildContext

public Context buildContext(ApplicationGlobals globals)

buildComponentClassResolver

public static ComponentClassResolver buildComponentClassResolver(@Autobuild
                                                                 ComponentClassResolverImpl service,
                                                                 @ComponentClasses
                                                                 InvalidationEventHub hub)

buildClasspathAssetFactory

@Marker(value=ClasspathProvider.class)
public AssetFactory buildClasspathAssetFactory(ResourceCache resourceCache,
                                                                                  ClasspathAssetAliasManager aliasManager,
                                                                                  AssetPathConverter converter)

buildContextAssetFactory

@Marker(value=ContextProvider.class)
public AssetFactory buildContextAssetFactory(ApplicationGlobals globals,
                                                                              @Inject@Symbol(value="tapestry.application-version")
                                                                              String applicationVersion,
                                                                              AssetPathConverter converter)

buildPropBindingFactory

public BindingFactory buildPropBindingFactory(List<BindingFactory> configuration,
                                              @Autobuild
                                              PropBindingFactory service)
Builds the PropBindingFactory as a chain of command. The terminator of the chain is responsible for ordinary property names (and property paths).

This mechanism has been replaced in 5.1 with a more sophisticated parser based on ANTLR. See TAP5-79 for details. There are no longer any built-in contributions to the configuration.

Parameters:
configuration - contributions of special factories for some constants, each contributed factory may return a binding if applicable, or null otherwise

buildValidationMessagesSource

public ValidationMessagesSource buildValidationMessagesSource(List<String> configuration,
                                                              UpdateListenerHub updateListenerHub,
                                                              @ClasspathProvider
                                                              AssetFactory classpathAssetFactory,
                                                              ClasspathURLConverter classpathURLConverter)
Builds the source of Messages containing validation messages. The contributions are paths to message bundles (resource paths within the classpath); the default contribution is "org/apache/tapestry5/internal/ValidationMessages".


buildMetaDataLocator

public static MetaDataLocator buildMetaDataLocator(@Autobuild
                                                   MetaDataLocatorImpl service,
                                                   @ComponentClasses
                                                   InvalidationEventHub hub)

buildClientPersistentFieldStrategy

public PersistentFieldStrategy buildClientPersistentFieldStrategy(LinkCreationHub linkCreationHub,
                                                                  @Autobuild
                                                                  ClientPersistentFieldStrategy service)

buildRenderSupport

public RenderSupport buildRenderSupport()
Builds a proxy to the current RenderSupport inside this thread's Environment.


buildClientBehaviorSupport

public ClientBehaviorSupport buildClientBehaviorSupport()
Builds a proxy to the current ClientBehaviorSupport inside this thread's Environment.

Since:
5.1.0.1

buildFormSupport

public FormSupport buildFormSupport()
Builds a proxy to the current FormSupport inside this thread's Environment.


buildComponentClassTransformWorker

public ComponentClassTransformWorker buildComponentClassTransformWorker(List<ComponentClassTransformWorker> configuration)
Allows the exact steps in the component class transformation process to be defined.


buildDataTypeAnalyzer

@Marker(value=Primary.class)
public DataTypeAnalyzer buildDataTypeAnalyzer(List<DataTypeAnalyzer> configuration)
Analyzes properties to determine the data types, used to contributeBeanBlockSource(org.apache.tapestry5.ioc.Configuration) locale display and edit blocks} for properties. The default behaviors look for a DataType annotation before deriving the data type from the property type.


buildInjectionProvider

public InjectionProvider buildInjectionProvider(List<InjectionProvider> configuration)
A chain of command for providing values for Inject-ed fields in component classes. The service's configuration can be extended to allow for different automatic injections (based on some combination of field type and field name).


buildApplicationInitializer

@Marker(value=Primary.class)
public ApplicationInitializer buildApplicationInitializer(org.slf4j.Logger logger,
                                                                                   List<ApplicationInitializerFilter> configuration)
Initializes the application, using a pipeline of ApplicationInitializers.


buildHttpServletRequestHandler

public HttpServletRequestHandler buildHttpServletRequestHandler(org.slf4j.Logger logger,
                                                                List<HttpServletRequestFilter> configuration,
                                                                @Primary
                                                                RequestHandler handler,
                                                                @Inject@Symbol(value="tapestry.charset")
                                                                String applicationCharset,
                                                                @Primary
                                                                SessionPersistedObjectAnalyzer analyzer)

buildRequestHandler

@Marker(value=Primary.class)
public RequestHandler buildRequestHandler(org.slf4j.Logger logger,
                                                                   List<RequestFilter> configuration,
                                                                   @Primary
                                                                   Dispatcher masterDispatcher)

buildServletApplicationInitializer

public ServletApplicationInitializer buildServletApplicationInitializer(org.slf4j.Logger logger,
                                                                        List<ServletApplicationInitializerFilter> configuration,
                                                                        @Primary
                                                                        ApplicationInitializer initializer)

buildComponentEventResultProcessor

@Marker(value={Primary.class,Traditional.class})
public ComponentEventResultProcessor buildComponentEventResultProcessor(Map<Class,ComponentEventResultProcessor> configuration)
The component event result processor used for normal component requests.


buildAjaxComponentEventResultProcessor

@Marker(value=Ajax.class)
public ComponentEventResultProcessor buildAjaxComponentEventResultProcessor(Map<Class,ComponentEventResultProcessor> configuration)
The component event result processor used for Ajax-oriented component requests.


buildDefaultDataTypeAnalyzer

public static DataTypeAnalyzer buildDefaultDataTypeAnalyzer(@Autobuild
                                                            DefaultDataTypeAnalyzer service,
                                                            @ComponentClasses
                                                            InvalidationEventHub hub)
The default data type analyzer is the final analyzer consulted and identifies the type entirely pased on the property type, working against its own configuration (mapping property type class to data type).


buildTranslatorSource

public static TranslatorSource buildTranslatorSource(@Autobuild
                                                     TranslatorSourceImpl service,
                                                     @ComponentClasses
                                                     InvalidationEventHub hub)

buildObjectRenderer

@Marker(value=Primary.class)
public ObjectRenderer buildObjectRenderer(Map<Class,ObjectRenderer> configuration)

buildComponentClassFactory

@Marker(value=ComponentLayer.class)
public ClassFactory buildComponentClassFactory(ComponentInstantiatorSource source)
Returns a ClassFactory that can be used to create extra classes around component classes. This ClassFactory will be cleared whenever an underlying component class is discovered to have changed. Use of this class factory implies that your code will become aware of this (if necessary) to discard any cached object (alas, this currently involves dipping into the internals side to register for the correct notifications). Failure to properly clean up can result in really nasty PermGen space memory leaks.


buildMasterDispatcher

@Marker(value=Primary.class)
public Dispatcher buildMasterDispatcher(List<Dispatcher> configuration)
Ordered contributions to the MasterDispatcher service allow different URL matching strategies to occur.


buildPropertyConduitSource

public PropertyConduitSource buildPropertyConduitSource(@Autobuild
                                                        PropertyConduitSourceImpl service,
                                                        @ComponentClasses
                                                        InvalidationEventHub hub)

buildRequest

public Request buildRequest()
Builds a shadow of the RequestGlobals.request property. Note again that the shadow can be an ordinary singleton, even though RequestGlobals is perthread.


buildHttpServletRequest

public HttpServletRequest buildHttpServletRequest()
Builds a shadow of the RequestGlobals.HTTPServletRequest property. Generally, you should inject the Request service instead, as future version of Tapestry may operate beyond just the servlet API.


buildHttpServletResponse

public HttpServletResponse buildHttpServletResponse()
Since:
5.1.0.0

buildResponse

public Response buildResponse()
Builds a shadow of the RequestGlobals.response property. Note again that the shadow can be an ordinary singleton, even though RequestGlobals is perthread.


buildMarkupRenderer

public MarkupRenderer buildMarkupRenderer(org.slf4j.Logger logger,
                                          @Autobuild
                                          MarkupRendererTerminator terminator,
                                          List<MarkupRendererFilter> configuration)
The MarkupRenderer service is used to render a full page as markup. Supports an ordered configuration of MarkupRendererFilters.


buildPartialMarkupRenderer

public PartialMarkupRenderer buildPartialMarkupRenderer(org.slf4j.Logger logger,
                                                        List<PartialMarkupRendererFilter> configuration,
                                                        @Autobuild
                                                        PartialMarkupRendererTerminator terminator)
A wrapper around PageRenderQueue used for partial page renders. Supports an ordered configuration of PartialMarkupRendererFilters.

See Also:
#contributePartialMarkupRenderer(org.apache.tapestry5.ioc.OrderedConfiguration, org.apache.tapestry5.Asset, org.apache.tapestry5.ioc.services.SymbolSource, AssetSource, ValidationMessagesSource)

buildPageRenderRequestHandler

public PageRenderRequestHandler buildPageRenderRequestHandler(List<PageRenderRequestFilter> configuration,
                                                              org.slf4j.Logger logger,
                                                              @Autobuild
                                                              PageRenderRequestHandlerImpl terminator)

buildComponentEventRequestHandler

@Marker(value={Traditional.class,Primary.class})
public ComponentEventRequestHandler buildComponentEventRequestHandler(List<ComponentEventRequestFilter> configuration,
                                                                                                                org.slf4j.Logger logger,
                                                                                                                @Autobuild
                                                                                                                ComponentEventRequestHandlerImpl terminator)
Builds the component action request handler for traditional (non-Ajax) requests. These typically result in a redirect to a Tapestry render URL.


buildAjaxComponentEventRequestHandler

@Marker(value={Ajax.class,Primary.class})
public ComponentEventRequestHandler buildAjaxComponentEventRequestHandler(List<ComponentEventRequestFilter> configuration,
                                                                                                             org.slf4j.Logger logger,
                                                                                                             @Autobuild
                                                                                                             AjaxComponentEventRequestHandler terminator)
Builds the action request handler for Ajax requests, based on a pipeline around AjaxComponentEventRequestHandler. Filters on the request handler are supported here as well.


contributeApplicationStatePersistenceStrategySource

public void contributeApplicationStatePersistenceStrategySource(MappedConfiguration<String,ApplicationStatePersistenceStrategy> configuration,
                                                                @Local
                                                                ApplicationStatePersistenceStrategy sessionStategy)
Contributes the default "session" strategy.


contributeAssetSource

public void contributeAssetSource(MappedConfiguration<String,AssetFactory> configuration,
                                  @ContextProvider
                                  AssetFactory contextAssetFactory,
                                  @ClasspathProvider
                                  AssetFactory classpathAssetFactory)

contributeComponentEventResultProcessor

public void contributeComponentEventResultProcessor(@Traditional@ComponentInstanceProcessor
                                                    ComponentEventResultProcessor componentInstanceProcessor,
                                                    MappedConfiguration<Class,ComponentEventResultProcessor> configuration)
Contributes handlers for the following types:
Object
Failure case, added to provide a more useful exception message
Link
Sends a redirect to the link (which is typically a page render link)
String
Sends a page render redirect
Class
Interpreted as the class name of a page, sends a page render render redirect (this is more refactoring safe than the page name)
Component
A page's root component (though a non-root component will work, but will generate a warning). A direct to the containing page is sent.
StreamResponse
The stream response is sent as the actual reply.
URL
Sends a redirect to a (presumably) external URL


contributeAjaxComponentEventResultProcessor

public static void contributeAjaxComponentEventResultProcessor(MappedConfiguration<Class,ComponentEventResultProcessor> configuration)
Contributes handlers for the following types:
Object
Failure case, added to provide more useful exception message
RenderCommand
Typically, a Block
Component
Renders the component and its body (unless its a page, in which case a redirect JSON response is sent)
JSONObject or JSONArray
The JSONObject is returned as a text/javascript response
StreamResponse
The stream response is sent as the actual response
String
Interprets the value as a logical page name and sends a client response to redirect to that page
Link
Sends a JSON response to redirect to the link
Class
Treats the class as a page class and sends a redirect for a page render for that page
MultiZoneUpdate
Sends a single JSON response to update the content of multiple zones


contributeMasterDispatcher

public static void contributeMasterDispatcher(OrderedConfiguration<Dispatcher> configuration)
The MasterDispatcher is a chain-of-command of individual Dispatchers, each handling (like a servlet) a particular kind of incoming request.
RootPath
Renders the start page for the "/" request
Asset
Provides access to classpath assets
VirtualAsset
Provides access to combined scripts
PageRender
Identifies the PageRenderRequestParameters and forwards onto PageRenderRequestHandler
ComponentEvent
Identifies the ComponentEventRequestParameters and forwards onto the ComponentEventRequestHandler


contributeObjectRenderer

public void contributeObjectRenderer(MappedConfiguration<Class,ObjectRenderer> configuration,
                                     @InjectService(value="LocationRenderer")
                                     ObjectRenderer locationRenderer,
                                     TypeCoercer typeCoercer)
Contributes a default object renderer for type Object, plus specialized renderers for Request, Location, ComponentResources, EventContext, List, and Object[].


contributeMarkupRenderer

public void contributeMarkupRenderer(OrderedConfiguration<MarkupRendererFilter> configuration,
                                     @Symbol(value="tapestry.production-mode")
                                     boolean productionMode,
                                     @Path(value="${tapestry.spacer-image}")
                                     Asset spacerImage,
                                     @Symbol(value="tapestry.omit-generator-meta")
                                     boolean omitGeneratorMeta,
                                     @Inject@Symbol(value="tapestry.version")
                                     String tapestryVersion,
                                     @Symbol(value="tapestry.combine-scripts")
                                     boolean combineScripts,
                                     SymbolSource symbolSource,
                                     AssetSource assetSource,
                                     ClientDataEncoder clientDataEncoder,
                                     ClientInfrastructure clientInfrastructure)
Adds page render filters, each of which provides an Environmental service. Filters often provide Environmental services needed by components as they render.
DocumentLinker
Provides DocumentLinker
RenderSupport
Provides RenderSupport
InjectDefaultStyleheet
Injects the default stylesheet
ClientBehaviorSupport
Provides ClientBehaviorSupport
Heartbeat
Provides Heartbeat
DefaultValidationDecorator
Provides ValidationDecorator (as an instance of DefaultValidationDecorator)


contributePartialMarkupRenderer

public void contributePartialMarkupRenderer(OrderedConfiguration<PartialMarkupRendererFilter> configuration,
                                            @Path(value="${tapestry.spacer-image}")
                                            Asset spacerImage,
                                            SymbolSource symbolSource,
                                            AssetSource assetSource)
Contributes PartialMarkupRendererFilters used when rendering a partial Ajax response.
DocumentLinker
Provides DocumentLinker
PageRenderSupport
Provides RenderSupport
ClientBehaviorSupport
Provides ClientBehaviorSupport
Heartbeat
Provides Heartbeat
DefaultValidationDecorator
Provides ValidationDecorator (as an instance of DefaultValidationDecorator)


contributePersistentFieldManager

public void contributePersistentFieldManager(MappedConfiguration<String,PersistentFieldStrategy> configuration,
                                             Request request,
                                             @InjectService(value="ClientPersistentFieldStrategy")
                                             PersistentFieldStrategy clientStrategy)
Contributes several strategies:
session
Values are stored in the Session
flash
Values are stored in the Session, until the next request (for the page)
client
Values are encoded into URLs (or hidden form fields)


contributeValidationMessagesSource

public void contributeValidationMessagesSource(OrderedConfiguration<String> configuration)
Contributes org/apache/tapestry5/internal/ValidationMessages as "Default", ordered first.


buildValueEncoderSource

public static ValueEncoderSource buildValueEncoderSource(Map<Class,ValueEncoderFactory> configuration,
                                                         @ComponentClasses
                                                         InvalidationEventHub hub)

contributeValueEncoderSource

public static void contributeValueEncoderSource(MappedConfiguration<Class,ValueEncoderFactory> configuration)
Contributes ValueEncoderFactorys for types:
  • Object
  • String
  • Enum


contributePageRenderRequestHandler

public void contributePageRenderRequestHandler(OrderedConfiguration<PageRenderRequestFilter> configuration,
                                               RequestSecurityManager securityManager)
Contributes a single filter, "Secure", which checks for non-secure requests that access secure pages.


contributeResourceDigestGenerator

public static void contributeResourceDigestGenerator(Configuration<String> configuration)
Configures the extensions that will require a digest to be downloaded via the asset dispatcher. Most resources are "safe", they don't require a digest. For unsafe resources, the digest is incorporated into the URL to ensure that the client side isn't just "fishing".

The extensions must be all lower case.

This contributes "class" and "tml" (the template extension).

Parameters:
configuration - collection of extensions

contributeTemplateParser

public static void contributeTemplateParser(MappedConfiguration<String,URL> config)

contributeFactoryDefaults

public static void contributeFactoryDefaults(MappedConfiguration<String,String> configuration)
Contributes factory defaults that may be overridden.


contributeResourceStreamer

public void contributeResourceStreamer(MappedConfiguration<String,String> configuration)
Adds content types:
css
text/css
js
text/javascript
jpg, jpeg
image/jpeg
gif
image/gif
png
image/png


contributeApplicationInitializer

public void contributeApplicationInitializer(OrderedConfiguration<ApplicationInitializerFilter> configuration,
                                             TypeCoercer typeCoercer,
                                             ComponentClassResolver componentClassResolver,
                                             @ComponentClasses
                                             InvalidationEventHub invalidationEventHub,
                                             @Autobuild
                                             RestoreDirtySessionObjects restoreDirtySessionObjects)
Adds a listener to the ComponentInstantiatorSource that clears the PropertyAccess and TypeCoercer caches on a class loader invalidation. In addition, forces the realization of ComponentClassResolver at startup.


contributeComponentEventRequestHandler

public void contributeComponentEventRequestHandler(OrderedConfiguration<ComponentEventRequestFilter> configuration,
                                                   RequestSecurityManager requestSecurityManager,
                                                   @Ajax
                                                   ComponentEventRequestHandler ajaxHandler)
Contributes filters:
Ajax
Determines if the request is Ajax oriented, and redirects to an alternative handler if so
ImmediateRender
When immediate action response rendering is enabled, generates the markup response (instead of a page redirect response, which is the normal behavior)
Secure
Sends a redirect if an non-secure request accesses a secure page


contributeNullFieldStrategySource

public static void contributeNullFieldStrategySource(MappedConfiguration<String,NullFieldStrategy> configuration)
Contributes strategies accessible via the NullFieldStrategySource service.

default
Does nothing, nulls stay null.
zero
Null values are converted to zero.


contributeHiddenFieldLocationRules

public static void contributeHiddenFieldLocationRules(MappedConfiguration<String,RelativeElementPosition> configuration)
Determines positioning of hidden fields relative to other elements (this is needed by FormFragment and others.

For elements input, select, textarea and label the hidden field is positioned after.

For elements p, div, li and td, the hidden field is positioned inside.


buildLinkCreationHub

public static LinkCreationHub buildLinkCreationHub(LinkSource source)
Since:
5.1.0.0

buildComponentClassesInvalidationEventHub

@Marker(value=ComponentClasses.class)
public static InvalidationEventHub buildComponentClassesInvalidationEventHub(ComponentInstantiatorSource source)
Since:
5.1.0.0

buildComponentTemplatesInvalidationEventHub

@Marker(value=ComponentTemplates.class)
public static InvalidationEventHub buildComponentTemplatesInvalidationEventHub(ComponentTemplateSource templateSource)
Since:
5.1.0.0

buildComponentMessagesInvalidationEventHub

@Marker(value=ComponentMessages.class)
public static InvalidationEventHub buildComponentMessagesInvalidationEventHub(ComponentMessagesSource messagesSource)
Since:
5.1.0.0

buildEnvironment

@Scope(value="perthread")
public Environment buildEnvironment(PerthreadManager perthreadManager)

buildSessionPersistedObjectAnalyzer

@Marker(value=Primary.class)
public SessionPersistedObjectAnalyzer buildSessionPersistedObjectAnalyzer(Map<Class,SessionPersistedObjectAnalyzer> configuration)
The master Sessi`onPesistedObjectAnalyzer.

Since:
5.1.0.0

contributeSessionPersistedObjectAnalyzer

public static void contributeSessionPersistedObjectAnalyzer(MappedConfiguration<Class,SessionPersistedObjectAnalyzer> configuration)
Identifies String, Number and Boolean as immutable objects, a catch-all handler for Object (that understands ImmutableSessionPersistedObject, and handlers for OptimizedSessionPersistedObject and OptimizedApplicationStateObject.

Since:
5.1.0.0

contributeResponseCompressionAnalyzer

public static void contributeResponseCompressionAnalyzer(Configuration<String> configuration)
Contibutions are content types that do not benefit from compression. Adds the following content types:
  • image/jpeg
  • image/gif
  • image/png
  • application/json (see https://issues.apache.org/jira/browse/TAP5-469)

Since:
5.1.0.0

buildMasterStackTraceElementAnalyzer

@Marker(value=Primary.class)
public StackTraceElementAnalyzer buildMasterStackTraceElementAnalyzer(List<StackTraceElementAnalyzer> configuration)
Since:
5.1.1.0

contributeMasterStackTraceElementAnalyzer

public static void contributeMasterStackTraceElementAnalyzer(OrderedConfiguration<StackTraceElementAnalyzer> configuration)
Adds two analyzers:
Application
Checks for classes in the application package
Proxies
Checks for classes that appear to be generated proxies.
SunReflect
Checks for sun.reflect (which are omitted)

Since:
5.1.0.0

adviseLazy

@Match(value="ComponentMessagesSource")
public static void adviseLazy(LazyAdvisor advisor,
                                         MethodAdviceReceiver receiver)
Advises the ComponentMessagesSource service so that the creation of Messages instances can be deferred.

Since:
5.1.0.0

buildComponentRequestHandler

public ComponentRequestHandler buildComponentRequestHandler(List<ComponentRequestFilter> configuration,
                                                            @Autobuild
                                                            ComponentRequestHandlerTerminator terminator,
                                                            org.slf4j.Logger logger)
Since:
5.1.0.0

decorateComponentEventLinkEncoder

public static ComponentEventLinkEncoder decorateComponentEventLinkEncoder(ComponentEventLinkEncoder encoder,
                                                                          URLRewriter urlRewriter,
                                                                          Request request,
                                                                          HttpServletRequest httpServletRequest,
                                                                          Response response,
                                                                          AspectDecorator aspectDecorator)
                                                                   throws Exception
Throws:
Exception
Since:
5.1.0.2


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.