You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Amy Roh <am...@apache.org> on 2002/01/28 21:56:26 UTC
[PATCH] for BaseModelMBean.java
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: [PATCH] for list() functionality for AltRMI
Posted by Paul Hammant <Pa...@yahoo.com>.
Vinay,
Thanks for these. I have applied them and they work well.
Regards,
- Paul H
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
[PATCH] for list() functionality for AltRMI
Posted by vinaysahil chandran <sa...@yahoo.com>.
__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com