KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletcontainer > pci > model > MessageListener


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.services.portletcontainer.pci.model;
6
7 import java.util.*;
8 import org.exoplatform.Constants;
9
10 /**
11  * Jul 11, 2004
12  * @author: Tuan Nguyen
13  * @email: tuan08@users.sourceforge.net
14  * @version: $Id: MessageListener.java,v 1.1 2004/07/13 02:31:13 tuan08 Exp $
15  */

16 public class MessageListener {
17     private String JavaDoc listenerName;
18     private String JavaDoc listenerClass;
19     private List description;
20   
21     public List getDescription() {
22     if(description == null) return Constants.EMPTY_LIST ;
23         return description;
24     }
25
26     public void setDescription(List description) {
27         this.description = description;
28     }
29
30   public void addDescription(Description desc) {
31     if(description == null) description = new ArrayList() ;
32     this.description.add(desc);
33   }
34   
35     public String JavaDoc getListenerClass() {
36         return listenerClass;
37     }
38
39     public void setListenerClass(String JavaDoc listenerClass) {
40         this.listenerClass = listenerClass;
41     }
42
43     public String JavaDoc getListenerName() {
44         return listenerName;
45     }
46
47     public void setListenerName(String JavaDoc listenerName) {
48         this.listenerName = listenerName;
49     }
50 }
Popular Tags