~ubuntu-branches/ubuntu/wily/libjboss-remoting-java/wily

« back to all changes in this revision

Viewing changes to src/org/jboss/remoting/marshal/MarshalFactory.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-09-09 14:01:03 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: package-import@ubuntu.com-20110909140103-hqokx61534tas9rg
Tags: 2.5.3.SP1-1
* Newer but not newest upstream release. Do not build samples.
* Change debian/watch to upstream's svn repo.
* Add patch to fix compile error caused by tomcat update.
  (Closes: #628303)
* Switch to source format 3.0.
* Switch to debhelper level 7.
* Remove useless Depends.
* Update Standards-Version: 3.9.2.
* Update README.source.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
* JBoss, Home of Professional Open Source
3
 
* Copyright 2005, JBoss Inc., and individual contributors as indicated
4
 
* by the @authors tag. See the copyright.txt in the distribution for a
5
 
* full listing of individual contributors.
6
 
*
7
 
* This is free software; you can redistribute it and/or modify it
8
 
* under the terms of the GNU Lesser General Public License as
9
 
* published by the Free Software Foundation; either version 2.1 of
10
 
* the License, or (at your option) any later version.
11
 
*
12
 
* This software is distributed in the hope that it will be useful,
13
 
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
 
* Lesser General Public License for more details.
16
 
*
17
 
* You should have received a copy of the GNU Lesser General Public
18
 
* License along with this software; if not, write to the Free
19
 
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20
 
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21
 
*/
22
 
 
23
 
package org.jboss.remoting.marshal;
24
 
 
25
 
import org.jboss.logging.Logger;
26
 
import org.jboss.remoting.InvokerLocator;
27
 
import org.jboss.remoting.marshal.http.HTTPMarshaller;
28
 
import org.jboss.remoting.marshal.http.HTTPUnMarshaller;
29
 
import org.jboss.remoting.marshal.rmi.RMIMarshaller;
30
 
import org.jboss.remoting.marshal.rmi.RMIUnMarshaller;
31
 
import org.jboss.remoting.marshal.serializable.SerializableMarshaller;
32
 
import org.jboss.remoting.marshal.serializable.SerializableUnMarshaller;
33
 
 
34
 
import java.util.Collections;
35
 
import java.util.HashMap;
36
 
import java.util.Map;
37
 
 
38
 
 
39
 
/**
40
 
 * This class will provide marshallers and unmarshallers for data based on
41
 
 * the data type want to marshal to.  The most common will be just to serialize
42
 
 * the data.  However, may have jaxrpc, IIOP, serializers.  Can also have marshallers
43
 
 * and unmarshallers based on class type.  For example, might be marshaller/unmarshaller
44
 
 * for the Transaction class.
45
 
 *
46
 
 * @author <a href="mailto:tom@jboss.org">Tom Elrod</a>
47
 
 */
48
 
public class MarshalFactory
49
 
{
50
 
   private static Map marshallers = Collections.synchronizedMap(new HashMap());
51
 
   private static Map unmarshallers = Collections.synchronizedMap(new HashMap());
52
 
   private static Map classMarshallers = Collections.synchronizedMap(new HashMap());
53
 
   private static Map classUnmarshallers = Collections.synchronizedMap(new HashMap());
54
 
 
55
 
   protected final static Logger log = Logger.getLogger(MarshalFactory.class);
56
 
 
57
 
   private final static boolean isTrace = log.isTraceEnabled();
58
 
   private final static boolean isDebug = log.isDebugEnabled();
59
 
 
60
 
   // statically load core marshallers/unmarshallers
61
 
   static
62
 
   {
63
 
      try
64
 
      {
65
 
         marshallers.put(SerializableMarshaller.DATATYPE, new SerializableMarshaller());
66
 
         unmarshallers.put(SerializableUnMarshaller.DATATYPE, new SerializableUnMarshaller());
67
 
         marshallers.put(HTTPMarshaller.DATATYPE, new HTTPMarshaller());
68
 
         unmarshallers.put(HTTPUnMarshaller.DATATYPE, new HTTPUnMarshaller());
69
 
         marshallers.put(RMIMarshaller.DATATYPE, new RMIMarshaller());
70
 
         unmarshallers.put(RMIUnMarshaller.DATATYPE, new RMIUnMarshaller());
71
 
      }
72
 
      catch(Exception e)
73
 
      {
74
 
         log.error("Could not statically load default marshallers.", e);
75
 
      }
76
 
   }
77
 
 
78
 
   /**
79
 
    * Will add the marshaller and unmarshaller based on class type.  Each can then be retrieved using the
80
 
    * class type as key.
81
 
    *
82
 
    * @param classType
83
 
    * @param marshaller
84
 
    * @param unMarshaller
85
 
    */
86
 
   public static void addMarshaller(Class classType, Marshaller marshaller, UnMarshaller unMarshaller)
87
 
   {
88
 
      classMarshallers.put(classType, marshaller);
89
 
      classUnmarshallers.put(classType, unMarshaller);
90
 
   }
91
 
 
92
 
   /**
93
 
    * Adds the marshaller and unmarshaller based on data type.  Each can then be retrieved using the data type
94
 
    * as the key.
95
 
    *
96
 
    * @param dataType
97
 
    * @param marshaller
98
 
    * @param unMarshaller
99
 
    */
100
 
   public static void addMarshaller(String dataType, Marshaller marshaller, UnMarshaller unMarshaller)
101
 
   {
102
 
      marshallers.put(dataType, marshaller);
103
 
      unmarshallers.put(dataType, unMarshaller);
104
 
   }
105
 
 
106
 
   /**
107
 
    * Looks up marshaller by class type.  Will return null if not found.
108
 
    *
109
 
    * @param classType
110
 
    * @return
111
 
    */
112
 
   public static Marshaller getMarshaller(Class classType)
113
 
   {
114
 
      Marshaller marshaller = null;
115
 
      Object obj = classMarshallers.get(classType);
116
 
      if(obj != null && obj instanceof Marshaller)
117
 
      {
118
 
         marshaller = (Marshaller) obj;
119
 
 
120
 
         try
121
 
         {
122
 
            marshaller = marshaller.cloneMarshaller();
123
 
         }
124
 
         catch(CloneNotSupportedException e)
125
 
         {
126
 
            log.warn("Could not clone " + marshaller);
127
 
         }
128
 
      }
129
 
      else
130
 
      {
131
 
         if(isTrace)
132
 
         {
133
 
            log.trace("Could not find marshaller for class type '" + classType + "'.  Object in collection is " + obj);
134
 
         }
135
 
      }
136
 
 
137
 
      return marshaller;
138
 
   }
139
 
 
140
 
   /**
141
 
    * Looks up marshaller by class type.  Will return null if not found.
142
 
    *
143
 
    * @param classType
144
 
    * @return
145
 
    */
146
 
   public static Marshaller getMarshaller(Class classType, String serializationType)
147
 
   {
148
 
      Marshaller marshaller = getMarshaller(classType);
149
 
      if(marshaller instanceof SerialMarshaller)
150
 
      {
151
 
         ((SerialMarshaller) marshaller).setSerializationType(serializationType);
152
 
      }
153
 
      return marshaller;
154
 
   }
155
 
 
156
 
   /**
157
 
    * Returns unmarshaller by class type.  Will return null if not found.
158
 
    *
159
 
    * @param classType
160
 
    * @return
161
 
    */
162
 
   public static UnMarshaller getUnMarshaller(Class classType)
163
 
   {
164
 
      UnMarshaller unmarshaller = null;
165
 
      Object obj = classUnmarshallers.get(classType);
166
 
      if(obj != null && obj instanceof UnMarshaller)
167
 
      {
168
 
         unmarshaller = (UnMarshaller) obj;
169
 
 
170
 
         try
171
 
         {
172
 
            unmarshaller = unmarshaller.cloneUnMarshaller();
173
 
         }
174
 
         catch(CloneNotSupportedException e)
175
 
         {
176
 
            log.warn("Could not clone " + unmarshaller);
177
 
         }
178
 
 
179
 
      }
180
 
      else
181
 
      {
182
 
         if(isTrace)
183
 
         {
184
 
            log.trace("Could not find unmarshaller for class type '" + classType + "'.  Object in collection is " + obj);
185
 
         }
186
 
      }
187
 
      return unmarshaller;
188
 
   }
189
 
 
190
 
   public static UnMarshaller getUnMarshaller(Class classType, String serializationType)
191
 
   {
192
 
      UnMarshaller unmarshaller = getUnMarshaller(classType);
193
 
      if(unmarshaller instanceof SerializableUnMarshaller)
194
 
      {
195
 
         ((SerializableUnMarshaller) unmarshaller).setSerializationType(serializationType);
196
 
      }
197
 
 
198
 
      return unmarshaller;
199
 
   }
200
 
 
201
 
   /**
202
 
    * Gets marshaller based on data type (i.e. serializable) and based on the marshallers registered with the factory.
203
 
    *
204
 
    * @param dataType
205
 
    * @return The marshaller or null if none for for the specified type
206
 
    */
207
 
   public static Marshaller getMarshaller(String dataType)
208
 
   {
209
 
      Marshaller marshaller = null;
210
 
      Object obj = marshallers.get(dataType);
211
 
      if(obj != null && obj instanceof Marshaller)
212
 
      {
213
 
         marshaller = (Marshaller) obj;
214
 
 
215
 
         try
216
 
         {
217
 
            marshaller = marshaller.cloneMarshaller();
218
 
         }
219
 
         catch(CloneNotSupportedException e)
220
 
         {
221
 
            log.warn("Could not clone " + marshaller);
222
 
         }
223
 
 
224
 
      }
225
 
      else
226
 
      {
227
 
         if(isTrace)
228
 
         {
229
 
            log.trace("Could not find marshaller for data type '" + dataType + "'.  Object in collection is " + obj);
230
 
         }
231
 
      }
232
 
 
233
 
      return marshaller;
234
 
   }
235
 
 
236
 
 
237
 
   public static Marshaller getMarshaller(String dataType, String serializationType)
238
 
   {
239
 
      Marshaller marshaller = getMarshaller(dataType);
240
 
      if(marshaller instanceof SerializableMarshaller)
241
 
      {
242
 
         ((SerializableMarshaller) marshaller).setSerializationType(serializationType);
243
 
      }
244
 
      return marshaller;
245
 
   }
246
 
 
247
 
 
248
 
   public static UnMarshaller getUnMarshaller(String dataType, String serializationType)
249
 
   {
250
 
      UnMarshaller unmarshaller = getUnMarshaller(dataType);
251
 
      if(unmarshaller instanceof SerializableUnMarshaller)
252
 
      {
253
 
         ((SerializableUnMarshaller) unmarshaller).setSerializationType(serializationType);
254
 
      }
255
 
 
256
 
      return unmarshaller;
257
 
   }
258
 
 
259
 
 
260
 
   /**
261
 
    * Gets the marshaller based on data type (i.e. serialziable) and based on the unmarshallers registered with the factory.
262
 
    *
263
 
    * @param dataType
264
 
    * @return The unmarshaller or null if none for the specified type
265
 
    */
266
 
   public static UnMarshaller getUnMarshaller(String dataType)
267
 
   {
268
 
      UnMarshaller unmarshaller = null;
269
 
      Object obj = unmarshallers.get(dataType);
270
 
      if(obj != null && obj instanceof UnMarshaller)
271
 
      {
272
 
         unmarshaller = (UnMarshaller) obj;
273
 
 
274
 
         try
275
 
         {
276
 
            unmarshaller = unmarshaller.cloneUnMarshaller();
277
 
         }
278
 
         catch(CloneNotSupportedException e)
279
 
         {
280
 
            log.warn("Could not clone " + unmarshaller);
281
 
         }
282
 
      }
283
 
      else
284
 
      {
285
 
         if(isTrace)
286
 
         {
287
 
            log.trace("Could not find unmarshaller for data type '" + dataType + "'.  Object in collection is " + obj);
288
 
         }
289
 
      }
290
 
 
291
 
      return unmarshaller;
292
 
   }
293
 
 
294
 
   /**
295
 
    * Will try to look up marshaller by first looking for data type parameter within locator and then using that
296
 
    * to look up marhsaller locally.  If can not find it, will then look to see if can find the 'marshaller' parameter
297
 
    * within the locator parameters.  If found, will try to load the marshaller by the class name specified as the parameter
298
 
    * value.  If still can not find the class within the local VM, will look to see if there is a parameter for
299
 
    * the server's marshaller loader port.  If this exists, will then try calling on the remote server to load the
300
 
    * marshaller (and its related classes) within the local VM.  If still can not be found, will return null.
301
 
    *
302
 
    * @param locator
303
 
    * @param classLoader
304
 
    * @return
305
 
    */
306
 
   public static Marshaller getMarshaller(InvokerLocator locator, ClassLoader classLoader)
307
 
   {
308
 
      return getMarshaller(locator, classLoader, null);
309
 
   }
310
 
 
311
 
   /**
312
 
    * Will try to look up marshaller by first looking for data type parameter within locator and config and then using that
313
 
    * to look up marhsaller locally.  If can not find it, will then look to see if can find the 'marshaller' parameter
314
 
    * within the locator parameters or config parameters.  If found, will try to load the marshaller by the class name specified
315
 
    * as the parameter value.  If still can not find the class within the local VM, will look to see if there is a parameter for
316
 
    * the server's marshaller loader port.  If this exists, will then try calling on the remote server to load the
317
 
    * marshaller (and its related classes) within the local VM.  If still can not be found, will return null.
318
 
    *
319
 
    * @param locator
320
 
    * @param classLoader
321
 
    * @param config
322
 
    * @return
323
 
    */
324
 
   public static Marshaller getMarshaller(InvokerLocator locator, ClassLoader classLoader, Map config)
325
 
   {
326
 
      String serializationType = locator.findSerializationType();
327
 
      Marshaller marshaller = null;
328
 
      if(locator != null || config != null)
329
 
      {
330
 
         Map params = new HashMap();
331
 
         if (locator.getParameters() != null)
332
 
         {
333
 
            params.putAll(locator.getParameters());
334
 
         }
335
 
         if (config != null)
336
 
         {
337
 
            params.putAll(config);
338
 
         }
339
 
         if(params != null)
340
 
         {
341
 
            // start with data type as is prefered method of getting marshaller/unmarshaller
342
 
            String dataType = (String) params.get(InvokerLocator.DATATYPE);
343
 
            if(dataType == null)
344
 
            {
345
 
               dataType = (String) params.get(InvokerLocator.DATATYPE_CASED);
346
 
            }
347
 
            if(dataType != null)
348
 
            {
349
 
               marshaller = getMarshaller(dataType);
350
 
            }
351
 
            if(marshaller == null)
352
 
            {
353
 
               if(isTrace)
354
 
               {
355
 
                  log.trace("Could not look up marshaller by data type ('" + dataType + "').  Will try to load dynamically.");
356
 
               }
357
 
 
358
 
               // will now look for explicit param for marshaller class
359
 
               String marshallerFQN = (String) params.get(InvokerLocator.MARSHALLER);
360
 
               marshaller = loadMarshaller(marshallerFQN);
361
 
               if(marshaller != null)
362
 
               {
363
 
                  if(isTrace)
364
 
                  {
365
 
                     log.trace("Found marshaller by loading locally.");
366
 
                  }
367
 
                  // try to load unmarshaller so that can add to list
368
 
                  String unmarshallerFQN = (String) params.get(InvokerLocator.UNMARSHALLER);
369
 
                  UnMarshaller unmarshaller = loadUnMarshaller(unmarshallerFQN);
370
 
                  if(unmarshaller != null)
371
 
                  {
372
 
                     addMarshaller(dataType, marshaller, unmarshaller);
373
 
                  }
374
 
               }
375
 
            }
376
 
            if(marshaller == null && isTrace)
377
 
            {
378
 
               log.trace("Tried to find marshaller from locator by both data type and class name but was unsuccessful.  " +
379
 
                         "Will try to load it from remote server.");
380
 
            }
381
 
            // if still have not found marshaller, check to see if can load remotely
382
 
            if(marshaller == null && dataType != null)
383
 
            {
384
 
               InvokerLocator loaderLocator = MarshallLoaderFactory.convertLocator(locator);
385
 
               if(loaderLocator != null)
386
 
               {
387
 
                  marshaller = MarshallerLoaderClient.getMarshaller(loaderLocator, dataType, classLoader);
388
 
                  UnMarshaller unmarshaller = MarshallerLoaderClient.getUnMarshaller(loaderLocator, dataType, classLoader);
389
 
                  if(unmarshaller != null)
390
 
                  {
391
 
                     unmarshaller.setClassLoader(classLoader);
392
 
                  }
393
 
                  if(isDebug)
394
 
                  {
395
 
                     log.debug("Remotely loaded marshaller: " + marshaller);
396
 
                     log.debug("Remotely loaded unmarshaller: " + unmarshaller);
397
 
                  }
398
 
                  if(marshaller != null && unmarshaller != null)
399
 
                  {
400
 
                     addMarshaller(dataType, marshaller, unmarshaller);
401
 
                  }
402
 
               }
403
 
            }
404
 
         }
405
 
      }
406
 
 
407
 
      if(marshaller != null)
408
 
      {
409
 
         try
410
 
         {
411
 
            marshaller = marshaller.cloneMarshaller();
412
 
         }
413
 
         catch(CloneNotSupportedException e)
414
 
         {
415
 
            log.warn("Could not clone " + marshaller);
416
 
         }
417
 
      }
418
 
 
419
 
      if(marshaller instanceof SerialMarshaller)
420
 
      {
421
 
         ((SerialMarshaller) marshaller).setSerializationType(serializationType);
422
 
      }
423
 
      return marshaller;
424
 
   }
425
 
 
426
 
   private static Marshaller loadMarshaller(String marshallerFQN)
427
 
   {
428
 
      Marshaller marshaller = null;
429
 
      if(marshallerFQN != null)
430
 
      {
431
 
         try
432
 
         {
433
 
            Class marshallerClass = Class.forName(marshallerFQN);
434
 
            marshaller = (Marshaller) marshallerClass.newInstance();
435
 
         }
436
 
         catch(Exception e)
437
 
         {
438
 
            log.warn("Found marshaller fully qualified class name within locator parameters, but was unable " +
439
 
                     "to load class: " + marshallerFQN);
440
 
         }
441
 
      }
442
 
      return marshaller;
443
 
   }
444
 
 
445
 
   /**
446
 
    * Will try to look up unmarshaller by first looking for data type parameter within locator and then using that
447
 
    * to look up unmarshaller locally.  If can not find it, will then look to see if can find the 'unmarshaller' parameter
448
 
    * within the locator parameters.  If found, will try to load the unmarshaller by the class name specified as the parameter
449
 
    * value.  If still can not find the class within the local VM, will look to see if there is a parameter for
450
 
    * the server's marshaller loader port.  If this exists, will then try calling on the remote server to load the
451
 
    * unmarshaller (and its related classes) within the local VM.  If still can not be found, will return null.
452
 
    *
453
 
    * @param locator
454
 
    * @param classLoader
455
 
    * @return
456
 
    */
457
 
   public static UnMarshaller getUnMarshaller(InvokerLocator locator, ClassLoader classLoader)
458
 
   {
459
 
      return getUnMarshaller(locator, classLoader, null);
460
 
   }
461
 
 
462
 
   /**
463
 
    * Will try to look up unmarshaller by first looking for data type parameter within locator and config map and then using that
464
 
    * to look up unmarshaller locally.  If can not find it, will then look to see if can find the 'unmarshaller' parameter
465
 
    * within the locator parameters or config map.  If found, will try to load the unmarshaller by the class name specified as the
466
 
    * parameter value.  If still can not find the class within the local VM, will look to see if there is a parameter for
467
 
    * the server's marshaller loader port.  If this exists, will then try calling on the remote server to load the
468
 
    * unmarshaller (and its related classes) within the local VM.  If still can not be found, will return null.
469
 
    *
470
 
    * @param locator
471
 
    * @param classLoader
472
 
    * @param config
473
 
    * @return
474
 
    */
475
 
   public static UnMarshaller getUnMarshaller(InvokerLocator locator, ClassLoader classLoader, Map config)
476
 
   {
477
 
      String serializationType = locator.findSerializationType();
478
 
      UnMarshaller unmarshaller = null;
479
 
      if(locator != null || config != null)
480
 
      {
481
 
         Map params = new HashMap();
482
 
         if (locator.getParameters() != null)
483
 
         {
484
 
            params.putAll(locator.getParameters());
485
 
         }
486
 
         if (config != null)
487
 
         {
488
 
            params.putAll(config);
489
 
         }
490
 
         if(params != null)
491
 
         {
492
 
            // start with data type as is prefered method of getting marshaller/unmarshaller
493
 
            String dataType = (String) params.get(InvokerLocator.DATATYPE);
494
 
            if(dataType == null)
495
 
            {
496
 
               dataType = (String) params.get(InvokerLocator.DATATYPE_CASED);
497
 
            }
498
 
            if(dataType != null)
499
 
            {
500
 
               unmarshaller = getUnMarshaller(dataType);
501
 
            }
502
 
            if(unmarshaller == null)
503
 
            {
504
 
               if(isTrace)
505
 
               {
506
 
                  log.trace("Could not find unmarshaller by data type ('" + dataType + "').  Will try to load dynamically.");
507
 
               }
508
 
 
509
 
               // will now look for explicit param for marshaller class
510
 
               String unmarshallerFQN = (String) params.get(InvokerLocator.UNMARSHALLER);
511
 
               unmarshaller = loadUnMarshaller(unmarshallerFQN);
512
 
               if(unmarshaller != null)
513
 
               {
514
 
                  String marshallerFQN = (String) params.get(InvokerLocator.MARSHALLER);
515
 
                  Marshaller marshaller = loadMarshaller(marshallerFQN);
516
 
                  if(marshaller != null)
517
 
                  {
518
 
                     addMarshaller(dataType, marshaller, unmarshaller);
519
 
                  }
520
 
               }
521
 
            }
522
 
            if(isTrace && unmarshaller == null)
523
 
            {
524
 
               log.trace("Tried to find unmarshaller from locator by both data type and class name but was unsuccessful.");
525
 
            }
526
 
            // if still have not found unmarshaller, check to see if can load remotely
527
 
            if(unmarshaller == null && dataType != null)
528
 
            {
529
 
               InvokerLocator loaderLocator = MarshallLoaderFactory.convertLocator(locator);
530
 
               unmarshaller = MarshallerLoaderClient.getUnMarshaller(loaderLocator, dataType, classLoader);
531
 
               if(unmarshaller != null)
532
 
               {
533
 
                  unmarshaller.setClassLoader(classLoader);
534
 
               }
535
 
               Marshaller marshaller = MarshallerLoaderClient.getMarshaller(loaderLocator, dataType, classLoader);
536
 
               if(isTrace)
537
 
               {
538
 
                  log.trace("Remotely loaded marshaller: " + marshaller);
539
 
                  log.trace("Remotely loaded unmarshaller: " + unmarshaller);
540
 
               }
541
 
               if(marshaller != null && unmarshaller != null)
542
 
               {
543
 
                  addMarshaller(dataType, marshaller, unmarshaller);
544
 
               }
545
 
            }
546
 
         }
547
 
      }
548
 
 
549
 
      if(unmarshaller != null)
550
 
      {
551
 
         try
552
 
         {
553
 
            unmarshaller = unmarshaller.cloneUnMarshaller();
554
 
         }
555
 
         catch(CloneNotSupportedException e)
556
 
         {
557
 
            log.warn("Could not clone " + unmarshaller);
558
 
         }
559
 
      }
560
 
      if(unmarshaller instanceof SerializableUnMarshaller)
561
 
      {
562
 
         ((SerializableUnMarshaller) unmarshaller).setSerializationType(serializationType);
563
 
      }
564
 
      return unmarshaller;
565
 
   }
566
 
 
567
 
   private static UnMarshaller loadUnMarshaller(String unmarshallerFQN)
568
 
   {
569
 
      UnMarshaller unmarshaller = null;
570
 
      if(unmarshallerFQN != null)
571
 
      {
572
 
         try
573
 
         {
574
 
            Class unmarshallerClass = Class.forName(unmarshallerFQN);
575
 
            unmarshaller = (UnMarshaller) unmarshallerClass.newInstance();
576
 
         }
577
 
         catch(Exception e)
578
 
         {
579
 
            log.error("Found unmarshaller fully qualified class name within locator parameters, but was unable " +
580
 
                      "to load class: " + unmarshallerFQN, e);
581
 
         }
582
 
      }
583
 
      return unmarshaller;
584
 
   }
585
 
}
 
 
b'\\ No newline at end of file'