DataCheckbox component
[aramzamzam-commons.git] / aramzamzam-commons / commons-components / src / main / java / net / aramzamzam / commons / components / services / ComponentsModule.java
blobe2bd836c92dc00b78cbca3637ad871c213b8f726
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 {
11 /**
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) {
20 /**
21 * Adds a number of standard component class transform workers:
22 * <ul>
23 * <li>InjectSelectionModel - generates the SelectionModel and ValueEncoder for a any marked list of objects.</li>
24 * </ul>
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"));