jtbuilder.java
来自「Java Pattern Oriented Framework (Jt) 是为了」· Java 代码 · 共 52 行
JAVA
52 行
package Jt;
/**
* Jt Implementation of the Builder design
* pattern. Subclasses need to override the
* inherited processMessage method and implement
* the building messages.
*/
public abstract class JtBuilder extends JtObject {
private static final long serialVersionUID = 1L;
public static final String JtBUILD = "JtBUILD";
public static final String JtCLASS_NAME = JtBuilder.class.getName();
public JtBuilder () {
}
/**
* Demonstrates the messages processed by JtBuilder.
*/
public static void main(String[] args) {
JtFactory factory = new JtFactory ();
JtBuilder builder;
// Create an instance of JtBuilder
builder = (JtBuilder) factory.createObject (JtBuilder.JtCLASS_NAME, "builder");
// Remove the object
factory.removeObject (builder);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?