jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobias Bocanegra <tobias.bocane...@day.com>
Subject JackrabbitNodeTypeManager in version 2.0
Date Fri, 19 Jun 2009 13:44:51 GMT
The JackrabbitNodeTypeManager defines 3 methods that can be removed
for version 2.0 since they are no longer needed:

    NodeType[] registerNodeTypes(InputSource in) throws SAXException,
    NodeType[] registerNodeTypes(InputStream in, String contentType)
throws IOException, RepositoryException;

those deal with directly register nodetypes from a XML or CND source.
since we don't want to support XML serialization any longer, and the
CND import can be easily done using the spi-commons
CompactNodeTypeDefReader with the new JCR2.0 node type registration.
if the XML is to be supported, i suggest to detach the reader similar
to the CND one.

    boolean hasNodeType(String name) throws RepositoryException;

this is now in the JCR2.0 api

so i suggest to
* remove JackrabbitNodeTypeManager in version 2.0
* deprecate JackrabbitNodeTypeManager in version 1.6

regards, toby

see also:  https://issues.apache.org/jira/browse/JCR-2161

View raw message