Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ModelAccessor and ModelPointer API #2

Open
beikov opened this issue Apr 14, 2019 · 0 comments
Open

Introduce ModelAccessor and ModelPointer API #2

beikov opened this issue Apr 14, 2019 · 0 comments

Comments

@beikov
Copy link
Member

beikov commented Apr 14, 2019

An API that allows to point to an abstract attribute or a concrete element in an object. This is similar to JSONPointer which we want to support for serialization/deserialization.
The default serialized format is the JPAish dot-navigation syntax we use in blaze-persistence and also in the parser for blaze-expression paths.

The ModelPointer can be used to query and write values on actual domain objects via the ModelAccessor API. Note that there already is an AttributeAccessor Metadata API in blaze-expression and the idea is, that the ModelAccessor API is the successor that lives in blaze-domain.

In the end, I want to be able to do simple object graph extraction and altering with just blaze-domain. Some simple ModelAccessors for accessing a Map should also be provided. Note that the ModelAccessor is format dependent, so if we expose this somehow in the API, the format dependence should be encoded into that as well.

@beikov beikov changed the title Introduce ModelPointer API Introduce ModelAccessor and ModelPointer API May 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant