JavaBean
As the official definition, it's kind of reusable component that developer can visually edit some property and bind some event method at design and runtime through visible inspector.Naming convention for java bean:instance field:T propertyName;Getter:<T> getPropertyName();Setter:void setPropertyName(<T>);For boolean value instance field, the get method should be changed to:boolean isPropertyName();For the event object, all must inherit java.util.EventObject.[@more@]
MessageFormat
MessageFormat use cases[@more@]Format a {0} parameter in a string;private static final String TEST= "aab{0}ccd";MessageFormat msgFormat = new MessageFormat(TEST);args[0] = "123";String doc = msgFormat.format(args);