[CONTROLLER-1748] Various classes in cntrl/md-sal use hardcoded dependencies on OSGI/karaf Created: 09/Aug/17  Updated: 25/Jul/23  Resolved: 13/Jul/21

Status: Resolved
Project: controller
Component/s: mdsal
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Martin Dindoffer Assignee: Jakub Toth
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
is blocked by CONTROLLER-1778 BindingToNormalizedNodeCodecFactory i... Resolved
is blocked by CONTROLLER-1780 EntityOwnerSelectionStrategyConfigRea... Resolved
is blocked by CONTROLLER-1781 DistributedDataStoreFactory in sal-di... Resolved
is blocked by CONTROLLER-1779 ActorSystemProviderImpl in sal-distri... Verified
External issue ID: 8967

 Description   

1)sal-distributed-datastore:
A)ActorSystemProviderImpl

  • accepts a bundle context in the constructor to use the bundle's
    classloader for reading Akka configuration. Also creates
    a QuarantinedMonitorActor hard-coded to restart karaf (bundle_0:stop)
    B)EntityOwnerSelectionStrategyConfigReader
  • deprecated, uses bundleContext to retrieve osgi config admin service,
    then reads and parses the eos strategy config
    C)DistributedDataStoreFactory
  • accepts bundle context in factory method to create DatastoreContextConfigAdminOverlay
    D)DatastoreContextConfigAdminOverlay
  • gets config admin service via bundle context to listen on datastore config changes

2)sal-binding-broker
A)BindingToNormalizedNodeCodecFactory

  • registers a BindingToNormalizedNodeCodec instance as an osgi service. To quote jdoc:
    "* This method is called via blueprint to register a BindingToNormalizedNodeCodec instance with the OSGI
  • service registry. This is done in code instead of directly via blueprint because the BindingToNormalizedNodeCodec
  • instance must be advertised with the actual class for backwards compatibility with CSS modules and blueprint
  • will try to create a proxy wrapper which is problematic with BindingToNormalizedNodeCodec because it's final
  • and has final methods which can't be proxied."


 Comments   
Comment by Robert Varga [ 14/Nov/18 ]

jakubtoth-0 are you still working on this?

Generated at Wed Feb 07 19:56:21 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.