Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JiBX 1.1 beta4
-
Component/s: core
-
Labels:None
-
Number of attachments :
Description
The class IUnmarshallingContext should get a user object that can be used by factory methods to pre-initialize an object.
Suggested interface:
public Object getUserObject();
public void setUserObject(Object obj);
This object can then be stored in the context before starting unmarshalling and is then accessible by all factories.
That's an interesting suggestion, since user methods often need a context of some form. I work around this when unmarshalling the actual binding definitions by using a wrapper class for the root object which includes the context information, but a simple getUserContext/setUserContext would definitely be easier.