- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Extending FlowTrk class
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-10-2016 03:43 PM
11-10-2016 03:43 PM
Extending FlowTrk class
Hello,
is there a way I can extendcom.hp.of.ctl.flow.impl.FlowTrk?
My HP-specific dependencies are: com.hp.sdn.sdn-of-lib, com.hp.sdn.sdn-of-ctl, com.hp.sdn.sdn-ctl-api
com.hp.of.ctl.flow.impl.FlowTrk is included in dependency com.hp.sdn.sdn-of-ctl
But whenever I do something like this: public class MyFlowTrk extends FlowTrk { ... }
I get the following error: An Import-Package could not be resolved. Resolver error data <Import-Package: com.hp.of.ctl.flow.impl; version="0.0.0">. Caused by missing constraint in bundle
What am I doing wrong?
Thanks for your help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-15-2016 12:50 PM
11-15-2016 12:50 PM
Re: Extending FlowTrk class
Hi HansChristian,
You're hitting this issue because FlowTrk is in a .impl package and those packages are not exposed via OSGI. Such classes can be extended if your implementation were within the same bundle (com.hp.sdn.sdn-of-ctl), but unfortunately it is outside of the bundle and therefore cannot reference any classes in a .impl package.
If you were aiming to provide a different FlowTracker implementation, then you could still do that and have it get used by OSGI, but you couldn't extend the HPE implementation (yours would need to start from scratch).
If you can let us know a little more about what you're trying to accomplish, maybe we could offer some other options?
Shaun
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP