Uses of Class
org.apache.tapestry5.ioc.annotations.Contribute
-
Packages that use Contribute Package Description org.apache.tapestry5.clojure.modules org.apache.tapestry5.hibernate.web.modules org.apache.tapestry5.internal.t5internal.modules org.apache.tapestry5.internal.test [INTERNAL USE ONLY] testing support implementation classes; API subject to changeorg.apache.tapestry5.ioc.modules org.apache.tapestry5.jpa.modules org.apache.tapestry5.json.modules Optional module that allows JSON objects to be used with theTypeCoercerservice, when the tapestry-ioc module is present.org.apache.tapestry5.kaptcha.modules org.apache.tapestry5.modules org.apache.tapestry5.spring.modules -
-
Uses of Contribute in org.apache.tapestry5.clojure.modules
Methods in org.apache.tapestry5.clojure.modules with annotations of type Contribute Modifier and Type Method Description static voidClojureModule. defaultMappers(OrderedConfiguration<MethodToFunctionSymbolMapper> configuration) -
Uses of Contribute in org.apache.tapestry5.hibernate.web.modules
Methods in org.apache.tapestry5.hibernate.web.modules with annotations of type Contribute Modifier and Type Method Description static voidHibernateModule. provideCommitAfterAnnotationSupport(OrderedConfiguration<ComponentClassTransformWorker2> configuration)Adds the CommitAfter annotation work, to process theCommitAfterannotation.static voidHibernateModule. provideHibernateDashboardTab(OrderedConfiguration<DashboardTab> configuration)static voidHibernateModule. provideInjectableSessionObject(MappedConfiguration<java.lang.Class,java.lang.Object> configuration, org.hibernate.Session session)static voidHibernateModule. provideLibraryMapping(Configuration<LibraryMapping> configuration) -
Uses of Contribute in org.apache.tapestry5.internal.t5internal.modules
Methods in org.apache.tapestry5.internal.t5internal.modules with annotations of type Contribute Modifier and Type Method Description static voidInternalTestModule. provideT5InternalLibrary(Configuration<LibraryMapping> configuration) -
Uses of Contribute in org.apache.tapestry5.internal.test
Methods in org.apache.tapestry5.internal.test with annotations of type Contribute Modifier and Type Method Description static voidPageTesterModule. setupTestableOverrides(MappedConfiguration<java.lang.Class,java.lang.Object> configuration, TestableRequest request, TestableResponse response, ObjectLocator locator) -
Uses of Contribute in org.apache.tapestry5.ioc.modules
Methods in org.apache.tapestry5.ioc.modules with annotations of type Contribute Modifier and Type Method Description static voidTapestryIOCModule. provideBasicTypeCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)Contributes a set of standard type coercions to theTypeCoercerservice: Object to String Object to Boolean String to Double String to BigDecimal BigDecimal to Double Double to BigDecimal String to BigInteger BigInteger to Long String to Long Long to Byte Long to Short Long to Integer Double to Long Double to Float Float to Double Long to Double String to Boolean ("false" is always false, other non-blank strings are true) Number to Boolean (true if number value is non zero) Null to Boolean (always false) Collection to Boolean (false if empty) Object[] to List primitive[] to List Object to List (by wrapping as a singleton list) String to File String toTimeIntervalTimeIntervalto Long Object to Object[] (wrapping the object as an array) Collection to Object[] (via the toArray() method)Flowto ListFlowto Boolean (false if empty)static voidTapestryIOCModule. provideJSR10TypeCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)Contributes coercions to and from Java Time API (JSR 310) classes.static voidTapestryIOCModule. providePerthreadScope(MappedConfiguration<java.lang.String,ServiceLifecycle> configuration)Contributes the "perthread" scope.static voidTapestryIOCModule. setupDefaultSymbols(MappedConfiguration<java.lang.String,java.lang.Object> configuration)static voidTapestryIOCModule. setupObjectProviders(OrderedConfiguration<ObjectProvider> configuration, ServiceOverride serviceOverride)AnnotationBasedContributions Empty placeholder used to separate annotation-based ObjectProvider contributions (which come before) from non-annotation based (such as ServiceOverride) which come after. Value Supports theValueannotation Symbol Supports theSymbolannotations Autobuild Supports theAutobuildannotation ServiceOverride Allows simple service overrides via theServiceOverrideservice (and its configuration)static voidTapestryIOCModule. setupStandardSymbolProviders(OrderedConfiguration<SymbolProvider> configuration, SymbolProvider applicationDefaults, SymbolProvider factoryDefaults)SystemProperties Exposes JVM System properties as symbols (currently case-sensitive) EnvironmentVariables Exposes environment variables as symbols (adding a "env." prefix) ApplicationDefaults Values contributed to @SymbolProvider@ApplicationDefaultsFactoryDefaults Values contributed to @SymbolProvider@FactoryDefaults -
Uses of Contribute in org.apache.tapestry5.jpa.modules
Methods in org.apache.tapestry5.jpa.modules with annotations of type Contribute Modifier and Type Method Description static voidJpaModule. provideApplicationStateContributions(MappedConfiguration<java.lang.Class,ApplicationStateContribution> configuration, EntityManagerSource entityManagerSource, boolean entitySessionStatePersistenceStrategyEnabled)voidJpaModule. provideApplicationStatePersistenceStrategies(MappedConfiguration<java.lang.String,ApplicationStatePersistenceStrategy> configuration)static voidJpaModule. provideClassTransformWorkers(OrderedConfiguration<ComponentClassTransformWorker2> configuration)static voidJpaModule. provideEntityPackages(Configuration<java.lang.String> configuration, java.lang.String appRootPackage)static voidJpaModule. provideEntityPersistentFieldStrategies(MappedConfiguration<java.lang.String,PersistentFieldStrategy> configuration)static voidJpaModule. provideFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.String> configuration)static voidJpaModule. provideObjectProviders(OrderedConfiguration<ObjectProvider> configuration)static voidJpaModule. provideValueEncoders(MappedConfiguration<java.lang.Class,ValueEncoderFactory> configuration, boolean provideEncoders, EntityManagerSource entityManagerSource, EntityManagerManager entityManagerManager, TypeCoercer typeCoercer, PropertyAccess propertyAccess, LoggerSource loggerSource) -
Uses of Contribute in org.apache.tapestry5.json.modules
Methods in org.apache.tapestry5.json.modules with annotations of type Contribute Modifier and Type Method Description static voidJSONModule. provideCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration) -
Uses of Contribute in org.apache.tapestry5.kaptcha.modules
Methods in org.apache.tapestry5.kaptcha.modules with annotations of type Contribute Modifier and Type Method Description static voidKaptchaModule. factoryDefaults(MappedConfiguration<java.lang.String,java.lang.Object> configuration)static voidKaptchaModule. provideDefaultBeanBlocks(Configuration<BeanBlockContribution> configuration)static voidKaptchaModule. provideLibraryMapping(Configuration<LibraryMapping> configuration)static voidKaptchaModule. provideLibraryMessages(OrderedConfiguration<Resource> configuration, Resource kaptchaCatalog) -
Uses of Contribute in org.apache.tapestry5.modules
Methods in org.apache.tapestry5.modules with annotations of type Contribute Modifier and Type Method Description static voidAssetsModule. addApplicationAndTapestryMappings(MappedConfiguration<java.lang.String,java.lang.String> configuration, java.lang.String appPackage)static voidTapestryModule. addBuiltInComponentLibraryInfoSources(OrderedConfiguration<ComponentLibraryInfoSource> configuration)static voidTapestryModule. addBuiltInOpenApiDocumentationGenerator(OrderedConfiguration<OpenApiDescriptionGenerator> configuration)static voidTapestryModule. addBuiltInOpenApiTypeDescriber(OrderedConfiguration<OpenApiTypeDescriber> configuration)static voidAssetsModule. addMappingsForLibraryVirtualFolders(MappedConfiguration<java.lang.String,java.lang.String> configuration, ComponentClassResolver resolver)static voidInternalModule. configureControlledPackagesFromComponentClassResolver(MappedConfiguration<java.lang.String,ControlledPackageType> configuration, ComponentClassResolver resolver)Contributes packages identified byComponentClassResolver.getControlledPackageMapping().voidAssetsModule. configureStandardAssetFactories(MappedConfiguration<java.lang.String,AssetFactory> configuration, AssetFactory contextAssetFactory, AssetFactory classpathAssetFactory)static voidDashboardModule. defaultTabs(OrderedConfiguration<DashboardTab> configuration, boolean productionMode, boolean multipleClassLoaders)voidTapestryModule. defaultValueLabelProviders(MappedConfiguration<java.lang.Class,ValueLabelProvider> configuration)static voidTapestryModule. defaultWhitelist(OrderedConfiguration<WhitelistAnalyzer> configuration)Contributes a single default analyzer: LocalhostOnly Identifies requests from localhost as on client whitelistvoidAssetsModule. disableCompressionForImageTypes(MappedConfiguration<java.lang.String,java.lang.Boolean> configuration)Disables compression for the following content types: image/jpeg image/gif image/png image/svg+xml application/x-shockwave-flash application/font-woff application/x-font-ttf application/vnd.ms-fontobjectvoidJavaScriptModule. exposeJavaScriptSupportForFullPageRenders(OrderedConfiguration<MarkupRendererFilter> configuration, JavaScriptStackSource javascriptStackSource, JavaScriptStackPathConstructor javascriptStackPathConstructor, Request request)Adds page render filters, each of which provides anEnvironmentalservice.voidJavaScriptModule. exposeJavaScriptSupportForPartialPageRender(OrderedConfiguration<PartialMarkupRendererFilter> configuration, JavaScriptStackSource javascriptStackSource, JavaScriptStackPathConstructor javascriptStackPathConstructor, Request request)ContributesPartialMarkupRendererFilters used when rendering a partial Ajax response.static voidTapestryModule. gracefullyHandleFormsRequirePostException(MappedConfiguration<java.lang.Class,java.lang.Object> configuration, boolean productionMode)static voidJavaScriptModule. overrideGlyphiconWithFontAwesomeIfNeeded(MappedConfiguration<java.lang.Class,java.lang.Class> configuration, Compatibility compatibility)Overrides theGlyphiconcomponent withFontAwesomeIconif Bootstrap 3 isn't enabled.static voidJavaScriptModule. prepareHTMLPageOnRender(OrderedConfiguration<MarkupRendererFilter> configuration)Contributes 'ConfigureHTMLElement', which writes the attributes into the HTML tag to describe locale, etc.static voidTapestryModule. productionModeOverrides(MappedConfiguration<java.lang.Class,java.lang.Object> configuration, boolean productionMode)In production mode, overrideUpdateListenerHubto be an empty placeholder.static voidTapestryModule. provideBaseAjaxComponentEventResultProcessors(MappedConfiguration<java.lang.Class,ComponentEventResultProcessor> configuration)Contributes handlers for the following types: Object Failure case, added to provide more useful exception messageRenderCommandTypically, aBlockComponentRenders the component and its body (unless its a page, in which case a redirect JSON response is sent)JSONObjectorJSONArrayThe JSONObject is returned as a text/javascript responseStreamResponseThe 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 pageLinkSends a JSON response to redirect to the linkClassTreats the class as a page class and sends a redirect for a page render for that pageMultiZoneUpdateSends a single JSON response to update the content of multiple zones In most cases, when you want to support a new type, you should convert it to one of the built-in supported types (such asRenderCommand.static voidAssetsModule. provideBuiltinAssetDispatchers(MappedConfiguration<java.lang.String,AssetRequestHandler> configuration, AssetFactory contextAssetFactory, StackAssetRequestHandler stackAssetRequestHandler, ClasspathAssetAliasManager classpathAssetAliasManager, ResourceStreamer streamer, AssetSource assetSource, ClasspathAssetProtectionRule classpathAssetProtectionRule)Contributes an handler for each mapped classpath alias, as well handlers for context assets and stack assets (combinedJavaScriptStackfiles).static voidJavaScriptModule. provideBuiltinJavaScriptStacks(MappedConfiguration<java.lang.String,JavaScriptStack> configuration, JavaScriptStack coreStack, JavaScriptStack internalStack)Contributes the "core" and "internal"JavaScriptStacksstatic voidTapestryModule. provideCoreAndAppLibraries(Configuration<LibraryMapping> configuration, java.lang.String appRootPackage)static voidTapestryModule. provideDefaultBeanBlocks(Configuration<BeanBlockContribution> configuration)static voidTapestryModule. provideStandardInjectionProviders(OrderedConfiguration<InjectionProvider2> configuration, SymbolSource symbolSource, AssetSource assetSource)Default based onMasterObjectProviderNamed Handles fields with theNamedannotation Block injects fields of typeBlockCommonResources Access to properties of resources (log, messages, etc.) Asset injection of assets (triggered viaPathannotation), 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 servicesstatic voidTapestryModule. provideTransformWorkers(OrderedConfiguration<ComponentClassTransformWorker2> configuration, MetaWorker metaWorker, ComponentClassResolver resolver, ComponentDependencyRegistry componentDependencyRegistry, PropertyValueProviderWorker propertyValueProviderWorker, boolean productionMode, boolean multipleClassloaders)Adds a number of standard component class transform workers: Parameter Identifies parameters based on theParameterannotation BindParameter Support for theBindParameterannotation Property Generates accessor methods ifPropertyannotation is present Import Supports theImportannotation UnclaimedField Manages unclaimed fields, storing their value in aPerThreadValueOnEvent Handle the @OnEvent annotation, and related naming convention RenderCommand Ensures all components also implementRenderCommandSupportsInformalParameters Checks for the annotation RenderPhase Link in render phase methods Retain Allows fields to retain their values between requests Meta Checks for meta data annotations and adds it to the component model PageActivationContext Support forPageActivationContextannotation DiscardAfter Support forDiscardAftermethod annotation MixinAfter Support for theMixinAftermixin class annotation PageReset Checks for thePageResetannotation Mixin Adds a mixin as part of a component's implementation Cached Checks for theCachedannotation ActivationRequestParameter Support for theActivationRequestParameterannotation PageLoaded, PageAttached, PageDetached Support for annotationsPageLoaded,PageAttached,PageDetachedInjectService Handles theInjectServiceannotation Component Defines embedded components based on theComponentannotation Environment Allows fields to contain values extracted from theEnvironmentservice ApplicationState Converts fields that reference application state objects Persist Allows fields to store their their value persistently between requests viaPersistSessionAttribute Support for theSessionAttributeLog Checks for theLogannotation HeartbeatDeferred Support for theHeartbeatDeferredannotation, which defers method invocation to the end of theHeartbeatInject Used with theInjectannotation, when a value is supplied Operation Support for theOperationmethod annotationstatic voidJavaScriptModule. setupApplicationCatalogModules(MappedConfiguration<java.lang.String,java.lang.Object> configuration, LocalizationSetter localizationSetter, ComponentMessagesSource messagesSource, ResourceChangeTracker resourceChangeTracker, boolean compactJSON)static voidAssetsModule. setupAssetDispatch(OrderedConfiguration<Dispatcher> configuration, Dispatcher assetDispatcher)static voidJavaScriptModule. setupBaseModules(MappedConfiguration<java.lang.String,java.lang.Object> configuration, Resource underscoreShim, Resource jqueryShim, Resource typeahead, Resource moment, Resource transition, Resource bootstrapUtil, Compatibility compatibility)static voidBootstrap4Module. setupCompatibilityDefaults(MappedConfiguration<Trait,java.lang.Boolean> configuration)static voidJavaScriptModule. setupCompatibilityDefaults(MappedConfiguration<Trait,java.lang.Boolean> configuration)static voidNoBootstrapModule. setupCompatibilityDefaults(MappedConfiguration<Trait,java.lang.Boolean> configuration)static voidTapestryModule. setupCoreFrameworkValidators(MappedConfiguration<java.lang.String,Validator> configuration)Contributes the basic set of validators: required minlength maxlength min max regexp email nonestatic voidJavaScriptModule. setupCoreJavaScriptStack(OrderedConfiguration<StackExtension> configuration, Compatibility compatibility, java.lang.String provider)The core JavaScriptStack has a number of entries: requirejs The RequireJS AMD JavaScript library scriptaculous.js, effects.js Optional JavaScript libraries in compatibility mode (seeTrait.SCRIPTACULOUS) t53-compatibility.js Optional JavaScript library (seeTrait.INITIALIZERS) underscore-library, underscore-module The Underscore JavaScript library, and the shim that allows underscore to be injected t5/core/init Optional module related to t53-compatibility.js jquery-library The jQuery library jquery-noconflict Switches jQuery to no-conflict mode (only present when the infrastructure is "prototype"). jquery A module shim that allows jQuery to be injected (and also switches jQuery to no-conflict mode) bootstrap.css, tapestry.css, exception-frame.css, tapestry-console.css, tree.css CSS files t5/core/[...] Additional JavaScript modules jquery Added if the infrastructure provider is "jquery". User modules may replace or extend this list.voidAssetsModule. setupDefaultContentTypeMappings(MappedConfiguration<java.lang.String,java.lang.String> configuration)Adds content types: css text/css js text/javascript jpg, jpeg image/jpeg gif image/gif png image/png svg image/svg+xml swf application/x-shockwave-flash woff application/font-woff tff application/x-font-ttf eot application/vnd.ms-fontobjectstatic voidJavaScriptModule. setupFactoryDefaults(MappedConfiguration<java.lang.String,java.lang.Object> configuration)static voidJavaScriptModule. setupFoundationFramework(MappedConfiguration<java.lang.String,java.lang.Object> configuration, java.lang.String provider, Resource domPrototype, Resource domJQuery)static voidAssetsModule. setupGlobalMessageCatalog(AssetSource assetSource, Resource applicationCatalog, OrderedConfiguration<Resource> configuration)Contributes: ClientLocalization A virtual resource of formatting symbols for decimal numbers Core Built in messages used by Tapestry's default validators and components AppCatalog The Resource defined bySymbolConstants.APPLICATION_CATALOGstatic voidJavaScriptModule. setupInternalJavaScriptStack(OrderedConfiguration<StackExtension> configuration)static voidJavaScriptModule. setupModuleDispatchers(OrderedConfiguration<Dispatcher> configuration, ModuleManager moduleManager, OperationTracker tracker, ResourceStreamer resourceStreamer, PathConstructor pathConstructor, JavaScriptStackSource javaScriptStackSource, JavaScriptStackPathConstructor javaScriptStackPathConstructor, LocalizationSetter localizationSetter, java.lang.String modulePathPrefix, java.lang.String assetPathPrefix)static voidAssetsModule. setupSymbols(MappedConfiguration<java.lang.String,java.lang.Object> configuration) -
Uses of Contribute in org.apache.tapestry5.spring.modules
Methods in org.apache.tapestry5.spring.modules with annotations of type Contribute Modifier and Type Method Description static voidSpringModule. addSymbolSourceAsPropertyCustomizerForSpringBeans(OrderedConfiguration<ApplicationContextCustomizer> configuration, SymbolSource symbolSource)static voidSpringModule. defaultExternalSpringContextOff(MappedConfiguration<java.lang.String,java.lang.Object> configuration)voidSpringModule. reportSpringContextDetailsAtStartup(OrderedConfiguration<ApplicationInitializerFilter> configuration, org.springframework.context.ApplicationContext springContext)
-