01: /*
02: * Copyright 2002-2005 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 conjuction with a ManagedOperation attribute.
22: *
23: * @author Rob Harrop
24: * @since 1.2
25: * @see ManagedOperation
26: */
27: public class ManagedOperationParameter {
28:
29: private int index = 0;
30:
31: private String name = "";
32:
33: private String description = "";
34:
35: /**
36: * Set the index of the parameter in the operation signature.
37: */
38: public void setIndex(int index) {
39: this .index = index;
40: }
41:
42: /**
43: * Return the index of the parameter in the operation signature.
44: */
45: public int getIndex() {
46: return index;
47: }
48:
49: /**
50: * Set the name of the parameter in the operation signature.
51: */
52: public void setName(String name) {
53: this .name = name;
54: }
55:
56: /**
57: * Return the name of the parameter in the operation signature.
58: */
59: public String getName() {
60: return this .name;
61: }
62:
63: public void setDescription(String description) {
64: this .description = description;
65: }
66:
67: public String getDescription() {
68: return description;
69: }
70:
71: }
|