View Javadoc

1   /*******************************************************************************
2    *  Copyright (c) 2005, 2006, 2007 Imola Informatica.
3    *  All rights reserved. This program and the accompanying materials
4    *  are made available under the terms of the LGPL License v2.1
5    *  which accompanies this distribution, and is available at
6    *  http://www.gnu.org/licenses/lgpl.html
7    *******************************************************************************/
8   package it.imolinfo.jbi4ejb.descriptor;
9   
10  import it.imolinfo.jbi4ejb.runtime.ejbproxy.StatelessEJBProxy;
11  
12  import java.util.Properties;
13  
14  import javax.xml.namespace.QName;
15  
16  
17  /**
18   * The service descriptor class.
19   * 
20   * @author marco
21   */
22  public class ProviderServiceDescriptor { 
23          
24      // From types
25      /** The serial version UID. */
26      private Properties serialVersionUID = new Properties();
27      
28      // From the binding
29      /** The orb properties. */
30      private Properties orbProperties;
31          
32      /** The jndi properties. */
33      private Properties jndiProperties;
34      
35      // From the address
36      /** The name. */
37      private String name;
38      
39      /** The localization type. */
40      private String localizationType;    
41  
42      // The component root path
43      /** The component root path. */
44      private String componentRootPath;
45      
46      /** The service name. */
47      private QName serviceName;
48      
49      /** The port type name. */
50      private QName portTypeName = null;
51      
52      /** The ejb proxy. */
53      private StatelessEJBProxy ejbProxy = null;
54      
55      /**
56       * Instantiates a new provider service descriptor.
57       */
58      public ProviderServiceDescriptor() {}    
59  
60      /**
61       * Gets the component root path.
62       * 
63       * @return the component root path
64       */
65      public String getComponentRootPath() {
66          return componentRootPath;
67      }
68  
69      /**
70       * Sets the component root path.
71       * 
72       * @param componentRootPath
73       *            the new component root path
74       */
75      public void setComponentRootPath(String componentRootPath) {
76          this.componentRootPath = componentRootPath;
77      }
78  
79      /**
80       * Gets the service name.
81       * 
82       * @return the service name
83       */
84      public QName getServiceName() {
85          return serviceName;
86      }
87  
88      /**
89       * Sets the service name.
90       * 
91       * @param serviceName
92       *            the new service name
93       */
94      public void setServiceName(QName serviceName) {
95          this.serviceName = serviceName;
96      }
97  
98      /**
99       * Gets the serial version UID.
100      * 
101      * @return the serial version UID
102      */
103     public Properties getSerialVersionUID() {
104         return serialVersionUID;
105     }
106 
107     /**
108      * Sets the serial version UID.
109      * 
110      * @param serialVersionUID
111      *            the new serial version UID
112      */
113     public void setSerialVersionUID(Properties serialVersionUID) {
114         this.serialVersionUID = serialVersionUID;
115     }
116 
117     /**
118      * Gets the orb properties.
119      * 
120      * @return the orb properties
121      */
122     public Properties getOrbProperties() {
123         return orbProperties;
124     }
125 
126     /**
127      * Sets the orb properties.
128      * 
129      * @param orbProperties
130      *            the new orb properties
131      */
132     public void setOrbProperties(Properties orbProperties) {
133         this.orbProperties = orbProperties;
134     }
135 
136     /**
137      * Gets the jndi properties.
138      * 
139      * @return the jndi properties
140      */
141     public Properties getJndiProperties() {
142         return jndiProperties;
143     }
144 
145     /**
146      * Sets the jndi properties.
147      * 
148      * @param jndiProperties
149      *            the new jndi properties
150      */
151     public void setJndiProperties(Properties jndiProperties) {
152         this.jndiProperties = jndiProperties;
153     }
154 
155     /**
156      * Gets the name.
157      * 
158      * @return the name
159      */
160     public String getName() {
161         return name;
162     }
163 
164     /**
165      * Sets the name.
166      * 
167      * @param name
168      *            the new name
169      */
170     public void setName(String name) {
171         this.name = name;
172     }
173 
174     /**
175      * Gets the localization type.
176      * 
177      * @return the localization type
178      */
179     public String getLocalizationType() {
180         return localizationType;
181     }
182 
183     /**
184      * Sets the localization type.
185      * 
186      * @param localizationType
187      *            the new localization type
188      */
189     public void setLocalizationType(String localizationType) {
190         this.localizationType = localizationType;
191     }
192 
193     /**
194      * Gets the port type name.
195      * 
196      * @return the port type name
197      */
198     public QName getPortTypeName() {
199         return portTypeName;
200     }
201 
202     /**
203      * Sets the port type name.
204      * 
205      * @param portTypeName
206      *            the new port type name
207      */
208     public void setPortTypeName(QName portTypeName) {
209         this.portTypeName = portTypeName;
210     }
211 
212     /**
213      * Gets the ejb proxy.
214      * 
215      * @return the ejb proxy
216      */
217     public StatelessEJBProxy getEjbProxy() {
218         return ejbProxy;
219     }
220 
221     /**
222      * Sets the ejb proxy.
223      * 
224      * @param ejbProxy
225      *            the new ejb proxy
226      */
227     public void setEjbProxy(StatelessEJBProxy ejbProxy) {
228         this.ejbProxy = ejbProxy;
229     }       
230            
231 }