castor

The Unmarshaller class needs to have setClass(java.lang.Class c) method added

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1.1
  • Component/s: XML
  • Labels:
    None
  • Number of attachments :
    1

Description

Currently the Unmarshaller class has a constructor that takes a class type Unmarshaller(java.lang.Class c). There is no other way to set the class type on the Unmarshaller, except through the constructor. However, I am using the Spring factory bean to instantiate and get a new instance of the Unmarshaller. And as such, I cannot set the class type on the Unmarshaller once it has been created. We need to have a setClass(Class) or setRootClass(Class) on the Unmarshaller, so that the class type can be programmatically set after I have obtained an instance of the Unmarshaller through Spring.

The following is the e-mail thread that prompted the opening of this issue:
http://www.nabble.com/Problem-when-classes-are-re-ordered-in-the-Castor-xml-mapping-file-tf3269074.html#a9096120

Activity

Hide
Werner Guttmann added a comment -

Final patch for review.

Show
Werner Guttmann added a comment - Final patch for review.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: