官术网_书友最值得收藏!

  • EJB 3 Developer Guide
  • Michael Sikora
  • 225字
  • 2021-07-02 11:34:52

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We name our interface TimeService.java, which contains a single method definition getTime() ."

A block of code will be set as follows:

@Stateless
public class TimeServiceBean implements TimeService {
public String getTime() {
Formatter fmt = new Formatter();
Calendar cal = Calendar.getInstance();
fmt.format("%tr", cal);
return fmt.toString();
}
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items will be made bold:

@Stateless
public class TimeServiceBean implements TimeService {
private @EJB NiceDayService niceDay;
public String getTime() {
Formatter fmt = new Formatter();
Calendar cal = Calendar.getInstance();
fmt.format("%tr", cal);
return fmt.toString() +
niceDay.getMessage();
}
}

Any command-line input and output is written as follows:

C:\EJB3Chapter02\glassfish\lab1\build>jar -tvf TimeService.jar

New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: " Under the Web Services heading in the Common Tasks pane on the left of the screen, click on Arithmetic ."

Note

Important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 屯留县| 大关县| 克山县| 揭阳市| 西平县| 巴青县| 长垣县| 隆尧县| 杂多县| 驻马店市| 景泰县| 昌乐县| 神池县| 寻乌县| 富民县| 呼和浩特市| 三都| 郯城县| 托克逊县| 余江县| 庆云县| 丹棱县| 石城县| 定远县| 镇平县| 通州市| 江孜县| 财经| 滨海县| 宁都县| 忻州市| 阿图什市| 德令哈市| 靖西县| 贵定县| 常德市| 临高县| 雷州市| 开平市| 诸城市| 双桥区|