MBeanTypeService


Overview  |   Related MBeans  |   Attributes  |   Operations

Overview

Provides operations for discovering the attributes and operations of an MBean type that has not yet been instantiated.

The javax.management.ObjectName of this MBean is "com.bea:Name=MBeanTypeService,Type=weblogic.management.mbeanservers.MBeanTypeService".

       
Since9.0.0.0
Fully Qualified Interface NameIf you use the getMBeanInfo operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name:
weblogic.management.mbeanservers.MBeanTypeService
Factory Methods No factory methods. Instances of this MBean are created automatically.


Operations

This section describes the following operations:


getMBeanInfo

Returns the MBean info object for the specified interface.

For example,
MBeanServerConnection.invoke(MBeanTypeServiceMBean, "getMBeanInfo",
new Object[] { "weblogic.security.providers.authorization.DefaultAuthorizationProviderMBean" }
new String[] { "java.lang.String" });

   
Operation Name"getMBeanInfo"
ParametersObject [] {  beanInterface }

where:

  • beanInterface is an object of type java.lang.String that specifies:

    The fully-qualified interface name of the MBean.

SignatureString [] { "java.lang.String" }
ReturnsModelMBeanInfo
Exceptions
  • javax.management.OperationsException

getSubtypes

Returns the names of all MBean types that extend or implement the specified MBean.

   
Operation Name"getSubtypes"
ParametersObject [] {  beanInterface }

where:

  • beanInterface is an object of type java.lang.String that specifies:

    The fully-qualified interface name of the base MBean.

SignatureString [] { "java.lang.String" }
Returns class

validateAttribute

Validates that the specified attribute value complies with the contraints for that attribute.

This operation evaluates the following types of constraints:

There are two signatures for this operation. One takes the interface name of an MBean type and the other takes the javax.management.ObjectName of an MBean instance.

   
Operation Name"validateAttribute"
ParametersObject [] {  beanInterfaceattribute }

where:

  • beanInterface is an object of type java.lang.String that specifies:

    The fully-qualified interface name of the MBean that contains the attribute.

  • attribute is an object of type javax.management.Attribute that specifies:

    The name of the attribute and a proposed value.

SignatureString [] { "java.lang.String", "javax.management.Attribute" }
Returns void
Exceptions
  • javax.management.AttributeNotFoundException
    AttributeNotFoundException if the attribute is not specified for the interface.
  • javax.management.InvalidAttributeValueException
    InvalidAttributeValueException if the value violates any of the constraints
  • javax.management.MBeanException
    MBeanException if the interface is not recognized.
  • javax.management.ReflectionException
    ReflectionException if the attribute type or the bean interface cannot be loaded.

validateAttribute

Validates that the specified attribute value complies with the contraints for that attribute.

This operation evaluates the following types of constraints:

There are two signatures for this operation. One takes the interface name of an MBean type and the other takes the javax.management.ObjectName of an MBean instance.

   
Operation Name"validateAttribute"
ParametersObject [] {  beanInstanceattribute }

where:

  • beanInstance is an object of type javax.management.ObjectName that specifies:

    An MBean instance.

  • attribute is an object of type javax.management.Attribute that specifies:

    The name of the attribute and a proposed value.

SignatureString [] { "javax.management.ObjectName", "javax.management.Attribute" }
Returns void
Exceptions
  • javax.management.AttributeNotFoundException
    AttributeNotFoundException if the attribute is not specified for the interface.
  • javax.management.InvalidAttributeValueException
    InvalidAttributeValueException if the value violates any of the constraints
  • javax.management.MBeanException
    MBeanException if the interface is not recognized.
  • javax.management.ReflectionException
    ReflectionException if the attribute type or the bean interface cannot be loaded.

validateAttributes

Validates a set of attributes with a single invocation.

If all of the attribute values are valid, this operation returns an empty AttributeList. For each invalid attribute value, operation stores an exception the AttributeList that is returned.

There are two signatures for this operation. One takes the interface name of an MBean type and the other takes the javax.management.ObjectName of an MBean instance.

For more information, see:

   
Operation Name"validateAttributes"
ParametersObject [] {  beanInterfaceattributes }

where:

  • beanInterface is an object of type java.lang.String that specifies:

    The fully-qualified interface name of the MBean that contains the attributes.

  • attributes is an object of type javax.management.AttributeList that specifies:

    The names of the attributes and proposed values.

SignatureString [] { "java.lang.String", "javax.management.AttributeList" }
ReturnsAttributeList
Exceptions
  • javax.management.MBeanException
    MBeanException if the interface is not recognized.
  • javax.management.ReflectionException
    ReflectionException if the attribute type or the bean interface cannot be loaded.

validateAttributes

Validates a set of attributes with a single invocation.

If all of the attribute values are valid, this operation returns an empty AttributeList. For each invalid attribute value, operation stores an exception the AttributeList that is returned.

There are two signatures for this operation. One takes the interface name of an MBean type and the other takes the javax.management.ObjectName of an MBean instance.

For more information, see:

   
Operation Name"validateAttributes"
ParametersObject [] {  beanInstanceattributes }

where:

  • beanInstance is an object of type javax.management.ObjectName that specifies:

    An MBean instance.

  • attributes is an object of type javax.management.AttributeList that specifies:

    the names of the attributes and a proposed values.

SignatureString [] { "javax.management.ObjectName", "javax.management.AttributeList" }
ReturnsAttributeList
Exceptions
  • javax.management.MBeanException
    MBeanException if the interface is not recognized.
  • javax.management.ReflectionException
    ReflectionException if the attribute type or the bean interface cannot be loaded.