sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (JIRA)" <>
Subject [jira] [Commented] (SLING-6578) Use "" property instead of class name to reference validators
Date Wed, 01 Mar 2017 09:48:45 GMT


Konrad Windszus commented on SLING-6578:

Ok, but currently there is no way to influence the PID of factory configurations. Therefore
referring to a PID which always contains a UUID generated by the configuration admin will
be tough, because the UUID part will only be generated once the configuration is created (this
will change though with R7,
Therefore I think it is useful to make the validator addressable by the values of any of the
following component service properties:
# {{}}, probably mostly useful for components implicitly created through the ConfigAdmin,
and will be very useful once the alias handling is added to the ConfigAdmin. In addition could
be useful if the Validator service is registered manually and the is explicitly
# {{service.factoryPid}}, probably mostly useful for DS components requiring a factory configuration,
although in this case this might resolve to any of the Validators which are configured
# {{}}, useful for DS component not requiring a configuration, because this
property is always set there.

That should lead to the fact that most validators just work without requiring an additional
property to be set.

> Use "" property instead of class name to reference validators
> ------------------------------------------------------------------------
>                 Key: SLING-6578
>                 URL:
>             Project: Sling
>          Issue Type: Improvement
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
> Leveraging the component's "" property value instead of its classname is more
stable (even if implementation changes, the PID might stay the same) and also allows for configuration
factories to refer to a specific validator configuration. The fallback should be the property
"" as "" is not always necessarily set. Basically the validator should
be referable via each of those value, i.e. one of the ""s or the "".

This message was sent by Atlassian JIRA

View raw message