示例#1
0
        public MBeanAttributeInfo Deserialize()
        {
            bool       readable   = access.IndexOf('r') != -1;
            bool       writable   = access.IndexOf('w') != -1;
            Descriptor descriptor = GetDescriptorFromFieldValues();

            return(new MBeanAttributeInfo(name, Description.Value, JmxTypeMapping.GetCLRTypeName(type), readable, writable,
                                          descriptor));
        }
示例#2
0
        public MBeanOperationInfo Deserialize()
        {
            OperationImpact impactEnum = OperationImpact.Unknown;

            if (impact != null && impact.IndexOf('r') != -1)
            {
                impactEnum |= OperationImpact.Info;
            }
            if (impact != null && impact.IndexOf('w') != -1)
            {
                impactEnum |= OperationImpact.Action;
            }
            XmlQualifiedName typeQualifiedName = null;

            if (Output != null)
            {
                typeQualifiedName = Output.type;
            }
            return(new MBeanOperationInfo(name, Description.Value, JmxTypeMapping.GetCLRTypeName(typeQualifiedName),
                                          Input.EmptyIfNull().Select(x => x.Deserialize()).ToArray(),
                                          impactEnum, GetDescriptorFromFieldValues()));
        }
示例#3
0
 public object Deserialize()
 {
     return(SimpleType.CreateSimpleType(System.Type.GetType(JmxTypeMapping.GetCLRTypeName(Type), true)));
 }
示例#4
0
 public MBeanParameterInfo Deserialize()
 {
     return(new MBeanParameterInfo(name, Description.Value, JmxTypeMapping.GetCLRTypeName(type), GetDescriptorFromFieldValues()));
 }