Java Reference
In-Depth Information
Figure 11.12 You can edit EJB properties visually. There's no need to get into XML editing to tune
commonly used EJB characteristics.
Second,
EJB
dependencies are considered Java class inheritances. Thus,
EJB
class,
Component
interface, and
Home
interface dependencies are treated as if an
EJB
class implements the corresponding interface. In an
EJB
class, all method
implementations have an
Implements method
icon to the left to the method
declaration and in its interface, whereas implemented methods have a
Has
implementation
icon.
Intention actions are another set of conveniences: If the
IDE
assumes your
bean has something wrong in it,
IDEA
suggests amending it if a reasonable cor-
rection is possible. For instance, suppose you introduce a new method in an
EJB
class. When the caret is on the method declaration,
IDEA
shows a lightbulb. If you
press
Alt+Enter
,
IDEA
suggests a way to correct this situation. In this case,
IDEA
proposes to insert the current method in a bean interface (see figure 11.13).