Examples of ManagedAttribute


Examples of com.ecyrd.simplejmx.ManagedAttribute

       
        if( m_mbean == null ) throw new NotCompliantMBeanException("Must annotate object with @MBean");
       
        for( Method m : mbean.getClass().getMethods() )
        {
            ManagedAttribute a = m.getAnnotation( ManagedAttribute.class );
           
            if( a != null )
            {
                createNewAttribute( m, a );
            }
View Full Code Here

Examples of org.activiti.management.jmx.annotations.ManagedAttribute

      if (method.getDeclaringClass() != managedClass) {
        continue;
      }

      LOG.trace("Extracting attributes and operations from method: {}", method);
      ManagedAttribute ma = method.getAnnotation(ManagedAttribute.class);
      if (ma != null) {
        String key;
        String desc = ma.description();
        Method getter = null;
        Method setter = null;

        if (ReflectUtil.isGetter(method)) {
          key = ReflectUtil.getGetterShorthandName(method);
View Full Code Here

Examples of org.apache.camel.api.management.ManagedAttribute

    private void doExtractAttributesAndOperations(Class<?> managedClass, Map<String, ManagedAttributeInfo> attributes, Set<ManagedOperationInfo> operations) {
        LOG.trace("Extracting attributes and operations from class: {}", managedClass);
        for (Method method : managedClass.getDeclaredMethods()) {
            LOG.trace("Extracting attributes and operations from method: {}", method);

            ManagedAttribute ma = method.getAnnotation(ManagedAttribute.class);
            if (ma != null) {
                String key;
                String desc = ma.description();
                Method getter = null;
                Method setter = null;

                if (IntrospectionSupport.isGetter(method)) {
                    key = IntrospectionSupport.getGetterShorthandName(method);
View Full Code Here

Examples of org.apache.camel.api.management.ManagedAttribute

    private void doExtractAttributesAndOperations(Class<?> managedClass, Map<String, ManagedAttributeInfo> attributes, Set<ManagedOperationInfo> operations) {
        LOG.trace("Extracting attributes and operations from class: {}", managedClass);
        for (Method method : managedClass.getDeclaredMethods()) {
            LOG.trace("Extracting attributes and operations from method: {}", method);

            ManagedAttribute ma = method.getAnnotation(ManagedAttribute.class);
            if (ma != null) {
                String key;
                String desc = ma.description();
                Method getter = null;
                Method setter = null;

                if (IntrospectionSupport.isGetter(method)) {
                    key = IntrospectionSupport.getGetterShorthandName(method);
View Full Code Here

Examples of org.apache.camel.api.management.ManagedAttribute

    }

    private void extractAttributesAndOperations(Object managedBean, Map<String, ManagedAttributeInfo> attributes, List<ManagedOperationInfo> operations) {
        for (Method method : managedBean.getClass().getMethods()) {

            ManagedAttribute ma = method.getAnnotation(ManagedAttribute.class);
            if (ma != null) {
                String key;
                String desc = ma.description();
                Method getter = null;
                Method setter = null;

                if (IntrospectionSupport.isGetter(method)) {
                    key = IntrospectionSupport.getGetterShorthandName(method);
View Full Code Here

Examples of org.apache.camel.api.management.ManagedAttribute

            if (cacheInfo.method.getDeclaringClass() != managedClass) {
                continue;
            }

            LOG.trace("Extracting attributes and operations from method: {}", cacheInfo.method);
            ManagedAttribute ma = cacheInfo.method.getAnnotation(ManagedAttribute.class);
            if (ma != null) {
                String key;
                String desc = ma.description();
                Method getter = null;
                Method setter = null;
                boolean mask = ma.mask();

                if (cacheInfo.isGetter) {
                    key = cacheInfo.getterOrSetterShorthandName;
                    getter = cacheInfo.method;
                } else if (cacheInfo.isSetter) {
View Full Code Here

Examples of org.apache.camel.api.management.ManagedAttribute

            if (cacheInfo.method.getDeclaringClass() != managedClass) {
                continue;
            }

            LOG.trace("Extracting attributes and operations from method: {}", cacheInfo.method);
            ManagedAttribute ma = cacheInfo.method.getAnnotation(ManagedAttribute.class);
            if (ma != null) {
                String key;
                String desc = ma.description();
                Method getter = null;
                Method setter = null;

                if (cacheInfo.isGetter) {
                    key = cacheInfo.getterOrSetterShorthandName;
View Full Code Here

Examples of org.apache.cxf.management.annotation.ManagedAttribute

        }
       
        Method[] methods = clazz.getDeclaredMethods();
       
        for (int i = 0; i < methods.length; i++) {
            ManagedAttribute ma = getManagedAttribute(methods[i]);
            //add Attribute to the ModelMBean
            if (ma != null) {
                String attributeName = getAttributeName(methods[i].getName());               
                if (!supporter.checkAttribute(attributeName)) {
                    String attributeType = getAttributeType(methods, attributeName);
View Full Code Here

Examples of org.eclipse.jetty.util.annotation.ManagedAttribute

                    // Process Method Annotations

                    for (Method method : oClass.getDeclaredMethods())
                    {
                        ManagedAttribute methodAttributeAnnotation = method.getAnnotation(ManagedAttribute.class);

                        if (methodAttributeAnnotation != null)
                        {
                            // TODO sort out how a proper name could get here, its a method name as an attribute at this point.
                            if (LOG.isDebugEnabled())
View Full Code Here

Examples of org.glassfish.admin.amx.annotation.ManagedAttribute

        final Method[] methods = intf.getMethods();

        for (final Method method : methods) {
            final String methodName = method.getName();

            final ManagedAttribute managedAttr = method.getAnnotation(ManagedAttribute.class);
            final ManagedOperation managedOp = method.getAnnotation(ManagedOperation.class);

            if (managedAttr != null) {
                String attrName = null;
                final int numArgs = method.getParameterTypes().length;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.