001    /**
002     * $Id: DontLogMe.java,v 1.1 2010/01/05 13:26:17 oboehm Exp $
003     *
004     * Copyright (c) 2009 by Oliver Boehm
005     *
006     * Licensed under the Apache License, Version 2.0 (the "License");
007     * you may not use this file except in compliance with the License.
008     * You may obtain a copy of the License at
009     *
010     *   http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing, software
013     * distributed under the License is distributed on an "AS IS" BASIS,
014     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express orimplied.
015     * See the License for the specific language governing permissions and
016     * limitations under the License.
017     *
018     * (c)reated 08.06.2009 by oliver (ob@aosd.de)
019     */
020    package patterntesting.runtime.annotation;
021    
022    import java.lang.annotation.*;
023    
024    /**
025     * E.g. the ProfileAspect together with the AbstractProfileAspect logs also
026     * the arguments for long running methods. But sometimes you don't want to see
027     * the value of an argument, e.g.
028     * <ul>
029     *  <li>
030     *      if the argument is a password (you should never log passwords!)
031     *  </li>
032     *  <li>
033     *      if the argument contains personal infos which should not appear in
034     *      the log (like the age of a woman;-)
035     *  </li>
036     *  <li>
037     *      if the value of the argument would be too long and would make the
038     *      output unreadable
039     *  </li>
040     *  <li>
041     *      or other reasons.
042     *  </li>
043     * </ul>
044     * Now you can prefix these arguments with this annotation.
045     *
046     * @author <a href="boehm@javatux.de">oliver</a>
047     * @since 08.06.2009
048     * @version $Revision: 1.1 $
049     */
050    @Documented
051    @Retention(RetentionPolicy.RUNTIME)
052    @Target({ElementType.PARAMETER})
053    public @interface DontLogMe {
054    
055    }
056    
057    /**
058     * $Log: DontLogMe.java,v $
059     * Revision 1.1  2010/01/05 13:26:17  oboehm
060     * begin with 1.0
061     *
062     * Revision 1.2  2009/12/19 22:34:09  oboehm
063     * trailing spaces removed
064     *
065     * Revision 1.1  2009/06/10 19:56:57  oboehm
066     * DontLogMe annotation added to hide parameters logged by @ProfileMe
067     *
068     * $Source: /cvsroot/patterntesting/PatternTesting10/patterntesting-rt/src/main/java/patterntesting/runtime/annotation/DontLogMe.java,v $
069     */