felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-359) felix.auto.install, felix.auto.start and felix.startlevel.bundles
Date Fri, 07 Sep 2007 15:59:30 GMT

    [ https://issues.apache.org/jira/browse/FELIX-359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525758
] 

Richard S. Hall commented on FELIX-359:
---------------------------------------

I don't think this sounds like an unreasonable change.

On another topic, now that Felix implements the Bundle interface, I wonder if the processing
of these auto properties should actually be handled by Main rather than the framework itself...

> felix.auto.install, felix.auto.start and felix.startlevel.bundles
> -----------------------------------------------------------------
>
>                 Key: FELIX-359
>                 URL: https://issues.apache.org/jira/browse/FELIX-359
>             Project: Felix
>          Issue Type: Improvement
>          Components: Framework
>    Affects Versions: 1.0.0
>            Reporter: Alin Dreghiciu
>            Priority: Minor
>
> Hi guys,
> Felix supports the the felix.auto.install.<n>, felix.auto.start.<n> as follows
(from Felix.java) :
>                 int startLevel = 1;
>                 try
>                 {
>                     startLevel = Integer.parseInt(key.substring(key.lastIndexOf('.')
+ 1));
>                 }
>                 catch (NumberFormatException ex)
>                 {
>                     m_logger.log(Logger.LOG_ERROR, "Invalid property: " + key);
>                 } 
> Could this be changed a bit so it will allow the install/start property to be set without
the .<n> = start level. It does that also now but it will log an error to the console
and start the bundles on start level 1.
> Shouldn't actually start the bundles in this case at the value set by felix.startlevel.bundles
or at the persisted value corresponding to this variable. Indeed starting without the .<n>
is not a correct start up but since the handling code is there it will be only a minor change.
> If possible I would like to have also the logging removed or be done at a lower level
as trace/debug as even if is reported as error felix still uses the value of property.
> My use case for this is: I want to start the bundles at the default set start level whatever
that value will be.
> Thanx,
> Alin Dreghiciu

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message