The XMOJO Project | ||
<< Prev | Chapter 5.1 Standard MBean Example | Next >> |
public int getState();
public int getState(int value);
public void setPassword(String name);
public void setPassword(String name, String newname);
public
AttributeType get<AttributeName>(
);
public void set<AttributeName>(AttributeType obj);
public int getState(
)
and does not define a method, such as public void setState(int
param0)
So, the attribute State becomes a read-only attribute. public void setPassword(String
name)
which follows the attribute semantics. There is no method
defined like public String getPassword( )
. So, the attribute
Password becomes a write-only attribute.<< Prev | Home | Next >> |
Examples | Dynamic MBean Example |