that can't be constructed directly by the client for whatever reason. A
special case of a factory is a singleton class, like Java's System and
Runtime classes, where you call a static method in order to get a reference
to the actual object.
A manager is (in my view) a class that provides a cohesive interface to one
or more objects that do related tasks. It might provide methods for
creating business objects, updateing and deleting them, as well as various
methods for recalling recordsets that back those BOs. It'll probably have
methods like createDocument, getDocumentById, updateDocument,
deleteDocument, getDocumentList, getPostedDocumentList,
getUnpostedDocumentList, getRecentDocumentList, etc.
Cheers,
barneyb
> -----Original Message-----
> From: Troy Simpson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 26, 2004 11:18 AM
> To: CF-Talk
> Subject: What is a Factory?
>
> All,
>
> I noticed that some application user the terms Factory and Manager in
> the Class/Object Names. Like AppFactory, AppManager, and
> EventManager
> in Mach-II
>
> 1. What is the general definition of a Factory?
> 2. What is the general definition of a Manager?
>
> Thanks,
>
> --
> Troy Simpson
> Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
> North Carolina State University Libraries
> Campus Box 7111 | Raleigh | North Carolina
> ph.919.515.3855 | fax.919.513.3330
> E-mail: [EMAIL PROTECTED]
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

