KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > fractal > fraclet > annotation > FractalAC


1 /*==============================================================================
2  Fraclet annotation - Copyright (C) 2002-2006 INRIA Futurs / LIFL
3  Fractal Component Model (contact: fractal@objectweb.org)
4
5  This library is free software; you can redistribute it and/or modify it under
6  the terms of the GNU Lesser General Public License as published by the Free
7  Software Foundation; either version 2.1 of the License, or any later version.
8
9  This library is distributed in the hope that it will be useful, but WITHOUT ANY
10  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11  PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
12
13  You should have received a copy of the GNU Lesser General Public License along
14  with this library; if not, write to the Free Software Foundation, Inc.,
15  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
17  Initial developer(s): Nicolas Pessemier (nicolas.pessemier@lifl.fr)
18  ==============================================================================*/

19
20 package org.objectweb.fractal.fraclet.annotation;
21
22 import java.lang.annotation.ElementType JavaDoc;
23 import java.lang.annotation.Target JavaDoc;
24
25 import spoon.aval.annotation.structure.Inside;
26 import spoon.aval.annotation.structure.Prohibits;
27 import spoon.processing.Severity;
28
29 /**
30  * An annotation to manage the automatic introduction of the Fractal attribute
31  * controller
32  *
33  * @author Nicolas Pessemier <Nicolas.Pessemier@lifl.fr>
34  *
35  */

36 @Inside(value=FractalComponent.class,severity=Severity.WARNING)
37 @Prohibits(FractalBC.class)
38 @Target JavaDoc(ElementType.FIELD)
39 public @interface FractalAC {
40     /**
41      *
42      * @return used to parameterize a Fractal component (see Fractal-ADL for
43      * more details)
44      */

45     String JavaDoc argument() default "";
46     
47     /**
48      *
49      * @return the initial value of the field
50      */

51     String JavaDoc value() default "";
52 }
53
Popular Tags