01: // Copyright 2006, 2007 The Apache Software Foundation
02: //
03: // Licensed under the Apache License, Version 2.0 (the "License");
04: // you may not use this file except in compliance with the License.
05: // You may obtain a copy of the License at
06: //
07: // http://www.apache.org/licenses/LICENSE-2.0
08: //
09: // 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.tapestry.internal.services;
16:
17: import org.apache.tapestry.annotations.Parameter;
18:
19: /**
20: * Used by {@link org.apache.tapestry.internal.services.ParameterWorkerTest}.
21: */
22: public class ParameterComponent {
23: @Parameter
24: private String _object;
25:
26: @Parameter(cache=false,name="uncached",defaultPrefix="literal")
27: private String _uncachedObject;
28:
29: @Parameter(required=true)
30: private int _primitive;
31:
32: @Parameter
33: private String _invariantObject;
34:
35: @Parameter
36: private long _invariantPrimitive;
37:
38: public String getObject() {
39: return _object;
40: }
41:
42: public void setObject(String object) {
43: _object = object;
44: }
45:
46: public int getPrimitive() {
47: return _primitive;
48: }
49:
50: public void setPrimitive(int primitive) {
51: _primitive = primitive;
52: }
53:
54: public String getUncachedObject() {
55: return _uncachedObject;
56: }
57:
58: public void setUncachedObject(String uncachedObject) {
59: _uncachedObject = uncachedObject;
60: }
61:
62: public String getInvariantObject() {
63: return _invariantObject;
64: }
65:
66: public void setInvariantObject(String invariantObject) {
67: _invariantObject = invariantObject;
68: }
69:
70: public long getInvariantPrimitive() {
71: return _invariantPrimitive;
72: }
73:
74: public void setInvariantPrimitive(long invariantPrimitive) {
75: _invariantPrimitive = invariantPrimitive;
76: }
77:
78: }
|