@Inject public BeanXStreamConverter(XStreamConfiguration configuration) { ReflectionProvider rp = new PureJavaReflectionProvider(); Mapper dmapper = new DefaultMapper(this.getClass().getClassLoader()); /* * Putting this here means only one conversion per thread may be active at * any one time, but since the conversion process is atomic this will not * matter unless the class is extended. */ writerStack = new ThreadSafeWriterStack(); /* * create a driver that wires into a standard driver, and updates the stack * position. */ HierarchicalStreamDriver driver = new StackDriver(new XppDriver(), writerStack, configuration.getNameSpaces()); /* * Create an interface class mapper that understands class hierarchy for * single items */ for (XStreamConfiguration.ConverterSet c : MAPPER_SCOPES) { converterMap.put(c, configuration.getConverterConfig(c, rp,dmapper, driver,writerStack)); } }
@Inject public BeanXStreamConverter(XStreamConfiguration configuration) { ReflectionProvider rp = new PureJavaReflectionProvider(); Mapper dmapper = new DefaultMapper(this.getClass().getClassLoader()); /* * Putting this here means only one conversion per thread may be active at * any one time, but since the conversion process is atomic this will not * matter unless the class is extended. */ writerStack = new ThreadSafeWriterStack(); /* * create a driver that wires into a standard driver, and updates the stack * position. */ HierarchicalStreamDriver driver = new StackDriver(new XppDriver(), writerStack, configuration.getNameSpaces()); /* * Create an interface class mapper that understands class hierarchy for * single items */ for (XStreamConfiguration.ConverterSet c : MAPPER_SCOPES) { converterMap.put(c, configuration.getConverterConfig(c, rp,dmapper, driver,writerStack)); } }
@Inject public BeanXStreamConverter(XStreamConfiguration configuration) { rp = new PureJavaReflectionProvider(); Mapper dmapper = new DefaultMapper(this.getClass().getClassLoader()); /* * Putting this here means only one conversion per thread may be active at * any one time, but since the conversion process is atomic this will not * matter unless the class is extended. */ writerStack = new ThreadSafeWriterStack(); /* * create a driver that wires into a standard driver, and updates the stack * position. */ driver = new StackDriver(new XppDriver(), writerStack, configuration.getNameSpaces()); /* * Create an interface class mapper that understands class hierarchy for * single items */ for (XStreamConfiguration.ConverterSet c : MAPPER_SCOPES) { converterMap.put(c, configuration.getConverterConfig(c,rp,dmapper,driver,writerStack)); } }
@Inject public BeanXStreamConverter(XStreamConfiguration configuration) { ReflectionProvider rp = new PureJavaReflectionProvider(); Mapper dmapper = new DefaultMapper(this.getClass().getClassLoader()); /* * Putting this here means only one conversion per thread may be active at * any one time, but since the conversion process is atomic this will not * matter unless the class is extended. */ writerStack = new ThreadSafeWriterStack(); /* * create a driver that wires into a standard driver, and updates the stack * position. */ HierarchicalStreamDriver driver = new StackDriver(new XppDriver(), writerStack, configuration.getNameSpaces()); /* * Create an interface class mapper that understands class hierarchy for * single items */ for (XStreamConfiguration.ConverterSet c : MAPPER_SCOPES) { converterMap.put(c, configuration.getConverterConfig(c, rp,dmapper, driver,writerStack)); } }
@Inject public BeanXStreamConverter(XStreamConfiguration configuration) { rp = new PureJavaReflectionProvider(); Mapper dmapper = new DefaultMapper(this.getClass().getClassLoader()); /* * Putting this here means only one conversion per thread may be active at * any one time, but since the conversion process is atomic this will not * matter unless the class is extended. */ writerStack = new ThreadSafeWriterStack(); /* * create a driver that wires into a standard driver, and updates the stack * position. */ driver = new StackDriver(new XppDriver(), writerStack, configuration.getNameSpaces()); /* * Create an interface class mapper that understands class hierarchy for * single items */ for (XStreamConfiguration.ConverterSet c : MAPPER_SCOPES) { converterMap.put(c, configuration.getConverterConfig(c,rp,dmapper,driver,writerStack)); } }