[saga-rg] Is there Factory in Java Binding?
Hidemoto Nakada
hide-nakada at aist.go.jp
Wed May 17 08:17:04 CDT 2006
All,
I have a question on the Java Binding.
Does the current Java binding include explicit factory notion?
Factory mechanism is important to
- reuse a source code with several implementation of the API
without modification of the code.
- leverage several implementation simultaneously from one
client code.
One good example of factory design can be found in the Dom parser
definition; org.w3c.dom.DomImplementation.
When you create a Dom document
- get a DomImplementation from org.w3c.dom.bootstrap.DomImplementationRegistory
- then create a Document object using DomImplementation.
This mechanism might be too complicated for SAGA, but
I think some flavor of this is required.
-hidemoto
More information about the saga-rg
mailing list