PROXY  WHOIS  RQUOTE  TEXTS  SOFT  FOREX  BBOARD
 Music  Philosophy  Code  Literature  Russian

= ROOT|Technical|Code_Examples|Java|javax|management|ClassAttributeValueExp.java =

page 2 of 2



    }


    protected Object getValue(ObjectName name) {
	try {
	    // Get the class of the object
	    MBeanServer server = QueryEval.getMBeanServer();
	    return server.getObjectInstance(name).getClassName();
	} catch (Exception re) {
	    return null;
	    /* In principle the MBean does exist because otherwise we
	       wouldn't be evaluating the query on it.  But it could
	       potentially have disappeared in between the time we
	       discovered it and the time the query is evaluated.

	       Also, the exception could be a SecurityException.

	       Returning null from here will cause
	       BadAttributeValueExpException, which will in turn cause
	       this MBean to be omitted from the query result.  */
	}
    }

}
=2=
THE END

1| < PREV = PAGE 2 =

UP TO ROOT | UP TO DIR | TO FIRST PAGE

Google
 

E-mail Facebook Google Digg del.icio.us BlinkList Fark Furl Ma.gnolia Netscape NewsVine Reddit Slashdot Spurl StumbleUpon Technorati YahooMyWeb LiveJournal Blogmarks TwitThis Live News2.ru BobrDobr.ru Memori.ru MoeMesto.ru

0.025332 wallclock secs ( 0.01 usr + 0.00 sys = 0.01 CPU)