KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > attributes > test > Sample


1 /*
2  * Copyright 2003-2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.commons.attributes.test;
17
18 /**
19  * @@ThreadSafe ()
20  * @@Dependency ( SampleService.class, "sample" )
21  */

22 public class Sample extends SuperSample implements SampleIFJoin {
23     
24     /**
25      * @@ThreadSafe ()
26      */

27     public Object JavaDoc field;
28     
29     public Object JavaDoc noAttributesInSubClass;
30     
31     /**
32      * @@Dependency ( SampleService.class, "sample-some-method1" )
33      */

34     public void someMethod () {
35         
36     }
37
38     /**
39      * @@.param2 ThreadSafe ()
40      * @@.return Dependency ( SampleService.class, "sample-return" )
41      */

42     public Integer JavaDoc methodWithAttributes (int param1, int param2) {
43         return null;
44     }
45     
46     /**
47      * @@Dependency ( SampleService.class, "sample-some-method2" )
48      */

49     public void someMethod (int parameter) {
50         
51     }
52     
53     /**
54      * @@BeanAttribute ( 1, "a", anotherNumber = (56 - 14), name = "Smith, John \"Agent\"" )
55      */

56     public void methodWithNamedParameters () {
57         
58     }
59     
60     public void methodWithNoAttributes () {
61     }
62     
63     /**
64      * @@Dependency ( SampleService.class, "inner-sample" )
65      */

66     public static class InnerSample {
67     }
68     
69     /**
70      * @@Dependency ( SampleService.class, "sample-privateMethod" )
71      */

72     private void privateMethod () {
73         
74     }
75 }
Popular Tags