Skip to main content

about java/stub

2 replies [Last post]
yelin
Offline
Joined: 2010-06-30

I have a question on java/stub directory. What is it used for?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
greg80303
Offline
Joined: 2008-07-03

David is correct. The stubs represent the public OCAP APIs as defined by the revision of the OCAP specification to which the RI is compliant. Application developers may compile their applications against these classes.

On the 1.1.4 release branch, you can expect that the stubs are compliant with the "1.1.4 bundle release" (which references the 1.1.3 released version of the OCAP specification). On the trunk, the stubs may include specification engineering changes (ECs) that have been implemented in the RI but that may not have an official specification release published by CableLabs.

G

david_crandall
Offline
Joined: 2010-01-05

Someone can correct me if I'm wrong on this, but the stubs do two things:

a.) provides a template of what the implementations should have in-place, and maybe even something to inherit from if need-be.
b.) Gives developers with the API the opportunity to get all the function definitions they need to know to compile against.