KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas > resource > JCAActivationSpec


1 /*
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19  * USA
20  *
21  * --------------------------------------------------------------------------
22  * $Id: JCAActivationSpec.java,v 1.3 2005/04/26 16:19:06 ehardesty Exp $
23  * --------------------------------------------------------------------------
24  */

25
26 package org.objectweb.jonas.resource;
27
28 // JOnAS Imports
29
import java.util.List JavaDoc;
30
31 import org.objectweb.jonas.management.j2eemanagement.J2EEManagedObject;
32
33 /**
34  * MBean class for JCA ActivationSpec Management
35  *
36  * @author Eric Hardesty
37  *
38  */

39 public class JCAActivationSpec extends J2EEManagedObject {
40
41     // JOnAS Specific
42
/**
43      * Description
44      */

45     private String JavaDoc description = null;
46     /**
47      * Jndi name
48      */

49     private String JavaDoc jndiname = null;
50     /**
51      * Properties list associated with the ActivationSpec
52      */

53     private List JavaDoc prop = null;
54
55     /**
56      * MBean constructor
57      * @param oName object name of the managed object
58      * @param jndiname String of ActivationSpec jndi name
59      * @param description String of ActivationSpec description
60      * @param prop Properties of the ActivationSpec required properties
61      */

62     public JCAActivationSpec(String JavaDoc oName, String JavaDoc jndiname, String JavaDoc description, List JavaDoc prop) {
63         super(oName);
64         this.jndiname = jndiname;
65         this.description = description;
66         this.prop = prop;
67     }
68
69     /**
70      * return the description
71      * @return String description
72      */

73     public String JavaDoc getDescription() {
74         return description;
75     }
76
77     /**
78      * return the jndi name
79      * @return String jndi name
80      */

81     public String JavaDoc getJndiName() {
82         return jndiname;
83     }
84
85     /**
86      * return the ActivationSpec required property list
87      * @return List ActivationSpec properties
88      */

89     public List JavaDoc getPropertiesList() {
90         return prop;
91     }
92
93 }
94
Popular Tags