Java Dynamic Management Kit 3.2 Programming Guide | ||||
---|---|---|---|---|
![]() | ![]() | Chapter 3. Design Patterns for Developing M-Beans | ![]() | ![]() |
Note - The action design pattern is not part of the JavaBeans component model, but is specific to the m-bean model.
An action is a public method of an m-bean that is intended to be invoked remotely. Public methods in an m-bean that are not actions are intended to be invoked only by other local m-beans.
It is not necessary for all public methods in an m-bean to be able to be invoked remotely. The action design pattern acts as a filter for the methods that you want to be invoked remotely. The mogen compiler generates code in a c-bean only for actions in addition to property accessor methods. It does not generate code for other public methods of an m-bean.
The design pattern for an action is as follows:
public AnyJavaType performAnAction(AnySignature) |
![]() | ![]() | ![]() |
Initializing and Deleting an M-Bean | ![]() | Operations on M-Beans |