1 /* 2 Spring-Annotation, an easy way to configre Spring-Framework without all that XML. 3 Copyright (C) 2007 Rodrigo Urubatan Ferreira Jardim (http://www.urubatan.com.br) 4 5 This library is free software; you can redistribute it and/or 6 modify it under the terms of the GNU Lesser General Public 7 License as published by the Free Software Foundation; either 8 version 2.1 of the License, or (at your option) any later version. 9 10 This library is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 15 You should have received a copy of the GNU Lesser General Public 16 License along with this library; if not, write to the Free Software 17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 19 <a href="http://www.gnu.org/licenses/lgpl.html">http://www.gnu.org/licenses/lgpl.html</a> 20 */ 21 package net.sourceforge.sannotations.annotation; 22 23 import java.lang.annotation.Documented; 24 import java.lang.annotation.ElementType; 25 import java.lang.annotation.Retention; 26 import java.lang.annotation.RetentionPolicy; 27 import java.lang.annotation.Target; 28 29 /*** 30 * Optional way to configure properties of a bean, the preferred way is to work with autowire. 31 * @author Urubatan 32 */ 33 @Retention(RetentionPolicy.RUNTIME) 34 @Target(ElementType.FIELD) 35 @Documented 36 public @interface Property { 37 /*** 38 * equivalent to the natural value of the property, do not use it if you want to reference another bean 39 */ 40 String value() default ""; 41 /*** 42 * name of another configured bean to use as the value for this property 43 */ 44 String bean() default ""; 45 }