1 /* 2 Copyright (c) 2006, University of Tromsø 3 All rights reserved. 4 5 Redistribution and use in source and binary forms, with or without 6 modification, are permitted provided that the following conditions are met: 7 8 * Redistributions of source code must retain the above copyright notice, this list 9 of conditions and the following disclaimer. 10 11 * Redistributions in binary form must reproduce the above copyright notice, this 12 list of conditions and the following disclaimer in the documentation and/or other 13 materials provided with the distribution. 14 15 * Neither the name of the University of Tromsø nor the names of its contributors may 16 be used to endorse or promote products derived from this software without specific 17 prior written permission. 18 19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 20 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT 22 SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 23 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 24 TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 25 BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 27 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 28 DAMAGE. 29 */ 30 31 package argos.annotation; 32 33 import java.lang.annotation.ElementType; 34 import java.lang.annotation.Retention; 35 import java.lang.annotation.RetentionPolicy; 36 import java.lang.annotation.Target; 37 38 import javax.management.MBeanOperationInfo; 39 40 /** 41 * Created on 29.jun.2006 42 * 43 * This annotation is used to describe what impact invoking a operation will have 44 * 45 * @author Dan Peder Eriksen 46 */ 47 48 @Retention(RetentionPolicy.RUNTIME) 49 @Target(ElementType.METHOD) 50 public @interface Impact { 51 public static final int ACTION = MBeanOperationInfo.ACTION; 52 public static final int ACTION_INFO = MBeanOperationInfo.ACTION_INFO; 53 public static final int INFO = MBeanOperationInfo.INFO; 54 int value(); 55 }