Uploaded image for project: 'ONOS'
  1. ONOS
  2. ONOS-4405

Allow loading of device behavior implementation from other drivers

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.6.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      2
    • Epic Link:

      Description

      Consider the following scenario: driver B wants to re-use the implementation of an existing behavior belonging to driver A. Right now defining the following binding in drivers-B.xml would produce an exception at runtime:

      drivers-B.xml
      ...
      <behaviour api="org.onosproject.net.behaviour.Foo"
                         impl="org.onosproject.drivers.A.FooImpl"/>
      ...
      

      The exception produced would be something similar to:

      java.lang.IllegalArgumentException: Unable to load class org.onosproject.drivers.A.FooImpl
      	at org.onosproject.net.driver.XmlDriverLoader.getClass(XmlDriverLoader.java:185)
      	...
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              carmelo Carmelo Cascone
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: