|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
BuilderParameter.java | - | 100% | 100% | 100% |
|
1 |
// Copyright 2004 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 java.util.ArrayList;
|
|
18 |
import java.util.List;
|
|
19 |
|
|
20 |
import org.apache.hivemind.impl.BaseLocatable;
|
|
21 |
|
|
22 |
/**
|
|
23 |
* Parameter object used with {@link org.apache.hivemind.service.impl.BuilderFactory}.
|
|
24 |
*
|
|
25 |
* @author Howard Lewis Ship
|
|
26 |
*/
|
|
27 |
public class BuilderParameter extends BaseLocatable |
|
28 |
{ |
|
29 |
private String _className;
|
|
30 |
private List _properties = new ArrayList(); |
|
31 |
private List _parameters = new ArrayList(); |
|
32 |
private List _events = new ArrayList(); |
|
33 |
private String _initializeMethod;
|
|
34 |
private boolean _autowireServices; |
|
35 |
|
|
36 | 235 |
public String getClassName()
|
37 |
{ |
|
38 | 235 |
return _className;
|
39 |
} |
|
40 |
|
|
41 | 21 |
public void addParameter(BuilderFacet facet) |
42 |
{ |
|
43 | 21 |
_parameters.add(facet); |
44 |
} |
|
45 |
|
|
46 | 235 |
public List getParameters()
|
47 |
{ |
|
48 | 235 |
return _parameters;
|
49 |
} |
|
50 |
|
|
51 | 1344 |
public void addProperty(BuilderFacet facet) |
52 |
{ |
|
53 | 1344 |
_properties.add(facet); |
54 |
} |
|
55 |
|
|
56 | 235 |
public List getProperties()
|
57 |
{ |
|
58 | 235 |
return _properties;
|
59 |
} |
|
60 |
|
|
61 | 233 |
public void setClassName(String string) |
62 |
{ |
|
63 | 233 |
_className = string; |
64 |
} |
|
65 |
|
|
66 | 3 |
public void addEventRegistration(EventRegistration registration) |
67 |
{ |
|
68 | 3 |
_events.add(registration); |
69 |
} |
|
70 |
|
|
71 | 235 |
public List getEventRegistrations()
|
72 |
{ |
|
73 | 235 |
return _events;
|
74 |
} |
|
75 |
|
|
76 | 235 |
public String getInitializeMethod()
|
77 |
{ |
|
78 | 235 |
return _initializeMethod;
|
79 |
} |
|
80 |
|
|
81 | 7 |
public void setInitializeMethod(String string) |
82 |
{ |
|
83 | 7 |
_initializeMethod = string; |
84 |
} |
|
85 |
|
|
86 | 235 |
public boolean getAutowireServices() |
87 |
{ |
|
88 | 235 |
return _autowireServices;
|
89 |
} |
|
90 |
|
|
91 | 230 |
public void setAutowireServices(boolean autowireServices) |
92 |
{ |
|
93 | 230 |
_autowireServices = autowireServices; |
94 |
} |
|
95 |
|
|
96 |
} |
|
97 |
|
|