class design

I have library with class A, along with classes 1,2, and 3. I would like A to be the interface between the programmer and classes 1,2,3. I do not want the user of the library to acess 1,2,3 directly, only through the interfacing class A. How can I achieve this level of
[298 byte] By [black_lotusa] at [2007-11-27 4:27:41]
# 1
http://en.wikipedia.org/wiki/Facade_pattern
Hippolytea at 2007-7-12 9:36:22 > top of Java-index,Java Essentials,Java Programming...
# 2
You can make the hidden classes package-private, with only the api class being public.Or you can make the hidden classes as private nested classes of the public class.
paulcwa at 2007-7-12 9:36:22 > top of Java-index,Java Essentials,Java Programming...