Init (Java EE 5)

Java EE API


javax.ejb Annotation Type Init


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Init

Implements: Annotation
@Target(value=METHOD)
@Retention(value=RUNTIME)

指定会话 Bean 与适配的 Home 接口或适配的 Local Home 接口的 create 方法相对应的方法。
英文文档:

Designates a method of a session bean that corresponds to the create method of an adapted Home interface or an adapted Local Home interface.


Optional Element Summary
 String
 

abstract public String value()
适配的 Home/LocalHome 接口对应的 create 方法的名称。此值用于确定一个适配的 Home/LocalHome 接口上有多个与注释的 @Init 方法有相同签名的 create 方法的情况。如果没有指定值,则仅根据签名匹配 create
英文文档:

value

public abstract String value
The name of the corresponding create method of the adapted Home/LocalHome interface. This value is used to disambiguate the case where there are multiple create methods on an adapted Home/LocalHome interface with the same signature as the annotated @Init method. If no value is specified, the create matching is based on signature only.

Default:
""


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!