KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > hivemind > service > impl > AutowiringStrategyContribution


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

15 package org.apache.hivemind.service.impl;
16
17 import org.apache.hivemind.Orderable;
18 import org.apache.hivemind.service.AutowiringStrategy;
19
20 /**
21  * Contribution to the <code>org.apache.hivemind.service.Autowiring</code>
22  * configuration extension point; used to provide
23  * a {@link org.apache.hivemind.service.AutowiringStrategy} implementation
24  * and advice on ordering the service.
25  *
26  * @author Achim Huegen
27  */

28 public class AutowiringStrategyContribution implements Orderable
29 {
30     private String JavaDoc _name;
31     private String JavaDoc _precedingNames;
32     private String JavaDoc _followingNames;
33
34     private AutowiringStrategy _strategy;
35
36     public AutowiringStrategyContribution()
37     {
38     }
39     
40     public AutowiringStrategyContribution(AutowiringStrategy strategy, String JavaDoc name, String JavaDoc precedingNames, String JavaDoc followingNames)
41     {
42         _strategy = strategy;
43         _name = name;
44         _precedingNames = precedingNames;
45         _followingNames = followingNames;
46     }
47
48     public AutowiringStrategy getStrategy()
49     {
50         return _strategy;
51     }
52
53     public void setStrategy(AutowiringStrategy strategy)
54     {
55         _strategy = strategy;
56     }
57
58     public String JavaDoc getFollowingNames()
59     {
60         return _followingNames;
61     }
62
63     public String JavaDoc getName()
64     {
65         return _name;
66     }
67
68     public String JavaDoc getPrecedingNames()
69     {
70         return _precedingNames;
71     }
72
73     public void setFollowingNames(String JavaDoc string)
74     {
75         _followingNames = string;
76     }
77
78     public void setName(String JavaDoc string)
79     {
80         _name = string;
81     }
82
83     public void setPrecedingNames(String JavaDoc string)
84     {
85         _precedingNames = string;
86     }
87
88 }
89
Popular Tags