01: package de.schlund.pfixcore.oxm.impl;
02:
03: import de.schlund.pfixcore.beans.BeanDescriptorFactory;
04: import de.schlund.pfixcore.oxm.Marshaller;
05:
06: public class MarshallerFactory {
07:
08: private static Marshaller marshaller;
09:
10: static {
11: BeanDescriptorFactory factory = new BeanDescriptorFactory();
12: SerializerRegistry registry = new SerializerRegistry(factory);
13: marshaller = new MarshallerImpl(registry);
14: }
15:
16: public static Marshaller getSharedMarshaller() {
17: return marshaller;
18: }
19:
20: }
|