/**
* Get the instance handle of the object against which we execute all
* methods in this ModelMBean management interface.
*
* @exception InstanceNotFoundException
* if the managed resource object cannot be found
* @exception InvalidTargetObjectTypeException
* if the managed resource object is of the wrong type
* @exception MBeanException
* if the initializer of the object throws an exception
* @exception RuntimeOperationsException
* if the managed resource or the resource type is
* <code>null</code> or invalid
*/
public Object getManagedResource() throws InstanceNotFoundException, InvalidTargetObjectTypeException,
MBeanException, RuntimeOperationsException {
if (resource == null)
throw new RuntimeOperationsException(new IllegalArgumentException("Managed resource is null"),
"Managed resource is null");
return resource;
}
BaseModelMBean.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:lazycat
作者:
评论列表
文章目录