Skip to content

Instantly share code, notes, and snippets.

Created July 2, 2018 16:22
What would you like to do?
@Model(adaptables = Resource.class)
public class ContactUsModel {
private String mailAddress;
private String phoneNumber;
protected String title;
protected String officeCode;
protected void init() {
// Business logic to transform injected values and assign to bean variables
// Example: Resolve mailAddress/phoneNumber applicable for the user's region, based on officeCode
public String getMailAddress(){
return mailAddress;
public String getPhoneNumber(){
return phoneNumber;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment