01: /*
02: * JOnAS: Java(TM) Open Application Server
03: * Copyright (C) 1999 Bull S.A.
04: * Contact: jonas-team@objectweb.org
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * 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 6648 2005-04-26 16:19:08Z ehardesty $
23: * --------------------------------------------------------------------------
24: */
25:
26: package org.objectweb.jonas.resource;
27:
28: // JOnAS Imports
29: import java.util.List;
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 description = null;
46: /**
47: * Jndi name
48: */
49: private String jndiname = null;
50: /**
51: * Properties list associated with the ActivationSpec
52: */
53: private List 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 oName, String jndiname,
63: String description, List prop) {
64: super (oName);
65: this .jndiname = jndiname;
66: this .description = description;
67: this .prop = prop;
68: }
69:
70: /**
71: * return the description
72: * @return String description
73: */
74: public String getDescription() {
75: return description;
76: }
77:
78: /**
79: * return the jndi name
80: * @return String jndi name
81: */
82: public String getJndiName() {
83: return jndiname;
84: }
85:
86: /**
87: * return the ActivationSpec required property list
88: * @return List ActivationSpec properties
89: */
90: public List getPropertiesList() {
91: return prop;
92: }
93:
94: }
|