hellobean.java

来自「RESIN 3.2 最新源码」· Java 代码 · 共 28 行

JAVA
28
字号
package example;import javax.annotation.Resource;import javax.ejb.Stateless;import javax.ejb.TransactionAttribute;import static javax.ejb.TransactionAttributeType.SUPPORTS;import javax.webbeans.Named;/** * Implementation of the Hello bean. */@Statelesspublic class HelloBean implements Hello {  @Named("greeting")  private String _greeting;    /**   * Returns a hello, world string.   */  @TransactionAttribute(SUPPORTS)  public String hello()  {    return _greeting;  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?