public class TipLoader extends Object
Modifier and Type | Method and Description |
---|---|
static TipOfTheDayModel |
load(Properties props)
Initializes a TipOfTheDayModel from properties.
|
public static TipOfTheDayModel load(Properties props)
tip.1.name=First Tip
tip.1.description=This is the description
tip.2.name=Second Tip
tip.2.description=<html>This is an html description
...
tip.10.description=No name for this tip, name is optional
props
- IllegalArgumentException
- if a name is found without descriptionCopyright © 2018. All rights reserved.