Add getter for BasedModelMBean's managed resource.
cvs diff BaseModelMBean.java (in directory
C:\jakarta\jakarta-commons-sandbox\modeler\src\java\org\apache\commons\modeler\)
Index: BaseModelMBean.java
===================================================================
RCS file:
/home/cvs/jakarta-commons-sandbox/modeler/src/java/org/apache/commons/modeler/BaseModelMBean.java,v
retrieving revision 1.2
diff -r1.2 BaseModelMBean.java
501a502,526
> * 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 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;
>
> }
>
> /**
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>