KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > jmx > export > metadata > ManagedNotification


1 /*
2  * Copyright 2002-2005 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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 import org.springframework.util.StringUtils;
20
21 /**
22  * Metadata that indicates a JMX notification emitted by a bean.
23  *
24  * @author Rob Harrop
25  * @since 2.0
26  */

27 public class ManagedNotification {
28
29     private String JavaDoc[] notificationTypes;
30
31     private String JavaDoc name;
32
33     private String JavaDoc description;
34
35
36     /**
37      * Set a single notification type, or a list of notifcation types
38      * as comma-delimited String.
39      */

40     public void setNotificationType(String JavaDoc notificationType) {
41         this.notificationTypes = StringUtils.commaDelimitedListToStringArray(notificationType);
42     }
43
44     public void setNotificationTypes(String JavaDoc[] notificationTypes) {
45         this.notificationTypes = notificationTypes;
46     }
47
48     public String JavaDoc[] getNotificationTypes() {
49         return notificationTypes;
50     }
51
52     public void setName(String JavaDoc name) {
53         this.name = name;
54     }
55
56     public String JavaDoc getName() {
57         return name;
58     }
59
60     public void setDescription(String JavaDoc description) {
61         this.description = description;
62     }
63
64     public String JavaDoc getDescription() {
65         return description;
66     }
67
68 }
69
Popular Tags