You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by François Fornaciari <fr...@bull.net> on 2008/01/04 13:58:56 UTC

Custom Felix launcher and auto-property

Hello,

As the auto-property processing has been moved to the launcher, what is the new way to specify to a custom Felix launcher to start a list of bundles at startup? I mean, I can no more use the "felix.auto.start" property to set the bundle locations. Moreover, it seems that this part of the documentation is out to date.

Thank you for your your help.
François


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Custom Felix launcher and auto-property

Posted by "Richard S. Hall" <he...@ungoverned.org>.
I have committed the changes with some modifications, but it should be 
good to go...let me know if you run into any issues.

-> richard

François Fornaciari wrote:
> I have added the AutoActivator class into my project, waiting for the 
> validation of your patch, and it works perfectly.
> As the code concerning the processing of the auto-property has been 
> externalized and thus can be reused, I think that this solution 
> requires small modifications for all developers who have to use the 
> last Felix. I have myself done only minimal changes.
> Thank you again.
>
> François
>
> Richard S. Hall wrote:
>> François,
>>
>> Please check out the following JIRA issue:
>>
>>    https://issues.apache.org/jira/browse/FELIX-448
>>
>> I have attached a patch to propose how to modify Main so that 
>> auto-property handling happens in a separate class that can simply be 
>> reused by people creating their own custom launchers.
>>
>> Input and feedback is appreciated.
>>
>> -> richard
>>
>> François Fornaciari wrote:
>>> Hello,
>>>
>>> As the auto-property processing has been moved to the launcher, what 
>>> is the new way to specify to a custom Felix launcher to start a list 
>>> of bundles at startup? I mean, I can no more use the 
>>> "felix.auto.start" property to set the bundle locations. Moreover, 
>>> it seems that this part of the documentation is out to date.
>>>
>>> Thank you for your your help.
>>> François
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Custom Felix launcher and auto-property

Posted by François Fornaciari <fr...@bull.net>.
I have added the AutoActivator class into my project, waiting for the 
validation of your patch, and it works perfectly.
As the code concerning the processing of the auto-property has been 
externalized and thus can be reused, I think that this solution requires 
small modifications for all developers who have to use the last Felix. I 
have myself done only minimal changes.
Thank you again.

François

Richard S. Hall wrote:
> François,
>
> Please check out the following JIRA issue:
>
>    https://issues.apache.org/jira/browse/FELIX-448
>
> I have attached a patch to propose how to modify Main so that 
> auto-property handling happens in a separate class that can simply be 
> reused by people creating their own custom launchers.
>
> Input and feedback is appreciated.
>
> -> richard
>
> François Fornaciari wrote:
>> Hello,
>>
>> As the auto-property processing has been moved to the launcher, what 
>> is the new way to specify to a custom Felix launcher to start a list 
>> of bundles at startup? I mean, I can no more use the 
>> "felix.auto.start" property to set the bundle locations. Moreover, it 
>> seems that this part of the documentation is out to date.
>>
>> Thank you for your your help.
>> François
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Custom Felix launcher and auto-property

Posted by "Richard S. Hall" <he...@ungoverned.org>.
François,

Please check out the following JIRA issue:

    https://issues.apache.org/jira/browse/FELIX-448

I have attached a patch to propose how to modify Main so that 
auto-property handling happens in a separate class that can simply be 
reused by people creating their own custom launchers.

Input and feedback is appreciated.

-> richard

François Fornaciari wrote:
> Hello,
>
> As the auto-property processing has been moved to the launcher, what 
> is the new way to specify to a custom Felix launcher to start a list 
> of bundles at startup? I mean, I can no more use the 
> "felix.auto.start" property to set the bundle locations. Moreover, it 
> seems that this part of the documentation is out to date.
>
> Thank you for your your help.
> François
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Custom Felix launcher and auto-property

Posted by "Richard S. Hall" <he...@ungoverned.org>.
François Fornaciari wrote:
> Hello,
>
> As the auto-property processing has been moved to the launcher, what 
> is the new way to specify to a custom Felix launcher to start a list 
> of bundles at startup? I mean, I can no more use the 
> "felix.auto.start" property to set the bundle locations. Moreover, it 
> seems that this part of the documentation is out to date.

Yes, the documentation needs to be updated...I will try to get to that.

The way you should do this now is pretty much the same way that Felix' 
default Main.java does it. It adds a custom framework activator to 
automatically install/start bundles. You should be able to use it as a 
template for your own launcher...you can see that there is one method 
called from the custom activator (Main.processAutoProperties()) that 
does all of the processing that was previously done internally, so you 
pretty much just need to copy that method.

Sorry that this change makes it a little more complicated, but it didn't 
really make sense to be baked in. I will try to think about a way to 
simplify this situation...perhaps by separating out the functionality in 
some way so that it can be directly re-used.

-> richard
>
> Thank you for your your help.
> François
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org