hi Marius
On Feb 25, 2015, at 12:17 PM, Marius Petria <[email protected]> wrote:

> Hi Antonio,
> 
> 
> 
> 
> On 2/25/15, 12:36 PM, "Antonio Sanso" <[email protected]> wrote:
> 
>> Usually the person that set’s the OSGi configuration (aka the 
>> administrator) is different than the one that 
>> codes a bundle (aka the administrator). This can also happen in two 
>> distinct phases of the project.
>> I have the impression that this feature mixes the concerns…
> 
> 
> I think that is a perfect example why we should have such a dependency 
> mechanism, as the the phases are executed by different personas. As a 
> developer I would like to specify that my component should only be started 
> when the administrator has configured a subServiceName and that is ready 
> to be used.
> 
> Using "the Sling initial content in the same bundle" as the component is 
> not always possible, for example if the component is 3rd party bundle. 
> Also I am not sure there is a guarantee to always work. Even more, the 
> solution relies on the fact the service user is configured by the 
> “developer” but as you said this can be configured by an “administrator". 
> As a side note I think we should even allow a component to be able to 
> restart when a mapping is changed as its security context is changed.

re-thinking again I finally agree with you.
Question on the implementation though.
What if the sub service name is not set for a mapping?

regards

antonio

> 
> Marius
> 
> 
> 

Reply via email to