Not the employee manager but an actual manager class that manages something...
So I have this class: Manager.
This class manages a class called: Session.
Now, each time I create a new Session, I'd use something like: myManager.createSession("my.server.com");
The problem with this is that when I need to reference the session again at any time through the manager, I don't have any clean way to do it. My thoughts so far has gone to:
1 2
myManager.getSession("my.server.com");
which will use a map. Another method would be to return a handle or something:
which proposes the problems of getting the session globally and also looking terribly ugly and rather C-like. So, for those who can pick up my brain waves, any thoughts?