I am writing some framework code currently. Recently, I had to add some methods to a class which needed to be public because classes outside of that that package need access to it. The clients of that class also have access to that class, but I don't these methods to be accessible by my clients - I just want them to be visible to other framework classes in the framework.
Marking them as public does not help since my clients also have access to it. Marking it as protected or package private does not help since framework classes outside of this class's java package need access to it.
What can I do to solve this problem?
Thanks!