Jukka Zitting created OAK-776:
---------------------------------
Summary: NodeState convenience accessors
Key: OAK-776
URL: https://issues.apache.org/jira/browse/OAK-776
Project: Jackrabbit Oak
Issue Type: Improvement
Components: core
Reporter: Jukka Zitting
Assignee: Jukka Zitting
One of the original goals in designing the NodeState interface was to avoid too
many convenience accessors to keep the interface simple and easily to decorate
with things like the SecureNodeState wrapper. Since then convenience code like
type-specific property value accessors have been added in various places as
ad-hoc static utility methods.
Now that the overall NodeState design is mostly fixed, the set of NodeState
implementations mostly known and we have a good idea of the common NodeState
access patterns, I think it would be useful to add various convenience methods
like {{hasProperty(String)}} or {{getBoolean(String)}} that allow us to both
simplify commonly occurring client code and further optimize the
SegmentNodeState class without requiring it to cache fully loaded PropertyState
instances in memory.
--
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