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