001
014
015 package com.liferay.portlet.exportimport.xstream;
016
017 import com.thoughtworks.xstream.converters.UnmarshallingContext;
018
019
022 public class XStreamUnmarshallingContextAdapter
023 implements XStreamUnmarshallingContext {
024
025 public XStreamUnmarshallingContextAdapter(
026 UnmarshallingContext unmarshallingContext) {
027
028 _unmarshallingContext = unmarshallingContext;
029 }
030
031 @Override
032 public void addCompletionCallback(Runnable work, int priority) {
033 _unmarshallingContext.addCompletionCallback(work, priority);
034 }
035
036 @Override
037 public Object convertAnother(Object object, Class<?> clazz) {
038 return _unmarshallingContext.convertAnother(object, clazz);
039 }
040
041 @Override
042 public Object convertAnother(
043 Object object, Class<?> clazz, XStreamConverter xStreamConverter) {
044
045 return _unmarshallingContext.convertAnother(
046 object, clazz, new ConverterAdapter(xStreamConverter));
047 }
048
049 @Override
050 public Object currentObject() {
051 return _unmarshallingContext.currentObject();
052 }
053
054 @Override
055 public Object getRequiredType() {
056 return _unmarshallingContext.getRequiredType();
057 }
058
059 private final UnmarshallingContext _unmarshallingContext;
060
061 }