Created
July 9, 2015 07:35
-
-
Save anonymous/0c77ce4cbc17ca1fdc0c to your computer and use it in GitHub Desktop.
Inject Properties
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
public class Application { | |
@Inject @Property(name = "application.name") | |
private String name; | |
@Inject @Property(name = "application.version.major") | |
private int majorVersion; | |
@Inject @Property(name = "application.version.minor") | |
private int minorVersion; | |
@Inject @Property(name = "application.released") | |
private boolean released; | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment