    001    /*
    002     * Copyright 2009 Red Hat, Inc.
    003     * Red Hat licenses this file to you under the Apache License, version
    004     * 2.0 (the "License"); you may not use this file except in compliance
    005     * with the License.  You may obtain a copy of the License at
    006     *    http://www.apache.org/licenses/LICENSE-2.0
    007     * Unless required by applicable law or agreed to in writing, software
    008     * distributed under the License is distributed on an "AS IS" BASIS,
    009     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    010     * implied.  See the License for the specific language governing
    011     * permissions and limitations under the License.
    012     */
    013
    014    package org.hornetq.api.core.management;
    015
    016    import java.lang.annotation.ElementType;
    017    import java.lang.annotation.Inherited;
    018    import java.lang.annotation.Retention;
    019    import java.lang.annotation.RetentionPolicy;
    020    import java.lang.annotation.Target;
    021
    022    import javax.management.MBeanOperationInfo;
    023
    024    /**
    025     * Info for a MBean Operation.
    026     * <b>
    027     * This annotation is used only for methods which can be invoked
    028     * through a GUI.
    029     *
    030     * @author <a href="mailto:jmesnil@redhat.com">Jeff Mesnil</a>
    031     */
    032    @Retention(RetentionPolicy.RUNTIME)
    033    @Target(ElementType.METHOD)
    034    @Inherited
    035    public @interface Operation
    036    {
    037       String desc();
    038
    039       int impact() default MBeanOperationInfo.INFO;
    040    }