Hi! > public <T> T borrowObject(Class<T> objectType) > > where you can do > > Pencil p = man.borrowObject(Pencil.class); > > Either way, you have to put logic somewhere that tries to figure out > what the heck you want to borrow and then figure out where the heck to > get it.
If it is done at compile time you don't need "messaging" logic. It would be uniquely defined what you can get. > I don't necessarily think I would consider this a shortcoming > of the Java language. Well.. if there is room for improvement it could be considered a shortcoming. Solution is not necessarily simple, but possible ;) ** Martin >