public class BeanFacade<B>
extends java.lang.Object
implements javax.management.DynamicMBean
| Constructor and Description |
|---|
BeanFacade(B bean,
BeanDefinition<B> beanDefinition) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,AttributeDefinition<?,B>> |
asNameToAttribute(java.lang.Iterable<AttributeDefinition<?,B>> attributes) |
protected java.util.Map<java.lang.String,OperationDefinition<B>> |
asNameToOperation(java.lang.Iterable<OperationDefinition<B>> operations) |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getAttribute(java.lang.String name) |
javax.management.AttributeList |
getAttributes(java.lang.String[] attributes) |
javax.management.MBeanInfo |
getMBeanInfo() |
protected javax.management.MBeanParameterInfo[] |
getMBeanParameterInfoFor(OperationDefinition<B> operation) |
int |
hashCode() |
java.lang.Object |
invoke(java.lang.String name,
java.lang.Object[] params,
java.lang.String[] signature) |
void |
setAttribute(javax.management.Attribute attribute) |
javax.management.AttributeList |
setAttributes(javax.management.AttributeList attributes) |
protected javax.management.MBeanAttributeInfo |
toMBeanAttribute(AttributeDefinition<?,B> attribute) |
protected javax.management.MBeanAttributeInfo[] |
toMBeanAttributes(java.lang.Iterable<AttributeDefinition<?,B>> attributes) |
protected javax.management.MBeanOperationInfo |
toMBeanOperation(OperationDefinition<B> operation) |
protected javax.management.MBeanOperationInfo[] |
toMBeanOperations(java.lang.Iterable<OperationDefinition<B>> operations) |
java.lang.String |
toString() |
public BeanFacade(@Nonnull
B bean,
@Nullable
BeanDefinition<B> beanDefinition)
public java.lang.Object getAttribute(java.lang.String name)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
getAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundExceptionjavax.management.MBeanExceptionjavax.management.ReflectionExceptionpublic void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
setAttribute in interface javax.management.DynamicMBeanjavax.management.AttributeNotFoundExceptionjavax.management.InvalidAttributeValueExceptionjavax.management.MBeanExceptionjavax.management.ReflectionExceptionpublic javax.management.AttributeList getAttributes(java.lang.String[] attributes)
getAttributes in interface javax.management.DynamicMBeanpublic javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
setAttributes in interface javax.management.DynamicMBeanpublic java.lang.Object invoke(java.lang.String name,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException,
javax.management.ReflectionException
invoke in interface javax.management.DynamicMBeanjavax.management.MBeanExceptionjavax.management.ReflectionExceptionpublic javax.management.MBeanInfo getMBeanInfo()
getMBeanInfo in interface javax.management.DynamicMBean@Nonnull
protected javax.management.MBeanOperationInfo[] toMBeanOperations(@Nonnull
java.lang.Iterable<OperationDefinition<B>> operations)
@Nonnull
protected javax.management.MBeanOperationInfo toMBeanOperation(@Nonnull
OperationDefinition<B> operation)
@Nonnull
protected javax.management.MBeanParameterInfo[] getMBeanParameterInfoFor(@Nonnull
OperationDefinition<B> operation)
@Nonnull
protected javax.management.MBeanAttributeInfo[] toMBeanAttributes(@Nonnull
java.lang.Iterable<AttributeDefinition<?,B>> attributes)
@Nonnull
protected javax.management.MBeanAttributeInfo toMBeanAttribute(@Nonnull
AttributeDefinition<?,B> attribute)
@Nonnull protected java.util.Map<java.lang.String,OperationDefinition<B>> asNameToOperation(@Nullable java.lang.Iterable<OperationDefinition<B>> operations)
@Nonnull protected java.util.Map<java.lang.String,AttributeDefinition<?,B>> asNameToAttribute(@Nullable java.lang.Iterable<AttributeDefinition<?,B>> attributes)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2016 echocat. All Rights Reserved.