- Java EE 8 Design Patterns and Best Practices
- Rhuan Rocha Jo?o Purifica??o
- 257字
- 2021-07-23 16:54:49
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "It is also important to bear in mind that the @Electronic qualifier identifies the decorated object."
A block of code is set as follows:
public interface Engineering {
List<String> getDisciplines ();
}
public class BasicEngineering implements Engineering {
@Override
public List<String> getDisciplines() {
return Arrays.asList("d7", "d3");
}
}
@Electronic
public class ElectronicEngineering extends BasicEngineering {
...
}
@Mechanical
public class MechanicalEngineering extends BasicEngineering {
...
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
@Loggable
@Interceptor
public class LoggedInterceptor implements Serializable {
@AroundInvoke
public Object logMethod (InvocationContext invocationContext) throws
Exception{
System.out.println("Entering method : "
+ invocationContext.getMethod().getName() + " "
+ invocationContext.getMethod().getDeclaringClass()
);
return invocationContext.proceed();
}
}
Any command-line input or output is written as follows:
creating bean.
intercepting post construct of bean.
post construct of bean
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "After the user logs in, when they access Application 1, Application 2, or Application 3, they will not need to log in again. "
- pcDuino開發(fā)實(shí)戰(zhàn)
- PLC控制程序精編108例
- 構(gòu)建高可用Linux服務(wù)器(第4版)
- 曝光:Linux企業(yè)運(yùn)維實(shí)戰(zhàn)
- 新手易學(xué):系統(tǒng)安裝與重裝
- PLC控制系統(tǒng)應(yīng)用與維護(hù)
- 嵌入式Linux驅(qū)動程序和系統(tǒng)開發(fā)實(shí)例精講
- 精解Windows8
- Linux集群和自動化運(yùn)維
- Windows 7中文版從入門到精通(修訂版)
- 嵌入式系統(tǒng)原理及開發(fā)
- 無蘋果不生活 The New iPad隨身寶典
- AutoCAD 2014中文版從入門到精通
- Linux內(nèi)核設(shè)計(jì)的藝術(shù):圖解Linux操作系統(tǒng)架構(gòu)設(shè)計(jì)與實(shí)現(xiàn)原理
- 大規(guī)模Linux集群架構(gòu)最佳實(shí)踐:如何管理上千臺服務(wù)器