Looking for the name of a design pattern
From: John Wheeler (johnwheeler79_at_msn.com)
Date: 03/30/04
- Next message: Robert C. Martin: "Re: xp and simple design"
- Previous message: Lee Riemenschneider: "Re: MS passes on UML/MDA with its own model-based approach called Whitehorse"
- Next in thread: Robert C. Martin: "Re: Looking for the name of a design pattern"
- Reply: Robert C. Martin: "Re: Looking for the name of a design pattern"
- Reply: Pradyumn Sharma: "Re: Looking for the name of a design pattern"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 30 Mar 2004 09:30:03 -0800
I have an object called Inventory that implements an IInventory
interface. IInventory has abstractions like
void addWarehouse(Warehouse w);
List getWarehouses();
List getSuppliers();
...
I have another object that implements java.util.Observable and
IInventory, which I call CurrentInventory. It delegates to an internal
Inventory instance when IInventory methods are called. It does special
things though, for instance:
void addWarehouse(Warehouse w) {
m_inventory.addWarehouse(w);
setChanged();
notifyObservers(this);
}
List getWarehouses() {
return Collections.unmodifiableList(m_inventory.getWarehouses());
}
I use CurrentInventory as a model for my user interface, but I dislike
its name. I would like to name it after a pattern if possible. I
thought it might be a proxy, but I read descriptions about that
pattern, and its more for access control.
THANKS
- Next message: Robert C. Martin: "Re: xp and simple design"
- Previous message: Lee Riemenschneider: "Re: MS passes on UML/MDA with its own model-based approach called Whitehorse"
- Next in thread: Robert C. Martin: "Re: Looking for the name of a design pattern"
- Reply: Robert C. Martin: "Re: Looking for the name of a design pattern"
- Reply: Pradyumn Sharma: "Re: Looking for the name of a design pattern"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|