Andy Seaborne created JENA-398:
----------------------------------

             Summary: Extract NodeFactory.
                 Key: JENA-398
                 URL: https://issues.apache.org/jira/browse/JENA-398
             Project: Apache Jena
          Issue Type: Improvement
          Components: Jena
            Reporter: Andy Seaborne


One core feature of Jena is that Node and Triple are universal.  A node or 
triple (or quad) from one subsystem can be passed to another system.

Currently graph-level Nodes are their own factory - there are a bunch of 
Node.create* statics.

This is a proposal to have a NodeFactory. This will given us more design 
freedom should we wish to introduce interfaces although given that nodes are 
universal (and, for the most part, simple) the need to use interfaces is not so 
significant.

I propose (using the wonders of Eclipse) extracting the statics to create 
NodeFactory, leaving deprecated placeholders.  The refactoring of the rest of 
the codebase will happen automatically.

This should break nothing, not even external code using Node directly

There is already is a "com.hp.hpl.jena.sparql.util.NodeFactory" - this needs 
sorting out as well.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to