javax.ejb
Annotation Type Local


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

Declares the local business interface(s) for a session bean.

The Local annotation is applied to the session bean class or local business interface to designate a local interface of the bean.

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 element should be provided.

The Local annotation applies only to session beans and their interfaces.

Use of the Local annotation is only required when the bean class does not implement only a single interface other than any of the following: java.io.Serializable; java.io.Externalizable; any of the interfaces defined in javax.ejb.

Since:
EJB 3.0

Optional Element Summary
 java.lang.Class[] value
          Specifies the local business interface(s) of the bean.
 

value

public abstract java.lang.Class[] value
Specifies the local business interface(s) of the bean. The value element is specified only when the annotation is applied to the bean class. It is only required to be specified if the bean class implements more than one interface (excluding java.io.Serializable, java.io.Externalizable, and any of the interfaces defined by the javax.ejb package).

Default:
{}


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41