Hi all,
I am thinking about how Sling could be embedded in an existing framework.
Presumably this is almost only a problem of getting the dependencies right.
The "almost" comes from our famous "sling.home" framework property. This is
really fundamental and without this, many things like locating the JCR
repository folder etc. don't work.
Now when embedding in an existing framework the chances to be able to influence
framework properties in an easy way are low. Yet, we basically have a solution
to this problem: The SlingSettings service which provides a nice API to get at
this information.
So I am thinking of two things to fix:
* Have the SlingSettings service implement a good
fallback if the sling.home framework property is
not defined -- e.g. user.home, user.dir.
* Change all current pieces directly using the
sling.home framework property to only use the
SlingSettings service.
This way, we have a single point of attack to fix the sling.home setup.
WDYT ?
Regards
Felix