1 package net
.aramzamzam
.commons
.components
.services
;
3 import org
.apache
.tapestry5
.ioc
.Configuration
;
4 import org
.apache
.tapestry5
.ioc
.ObjectLocator
;
5 import org
.apache
.tapestry5
.ioc
.OrderedConfiguration
;
6 import org
.apache
.tapestry5
.ioc
.services
.PropertyAccess
;
7 import org
.apache
.tapestry5
.services
.ComponentClassTransformWorker
;
8 import org
.apache
.tapestry5
.services
.LibraryMapping
;
10 public class ComponentsModule
{
12 * Adds the CommitAfterPreparation logic, to modify processing of the
13 * {@link org.apache.tapestry5.hibernate.annotations.CommitAfter}
14 * annotation according to Studynet application needs.
16 public static void contributeComponentClassTransformWorker(
17 OrderedConfiguration
<ComponentClassTransformWorker
> configuration
,
18 PropertyAccess propertyAccess
,
19 ObjectLocator locator
) {
21 * Adds a number of standard component class transform workers:
23 * <li>InjectSelectionModel - generates the SelectionModel and ValueEncoder for a any marked list of objects.</li>
27 configuration
.add("InjectSelectionModel", new InjectSelectionModelWorker(propertyAccess
), "after:Inject*");
30 public static void contributeComponentClassResolver(
31 final Configuration
<LibraryMapping
> configuration
) {
32 configuration
.add(new LibraryMapping("aramzamzam",
33 "net.aramzamzam.commons.components"));