Package org.jgroups.annotations

Examples of org.jgroups.annotations.ManagedOperation


                        }
                    }
                }
            }
            else if (method.isAnnotationPresent(ManagedOperation.class) || isMBeanAnnotationPresentWithExposeAll()){
                ManagedOperation op=method.getAnnotation(ManagedOperation.class);               
                String attName=method.getName();
                if(isSetMethod(method) || isGetMethod(method)) {
                    attName=attName.substring(3);
                }
                else if(isIsMethod(method)) {
                    attName=attName.substring(2);
                }
                //expose unless we already exposed matching attribute field
                boolean isAlreadyExposed=atts.containsKey(attName);
                if(!isAlreadyExposed) {
                    ops.add(new MBeanOperationInfo(op != null? op.description() : "", method));
                    if(log.isDebugEnabled()) {
                        log.debug("@Operation found for method " + method.getName());
                    }
                }               
            }                    
View Full Code Here


            if(method.isAnnotationPresent(ManagedAttribute.class) || method.isAnnotationPresent(Property.class)) {
                exposeManagedAttribute(method);
            }
            //or @ManagedOperation
            else if (method.isAnnotationPresent(ManagedOperation.class) || expose_all){
                ManagedOperation op=method.getAnnotation(ManagedOperation.class);
                ops.add(new MBeanOperationInfo(op != null? op.description() : "",method));
            }
        }
    }
View Full Code Here

            }
        }
    }*/

    private void exposeManagedOperation(Method method) {
        ManagedOperation op=method.getAnnotation(ManagedOperation.class);               
        String attName=method.getName();
        if(isSetMethod(method) || isGetMethod(method)) {
            attName=attName.substring(3);
        }
        else if(isIsMethod(method)) {
            attName=attName.substring(2);
        }
        //expose unless we already exposed matching attribute field
        boolean isAlreadyExposed=atts.containsKey(attName);
        if(!isAlreadyExposed) {
            ops.add(new MBeanOperationInfo(op != null? op.description() : "", method));
        }
    }
View Full Code Here

            }                    
        }
    }

    private void exposeManagedOperation(Method method) {
        ManagedOperation op=method.getAnnotation(ManagedOperation.class);               
        String attName=method.getName();
        if(isSetMethod(method) || isGetMethod(method)) {
            attName=attName.substring(3);
        }
        else if(isIsMethod(method)) {
            attName=attName.substring(2);
        }
        //expose unless we already exposed matching attribute field
        boolean isAlreadyExposed=atts.containsKey(attName);
        if(!isAlreadyExposed) {
            ops.add(new MBeanOperationInfo(op != null? op.description() : "", method));
            if(log.isDebugEnabled()) {
                log.debug("@Operation found for method " + method.getName());
            }
        }
    }
View Full Code Here

            }                    
        }
    }

    private void exposeManagedOperation(Method method) {
        ManagedOperation op=method.getAnnotation(ManagedOperation.class);               
        String attName=method.getName();
        if(isSetMethod(method) || isGetMethod(method)) {
            attName=attName.substring(3);
        }
        else if(isIsMethod(method)) {
            attName=attName.substring(2);
        }
        //expose unless we already exposed matching attribute field
        boolean isAlreadyExposed=atts.containsKey(attName);
        if(!isAlreadyExposed) {
            ops.add(new MBeanOperationInfo(op != null? op.description() : "", method));
        }
    }
View Full Code Here

            }                    
        }
    }

    private void exposeManagedOperation(Method method) {
        ManagedOperation op=method.getAnnotation(ManagedOperation.class);               
        String attName=method.getName();
        if(isSetMethod(method) || isGetMethod(method)) {
            attName=attName.substring(3);
        }
        else if(isIsMethod(method)) {
            attName=attName.substring(2);
        }
        //expose unless we already exposed matching attribute field
        boolean isAlreadyExposed=atts.containsKey(attName);
        if(!isAlreadyExposed) {
            ops.add(new MBeanOperationInfo(op != null? op.description() : "", method));
        }
    }
View Full Code Here

            }                    
        }
    }

    private void exposeManagedOperation(Method method) {
        ManagedOperation op=method.getAnnotation(ManagedOperation.class);               
        String attName=method.getName();
        if(isSetMethod(method) || isGetMethod(method)) {
            attName=attName.substring(3);
        }
        else if(isIsMethod(method)) {
            attName=attName.substring(2);
        }
        //expose unless we already exposed matching attribute field
        boolean isAlreadyExposed=atts.containsKey(attName);
        if(!isAlreadyExposed) {
            ops.add(new MBeanOperationInfo(op != null? op.description() : "", method));
            if(log.isDebugEnabled()) {
                log.debug("@Operation found for method " + method.getName());
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.jgroups.annotations.ManagedOperation

Copyright © 2018 www.massapicom. 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.