Local (Java EE 5)

Java EE API


javax.ejb Annotation Type Local


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Local

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

用在 Bean 类上时,为会话 Bean 声明本地业务接口。用在接口上时,将该接口指定为本地业务接口。在这种情况下,不提供任何 value()。
英文文档:

When used on the bean class, declares the local business interface(s) for a session bean. When used on an interface, designates that interface as a local business interface. In this case, no value() is provided.


Optional Element Summary
 Class[]
 

abstract public Class<T>[] value()
英文文档:

value

public abstract Class[] value
Default:
{}


Submit a bug or feature

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

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

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