jdk/src/share/classes/com/sun/jmx/mbeanserver/PerInterface.java
changeset 4156 acaa49a2768a
parent 715 f16baef3a20e
child 5506 202f599c92aa
equal deleted inserted replaced
4155:460e37d40f12 4156:acaa49a2768a
     1 /*
     1 /*
     2  * Copyright 2005-2008 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 2005-2006 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Sun designates this
     7  * published by the Free Software Foundation.  Sun designates this
   229     }
   229     }
   230 
   230 
   231     /**
   231     /**
   232      * Visitor that sets up the method maps (operations, getters, setters).
   232      * Visitor that sets up the method maps (operations, getters, setters).
   233      */
   233      */
   234     private class InitMaps implements MBeanAnalyzer.MBeanVisitor<M, RuntimeException> {
   234     private class InitMaps implements MBeanAnalyzer.MBeanVisitor<M> {
   235         public void visitAttribute(String attributeName,
   235         public void visitAttribute(String attributeName,
   236                                    M getter,
   236                                    M getter,
   237                                    M setter) {
   237                                    M setter) {
   238             if (getter != null) {
   238             if (getter != null) {
   239                 introspector.checkMethod(getter);
   239                 introspector.checkMethod(getter);