Package org.glassfish.admin.amx.annotation

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


        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;
                if (managedOp != null) {
View Full Code Here


    public static MBeanOperationInfo[] generateMBeanOperationInfos(final Collection<Method> methods) {
        final MBeanOperationInfo[] infos = new MBeanOperationInfo[methods.size()];

        int i = 0;
        for (final Method m : methods) {
            final ManagedOperation managed = m.getAnnotation(ManagedOperation.class);

            final String methodName = m.getName();
            final MBeanParameterInfo[] parameterInfos = parameterInfos(m);
            final int impact = managed == null ? MBeanOperationInfo.UNKNOWN : managed.impact();
            final String description = getDescription(m);
            final Descriptor descriptor = null;

            final MBeanOperationInfo info = new MBeanOperationInfo(
                    methodName,
View Full Code Here

            final Set<Method> operations) {
        final Method[] methods = intf.getMethods();

        for (final Method method : methods) {
            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;
                if (managedOp != null) {
View Full Code Here

    public static MBeanOperationInfo[] generateMBeanOperationInfos(final Collection<Method> methods) {
        final MBeanOperationInfo[] infos = new MBeanOperationInfo[methods.size()];

        int i = 0;
        for (final Method m : methods) {
            final ManagedOperation managed = m.getAnnotation(ManagedOperation.class);

            final String methodName = m.getName();
            final MBeanParameterInfo[] parameterInfos = parameterInfos(m);
            final int impact = managed == null ? MBeanOperationInfo.UNKNOWN : managed.impact();
            final String description = getDescription(m);

            final MBeanOperationInfo info = new MBeanOperationInfo(
                    methodName,
                    description,
View Full Code Here

            final Set<Method> operations) {
        final Method[] methods = intf.getMethods();

        for (final Method method : methods) {
            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;
                if (managedOp != null) {
View Full Code Here

    public static MBeanOperationInfo[] generateMBeanOperationInfos(final Collection<Method> methods) {
        final MBeanOperationInfo[] infos = new MBeanOperationInfo[methods.size()];

        int i = 0;
        for (final Method m : methods) {
            final ManagedOperation managed = m.getAnnotation(ManagedOperation.class);

            final String methodName = m.getName();
            final MBeanParameterInfo[] parameterInfos = parameterInfos(m);
            final int impact = managed == null ? MBeanOperationInfo.UNKNOWN : managed.impact();
            final String description = getDescription(m);

            final MBeanOperationInfo info = new MBeanOperationInfo(
                    methodName,
                    description,
View Full Code Here

TOP

Related Classes of org.glassfish.admin.amx.annotation.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.