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