APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.jmx.mbeanserver

pack-priv final Class PerInterface<M>

extends Object
Class Inheritance
Imports
java.util.Arrays, .Collections, .List, .Map, javax.management.AttributeNotFoundException, .InvalidAttributeValueException, .MBeanException, .MBeanInfo, .ReflectionException

Per-MBean-interface behavior. A single instance of this class can be shared by all MBeans of the same kind (Standard MBean or MXBean) that have the same MBean interface.
Since
1.6

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
PerInterface.InitMaps

Visitor that sets up the method maps (operations, getters, setters).

private class

Field Summary

Modifier and TypeField and Description
private final Map<String, M>
private final MBeanIntrospector<M>
private final MBeanInfo
private final Class<?>
private final Map<String, List<PerInterface<M>.MethodAndSig>>
private final Map<String, M>

Constructor Summary

AccessConstructor and Description
pack-priv
PerInterface(Class<?> mbeanInterface, MBeanIntrospector<M> introspector, MBeanAnalyzer<M> analyzer, MBeanInfo mbeanInfo)

Method Summary

Modifier and TypeMethod and Description
pack-priv Object
getAttribute(Object resource, String attribute, Object cookie)

pack-priv MBeanInfo
pack-priv Class<?>
pack-priv Object
invoke(Object resource, String operation, Object[] params, String[] signature, Object cookie)

pack-priv boolean
pack-priv void
setAttribute(Object resource, String attribute, Object value, Object cookie)

private String
sigString(String[] signature)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

gettersback to summary
private final Map<String, M> getters
introspectorback to summary
private final MBeanIntrospector<M> introspector
mbeanInfoback to summary
private final MBeanInfo mbeanInfo
mbeanInterfaceback to summary
private final Class<?> mbeanInterface
opsback to summary
private final Map<String, List<PerInterface<M>.MethodAndSig>> ops
settersback to summary
private final Map<String, M> setters

Constructor Detail

PerInterfaceback to summary
pack-priv PerInterface(Class<?> mbeanInterface, MBeanIntrospector<M> introspector, MBeanAnalyzer<M> analyzer, MBeanInfo mbeanInfo)

Method Detail

getAttributeback to summary
pack-priv Object getAttribute(Object resource, String attribute, Object cookie) throws AttributeNotFoundException, MBeanException, ReflectionException
getMBeanInfoback to summary
pack-priv MBeanInfo getMBeanInfo()
getMBeanInterfaceback to summary
pack-priv Class<?> getMBeanInterface()
invokeback to summary
pack-priv Object invoke(Object resource, String operation, Object[] params, String[] signature, Object cookie) throws MBeanException, ReflectionException
isMXBeanback to summary
pack-priv boolean isMXBean()
setAttributeback to summary
pack-priv void setAttribute(Object resource, String attribute, Object value, Object cookie) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
sigStringback to summary
private String sigString(String[] signature)
com.sun.jmx.mbeanserver back to summary

private Class PerInterface.InitMaps

extends Object
implements MBeanAnalyzer.MBeanVisitor<M>
Class Inheritance
All Implemented Interfaces
com.sun.jmx.mbeanserver.MBeanAnalyzer.MBeanVisitor

Visitor that sets up the method maps (operations, getters, setters).

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

InitMapsback to summary
private InitMaps()

Method Detail

visitAttributeback to summary
public void visitAttribute(String attributeName, M getter, M setter)

Implements com.sun.jmx.mbeanserver.MBeanAnalyzer.MBeanVisitor.visitAttribute.

visitOperationback to summary
public void visitOperation(String operationName, M operation)

Implements com.sun.jmx.mbeanserver.MBeanAnalyzer.MBeanVisitor.visitOperation.

com.sun.jmx.mbeanserver back to summary

private Class PerInterface.MethodAndSig

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv M
pack-priv String[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

methodback to summary
pack-priv M method
signatureback to summary
pack-priv String[] signature

Constructor Detail

MethodAndSigback to summary
private MethodAndSig()