|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MBeanTypeService
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
".
Field Summary | |
---|---|
static String |
OBJECT_NAME
This is the ObjectName under which this service is registered in the MBeanServer |
Method Summary | |
---|---|
ModelMBeanInfo |
getMBeanInfo(String beanInterface)
Returns the MBean info object for the specified interface. |
String[] |
getSubtypes(String baseInterface)
Returns the names of all MBean types that extend or implement the specified MBean. |
void |
validateAttribute(ObjectName beanInstance,
Attribute attribute)
Validates that the specified attribute value complies with the contraints for that attribute. |
void |
validateAttribute(String beanInterface,
Attribute attribute)
Validates that the specified attribute value complies with the contraints for that attribute. |
AttributeList |
validateAttributes(ObjectName beanInstance,
AttributeList attributes)
Validates a set of attributes with a single invocation. |
AttributeList |
validateAttributes(String beanInterface,
AttributeList attributes)
Validates a set of attributes with a single invocation. |
Field Detail |
---|
static final String OBJECT_NAME
Method Detail |
---|
ModelMBeanInfo getMBeanInfo(String beanInterface) throws OperationsException
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" });
beanInterface
- The fully-qualified interface name of the MBean.
OperationsException
String[] getSubtypes(String baseInterface)
Returns the names of all MBean types that extend or implement the specified MBean.
baseInterface
- The fully-qualified interface name of the base MBean.
void validateAttribute(String beanInterface, Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
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.
beanInterface
- The fully-qualified interface name of the MBean that contains the attribute.attribute
- The name of the attribute and a proposed value.
AttributeNotFoundException
- if the attribute is not specified for the interface.
InvalidAttributeValueException
- if the value violates any of the constraints
MBeanException
- if the interface is not recognized.
ReflectionException
- if the attribute type or the bean interface cannot be loaded.AttributeList validateAttributes(String beanInterface, AttributeList attributes) throws MBeanException, ReflectionException
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.
beanInterface
- The fully-qualified interface name of the MBean that contains the attributes.attributes
- The names of the attributes and proposed values.
MBeanException
- if the interface is not recognized.
ReflectionException
- if the attribute type or the bean interface cannot be loaded.MBeanTypeService.validateAttribute(java.lang.String, javax.management.Attribute)
void validateAttribute(ObjectName beanInstance, Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
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.
beanInstance
- An MBean instance.attribute
- The name of the attribute and a proposed value.
AttributeNotFoundException
- if the attribute is not specified for the interface.
InvalidAttributeValueException
- if the value violates any of the constraints
MBeanException
- if the interface is not recognized.
ReflectionException
- if the attribute type or the bean interface cannot be loaded.AttributeList validateAttributes(ObjectName beanInstance, AttributeList attributes) throws MBeanException, ReflectionException
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.
beanInstance
- An MBean instance.attributes
- the names of the attributes and a proposed values.
MBeanException
- if the interface is not recognized.
ReflectionException
- if the attribute type or the bean interface cannot be loaded.MBeanTypeService.validateAttributes(String beanInterface, AttributeList)
|
Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |