Require help: following XmlJavaTypeAdapter type is not working properly:
public class TestAdapter extends XmlAdapter<Object, Object> {
public Object marshal(Object arg0) throws Exception {
System.out.println("Test Adapter");
return null;
}
public Object unmarshal(Object arg0) throws Exception {
System.out.println("Test Adapter");
return null;
}
}
I am using the "TestAdapter" like :
'@XmlRootElement
@XmlJavaTypeAdapter(value = TestAdapter.class)
public TestClass{...}'
But the problem I am facing is the "TestAdapter" is never getting invoked.