org.apache.servicemix.jbi.management
Class CachedAttribute

java.lang.Object
  extended by org.apache.servicemix.jbi.management.CachedAttribute

public class CachedAttribute
extends Object

A simple holder for an Attribute and a PropertyDescriptor

Version:
$Revision: 564607 $

Constructor Summary
CachedAttribute(Attribute attr)
          Constructor
 
Method Summary
 Attribute getAttribute()
           
 MBeanAttributeInfo getAttributeInfo()
           
 Object getBean()
           
 String getName()
           
 PropertyDescriptor getPropertyDescriptor()
           
 void setAttribute(Attribute attribute)
          Set the Attribute
 void setAttributeInfo(MBeanAttributeInfo attributeInfo)
           
 void setBean(Object bean)
           
 void setName(String name)
           
 void setPropertyDescriptor(PropertyDescriptor propertyDescriptor)
           
 void updateAttribute(org.apache.commons.beanutils.PropertyUtilsBean beanUtils, Attribute attr)
          Update the Attribute
 void updateAttributeValue(Object value)
          Update that attribute value
 void updateValue(org.apache.commons.beanutils.PropertyUtilsBean beanUtil)
          Ensdure attribute value is up to date
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedAttribute

public CachedAttribute(Attribute attr)
Constructor

Parameters:
attr -
Method Detail

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.

getAttribute

public Attribute getAttribute()
Returns:
Returns the attribute.

setAttribute

public void setAttribute(Attribute attribute)
Set the Attribute

Parameters:
attribute -

updateValue

public void updateValue(org.apache.commons.beanutils.PropertyUtilsBean beanUtil)
                 throws MBeanException
Ensdure attribute value is up to date

Parameters:
beanUtil -
Throws:
MBeanException

updateAttribute

public void updateAttribute(org.apache.commons.beanutils.PropertyUtilsBean beanUtils,
                            Attribute attr)
                     throws IllegalAccessException,
                            InvocationTargetException,
                            NoSuchMethodException
Update the Attribute

Parameters:
beanUtils -
attr - The attribute to set.
Throws:
IllegalAccessException
InvocationTargetException
NoSuchMethodException

updateAttributeValue

public void updateAttributeValue(Object value)
Update that attribute value

Parameters:
value -

getBean

public Object getBean()
Returns:
Returns the bean.

setBean

public void setBean(Object bean)
Parameters:
bean - The bean to set.

getPropertyDescriptor

public PropertyDescriptor getPropertyDescriptor()
Returns:
Returns the propertyDescriptor.

setPropertyDescriptor

public void setPropertyDescriptor(PropertyDescriptor propertyDescriptor)
Parameters:
propertyDescriptor - The propertyDescriptor to set.

getAttributeInfo

public MBeanAttributeInfo getAttributeInfo()
Returns:
Returns the attributeInfo.

setAttributeInfo

public void setAttributeInfo(MBeanAttributeInfo attributeInfo)
Parameters:
attributeInfo - The attributeInfo to set.


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.