org.jboss.mx.metadata
Class AttributeOperationResolver
java.lang.Object
org.jboss.mx.metadata.AttributeOperationResolver
- public class AttributeOperationResolver
- extends java.lang.Object
AttributeOperationResolver is a modified TST for mapping an Integer code against attribute and operation keys.
Note that this implementation was chosen to allow fast resolution of compound keys - namely the
operationName and signature[] passed to an MBean's invoke() method. For consistency it also
keeps track of attribute names (which are a single key), although for those a hashmap would
have done just as well.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttributeOperationResolver
public AttributeOperationResolver()
- Default constructor.
AttributeOperationResolver
public AttributeOperationResolver(MBeanInfo (src) info)
- Uses the AttributeInfo and OperationInfo arrays in the MBeanInfo to configure the
resolver. Each attribute and operation will be assigned a code which corresponds
to it's position in the info array.
AttributeOperationResolver
public AttributeOperationResolver(MBeanAttributeInfo (src) [] attributes,
MBeanOperationInfo (src) [] operations)
- Uses the AttributeInfo and OperationInfo arrays to configure the resolver.
Each attribute and operation will be assigned a code which corresponds to it's
position in the info array.
lookup
public java.lang.Integer lookup(java.lang.String actionName,
java.lang.String[] signature)
lookup
public java.lang.Integer lookup(java.lang.String attrName)
store
public void store(java.lang.String mname,
java.lang.String[] signature,
java.lang.Integer code)
store
public void store(java.lang.String attrName,
java.lang.Integer code)
createNode
protected AttributeOperationResolver.Node (src) createNode(java.lang.String key)
createValueNode
protected AttributeOperationResolver.Node (src) createValueNode(AttributeOperationResolver.Node (src) parent,
java.lang.String key)
createOrGetNode
protected AttributeOperationResolver.Node (src) createOrGetNode(AttributeOperationResolver.Node (src) parent,
java.lang.String key)