01: /*
02: * Copyright 2002-2007 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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:
17: package org.springframework.jmx.export.metadata;
18:
19: /**
20: * Metadata about JMX operation parameters.
21: * Used in conjunction with a {@link ManagedOperation} attribute.
22: *
23: * @author Rob Harrop
24: * @since 1.2
25: */
26: public class ManagedOperationParameter {
27:
28: private int index = 0;
29:
30: private String name = "";
31:
32: private String description = "";
33:
34: /**
35: * Set the index of this parameter in the operation signature.
36: */
37: public void setIndex(int index) {
38: this .index = index;
39: }
40:
41: /**
42: * Return the index of this parameter in the operation signature.
43: */
44: public int getIndex() {
45: return this .index;
46: }
47:
48: /**
49: * Set the name of this parameter in the operation signature.
50: */
51: public void setName(String name) {
52: this .name = name;
53: }
54:
55: /**
56: * Return the name of this parameter in the operation signature.
57: */
58: public String getName() {
59: return this .name;
60: }
61:
62: /**
63: * Set a description for this parameter.
64: */
65: public void setDescription(String description) {
66: this .description = description;
67: }
68:
69: /**
70: * Return a description for this parameter.
71: */
72: public String getDescription() {
73: return this.description;
74: }
75:
76: }
|