You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2020/12/08 13:01:41 UTC
[sling-whiteboard] branch master updated: SLING-9950 - comment on
Java vs. DSL
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-whiteboard.git
The following commit(s) were added to refs/heads/master by this push:
new aaf17c9 SLING-9950 - comment on Java vs. DSL
aaf17c9 is described below
commit aaf17c9c354727dcd5897c3297d2efd4ffef3a80
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Tue Dec 8 13:59:59 2020 +0100
SLING-9950 - comment on Java vs. DSL
---
.../apache/sling/remotecontentapi/typesystem/HardcodedTypeSystem.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/remote-content-api/sample-app/src/main/java/org/apache/sling/remotecontentapi/typesystem/HardcodedTypeSystem.java b/remote-content-api/sample-app/src/main/java/org/apache/sling/remotecontentapi/typesystem/HardcodedTypeSystem.java
index 5de6dfe..ed9175c 100644
--- a/remote-content-api/sample-app/src/main/java/org/apache/sling/remotecontentapi/typesystem/HardcodedTypeSystem.java
+++ b/remote-content-api/sample-app/src/main/java/org/apache/sling/remotecontentapi/typesystem/HardcodedTypeSystem.java
@@ -53,6 +53,9 @@ public class HardcodedTypeSystem implements TypeSystem {
private static final String TRUE = "true";
static {
+ // Although these definitions are in Java code for this early prototype, the
+ // plan is to move to a mini-language (DSL) to avoid having to use Java
+ // code for what is actually just declarative statements.
DEFAULT_TYPE = Builder
.forResourceType(SLING_DEFAULT_RESOURCE_TYPE)
.withAnnotation(VISIT_CONTENT, TRUE)