commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amy Roh <amy...@apache.org>
Subject [PATCH] for BaseModelMBean.java
Date Mon, 28 Jan 2002 20:56:26 GMT
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:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message