java - Create API jar like Android does with stubbed methods? -


i'm looking distribute custom api , know classes available @ run time. public , protected methods / classes included in jar can distribute don't want other source code , throw exception if jars code executed.

this exact behaviour android framework jar has when attempt execute jar directly.

my question how create same jar source without manually going through , creating each stubbed method. scale api grows.

i believe can use purpose mkstubs tool: https://github.com/android/platform_development/tree/master/tools/mkstubs

as @commonsware mentioned stubs in aosp generated javadoc droiddoc script, read here: how .java files in android_stubs_current_intermediates directory generated?


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -