I am developing an SDK in java and my problem is hiding some java classes / packages, so no third-party application using this sdk is exposed to this class underscore
I know that if all the class objects in sdk were inside the same package, I can assign default / secure access modifiers to the class that I want to hide. However, like a large number of java projects, a java project, such as my sdk, consists of different packages that appropriately group the relevant java class.
This means that if I want to hide / protect a class that is in com.abc, the main root class that the world sees in com.a will not be able to access classes protected in com.abc, etc.
How can I provide a solution for this, and not just dump all the classes in one big package?
Thank.
source
share