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: * Initial developer(s): Xavier Delplanque
22: * --------------------------------------------------------------------------
23: * $Id: VcBean.java 4622 2004-04-19 13:49:54Z sauthieg $
24: * --------------------------------------------------------------------------
25: */package org.objectweb.jonas_ws.wsgen.generator.axis;
26:
27: import org.objectweb.jonas_ejb.deployment.api.SessionStatelessDesc;
28:
29: /**
30: * Member of a VelocityContext. Contains information about a bean.
31: *
32: * @author Xavier Delplanque
33: */
34: public class VcBean {
35:
36: /**
37: * the bean jndi name
38: */
39: private String jndiName;
40:
41: /**
42: * ServiceEndpoint interface name
43: */
44: private String serviceEndpointInterface;
45:
46: /**
47: * Construct a Holder for Bean informations
48: *
49: * @param ssd SessionStatelessDesc descripting the given SessionBean
50: */
51: public VcBean(SessionStatelessDesc ssd) {
52:
53: // set jndiName
54: jndiName = ssd.getJndiServiceEndpointName();
55:
56: // set service endpoint
57: serviceEndpointInterface = ssd.getServiceEndpointClass()
58: .getName();
59:
60: }
61:
62: /**
63: * The bean jndi name
64: *
65: * @return The bean jndi name
66: */
67: public String getServiceEndpointJndiName() {
68: return jndiName;
69: }
70:
71: /**
72: * the bean service-endpoint interface name
73: *
74: * @return the bean service-endpoint interface name
75: */
76: public String getServiceEndpointInterfaceName() {
77: return serviceEndpointInterface;
78: }
79: }
|