In the example for the MBeanServer invoke() method in the previous subsection,
the input parameter String[] signature represents the data types of all input
parameters to the method being invoked.
In order to ensure compliance with the OpenMBean model, we only use the
approved data types for our attribute getter() and setter() methods and for
operation parameters. The data types specified when invoke() is called are
therefore always limited to a set of approved types as follows:
- Simple data types:
- java.lang.Void
- java.lang.Boolean
- java.lang.Byte
- java.lang.Character
- java.lang.String
- java.lang.Short
- java.lang.Integer
- java.lang.Long
- java.lang.Float
- java.lang.Double
- Arrays of the above types:
- javax.management.ObjectName
- javax.management.openmbean.CompositeData
- javax.management.openmbean.TabularData
The class name literals for each type have a specific format as follows: