Created
July 2, 2018 16:23
-
-
Save aasikka/79f9b612f2011e6bbe28d6185a3f6d79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Model(adaptables = Resource.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL) | |
public class ContactUsModel { | |
private String mailAddress; | |
private String phoneNumber; | |
@Inject | |
@Required | |
protected String title; | |
@Inject | |
protected String officeCode; | |
@PostConstruct | |
protected void init() { | |
// Business logic to transform the 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