Skip to main content

[json-processing-spec users] Question on proposed API, lack of Factories

  • From: Tatu Saloranta < >
  • To:
  • Subject: [json-processing-spec users] Question on proposed API, lack of Factories
  • Date: Wed, 11 Apr 2012 11:47:21 -0700

Quick question: is there no plans for using a factory or factories for
constructing instances (esp. parsers, generators)?
Some of benefits use of a factory are:

1. Configuration easier; initialize, config factory, then pass it, app
code need not configure parser/generator instance
2. Easier to switch implementations (details of which impl type to
create is encapsulated in factory)
3. Recycling of low-level pieces (buffers, symbol tables) easier; no
need for app code to participate in reuse
4. Can sub-class to create custom sub-types, wrappers, filtering.

Whether a factory was to be used for Object level things is a separate
question; some of same benefits apply, esp. ability to support
overriding of Object functionality.

-+ Tatu +-


[json-processing-spec users] Question on proposed API, lack of Factories

Tatu Saloranta 04/11/2012

[json-processing-spec users] Re: Question on proposed API, lack of Factories

Blaise Doughan 04/11/2012

[json-processing-spec users] Re: Question on proposed API, lack of Factories

Jörn Horstmann 04/11/2012

[json-processing-spec users] Re: Question on proposed API, lack of Factories

Tatu Saloranta 04/11/2012

[json-processing-spec users] Re: Question on proposed API, lack of Factories

Jörn Horstmann 04/11/2012

[json-processing-spec users] Re: Question on proposed API, lack of Factories

Jitendra Kotamraju 04/12/2012

[json-processing-spec users] Re: Question on proposed API, lack of Factories

Tatu Saloranta 04/12/2012

[json-processing-spec users] Re: Question on proposed API, lack of Factories

Jitendra Kotamraju 04/13/2012

[json-processing-spec users] Re: Question on proposed API, lack of Factories

Tatu Saloranta 04/13/2012

[json-processing-spec users] Re: Question on proposed API, lack of Factories

Jitendra Kotamraju 04/14/2012

[json-processing-spec users] Re: Question on proposed API, lack of Factories

Tatu Saloranta 04/16/2012
 
 
Close
loading
Please Confirm
Close