java命名空间javax.management.remote.rmi类rmiconnectionimpl的类成员方法:
creatembean定义及介绍
本文导语:
creatembean
public objectinstance creatembean(string classname,
objectname name,
subject delegationsubject)
throws reflectionexception,
instancealreadyexistsexception...
creatembean
public objectinstance creatembean(string classname,
objectname name,
subject delegationsubject)
throws reflectionexception,
instancealreadyexistsexception,
mbeanregistrationexception,
mbeanexception,
notcompliantmbeanexception,
ioexception
- 从接口
rmiconnection 复制的描述
- 处理
mbeanserverconnection.creatembean(string, objectname) 方法。
- 指定者:
- 接口
rmiconnection 中的 creatembean
- 参数:
classname - 要实例化的 mbean 的类名称。name - mbean 的对象名。可以为 null。delegationsubject - 包含委托 principal 的 subject,如果使用了验证 principal,则为 null。
- 返回:
objectinstance,它包含新实例化的 mbean 的 objectname 和 java 类名。如果所包含的 objectname 为 n,则所包含的 java 类名为 getmbeaninfo(n).getclassname()。
- 抛出:
reflectionexception - 在尝试调用 mbean 的构造方法的过程中出现的、包装了 java.lang.classnotfoundexception 或 java.lang.exception 的异常。
instancealreadyexistsexception - mbean 已处于 mbean 服务器的控制之下。
mbeanregistrationexception - mbean 的 preregister (mbeanregistration 接口)方法已抛出异常。不对 mbean 进行注册。
mbeanexception - mbean 的构造方法已抛出异常。
notcompliantmbeanexception - 该类不是一个遵守 jmx 的 mbean。
ioexception - 如果出现通用通信异常。