Hello JiBX-Gurus,
I have a problem creating the right binding factory with marshalling a
document with precompiled bindings:
The project consists of
- a main project Base defining the basic bindings (a Document, an
Action that can be put into document)
- a first plugin SomeAction using Base (bindings&classes) extending Action
- a second plugin OtherAction ...the same
The main project does the (un)marshalling. The plugins/author(s) are
independent. Base and set of plugins are 'assembled' by the user of
the SW.
Now suppose the program creates the following document with one
'SomeAction' object
Document
+---SomeAction
+---OtherAction
How do I have to create a binding factory (in base!) to marshal
(unmarshal) this object?
1) Using BindingDirectory.getFactory( Document.class ) fails because
it does not know anything about either action
2) ...(SomeAction.class) does not know how to deal with OtherAction
(it works for a document without 'OtherAction', though)
3) The versions of this method using the binding and package names
have the same problem:
To me it looks like the binding factories form a tree with many leaves
but in order to process a document, I would need a factory that knows
*all* leaves.
How do I solve this?
Greetings, thanks for the nice package, and in advance for every
answer you might have
IvinS
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users