Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

Wiki Markup{

Scrollbar
}

Tapestry IOC Configuration is the configuration of Tapestry both the IOC services – both those provided by Tapestry and those you write yourself – is done . Both are configured in the same way: using Java, not XML.

Div
stylefloat:right
titleRelated Articles
classaui-label
Content by Label
showLabelsfalse
showSpacefalse
titleRelated Articles
cqllabel = "configuration" and space = currentSpace()

...

Modules configure a service by contributing to service configurations. This seems may seem esoteric , but is quite handy, and is best explained by but is really pretty simple. We'll explain with an example.

Let's say you've written a bunch of different services, each of which does something specific for a particular type of file (identified by the file's extension), and each implements the same interface, which we'll call FileServicer. And now let's say you need a central service that selects the one of your FileServicer implementations based on a given file extension. You start by providing a service builder method:

...

  • It makes it much easier for an override of the service to get the configuration intended for the original service.

...

For mapped configurations where the key type is String, a CaseInsensitiveMap will be automatically used (and passed to the service builder method), to help ensure that case insensitivity is automatic and pervasive.

...

In Tapestry 5.0, services that wanted to support this kind of override behavior had to implement it on an ad-hoc basis, such as ApplicationDefaults overriding FactoryDefaults. In many cases, that is still useful.

 

Scrollbar
Wiki Markup{scrollbar}