I have a question on java/stub directory. What is it used for?
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.
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.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.