You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "ted stockwell (JIRA)" <ji...@apache.org> on 2009/05/03 19:57:30 UTC
[jira] Created: (FELIX-1120) Enable BundleCache customization
Enable BundleCache customization
--------------------------------
Key: FELIX-1120
URL: https://issues.apache.org/jira/browse/FELIX-1120
Project: Felix
Issue Type: Improvement
Components: Framework
Reporter: ted stockwell
Attachments: patch.txt
Make is possible to configure Feliz with a custom BundleCache
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (FELIX-1120) Enable BundleCache customization
Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Richard S. Hall resolved FELIX-1120.
------------------------------------
Resolution: Fixed
Fix Version/s: felix-2.0.0
Assignee: Richard S. Hall
I applied this patch, but I renamed the configuration property to "felix.bundlecache.impl". Please close if you are satisfied.
> Enable BundleCache customization
> --------------------------------
>
> Key: FELIX-1120
> URL: https://issues.apache.org/jira/browse/FELIX-1120
> Project: Felix
> Issue Type: Improvement
> Components: Framework
> Reporter: ted stockwell
> Assignee: Richard S. Hall
> Fix For: felix-2.0.0
>
> Attachments: patch.txt
>
>
> Make is possible to configure Feliz with a custom BundleCache
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (FELIX-1120) Enable BundleCache customization
Posted by "ted stockwell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ted stockwell closed FELIX-1120.
--------------------------------
Thanks.
Sorry for the deplay in closing, for some reason I didn't get notification.
> Enable BundleCache customization
> --------------------------------
>
> Key: FELIX-1120
> URL: https://issues.apache.org/jira/browse/FELIX-1120
> Project: Felix
> Issue Type: Improvement
> Components: Framework
> Reporter: ted stockwell
> Assignee: Richard S. Hall
> Fix For: felix-2.0.0
>
> Attachments: patch.txt
>
>
> Make is possible to configure Feliz with a custom BundleCache
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (FELIX-1120) Enable BundleCache customization
Posted by "ted stockwell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ted stockwell updated FELIX-1120:
---------------------------------
Attachment: patch.txt
A patch file for the customization.
After thinking about how to customize the system bundle cache, with a eye on not making the base code bigger, it struck me that the simplest thing to do would be to pass a BundleCache implementation in the configuration map that is passed to the Felix construction, as is done for system activators.
So for now I have added this code to the FelixConstants class...
public static final String SYSTEMBUNDLE_BUNDLE_CACHE
= "felix.systembundle.bundle.cache";
and I added this code to the Felix.init method...
// Create the bundle cache, if necessary, so that we can reload any installed bundles.
m_cache= (BundleCache) m_configMutableMap.get(FelixConstants.SYSTEMBUNDLE_BUNDLE_CACHE);
if (m_cache == null)
{
try
{
m_cache = new BundleCache(m_logger, m_configMap);
}
catch (Exception ex)
{
m_logger.log(Logger.LOG_ERROR, "Error creating bundle cache.", ex);
throw new BundleException("Error creating bundle cache.", ex);
}
}
then in my code I do this....
configMap.put(FelixConstants.SYSTEMBUNDLE_BUNDLE_CACHE, new Felix4GAEBundleCache());
Felix framework= new Felix(configMap);
I have attached a patch file if you are inclined to apply these changes.
> Enable BundleCache customization
> --------------------------------
>
> Key: FELIX-1120
> URL: https://issues.apache.org/jira/browse/FELIX-1120
> Project: Felix
> Issue Type: Improvement
> Components: Framework
> Reporter: ted stockwell
> Attachments: patch.txt
>
>
> Make is possible to configure Feliz with a custom BundleCache
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.