> but is it a decorator or chain of responsabilities? I'd rather the second
> drawing.
I had imagined something like the following...
public abstract SimpleContainer
implements Container {
public void registerComponent(Class klass, Object key) {
registerComponent( new SimpleInstantiationExpression(klass), key );
}
public void registerComponent(Expression exp, Object key) {
for (Iterator i=concerns.iterator(); i.hasNext(); ) {
Concern concern = (Concern) i.next();
exp = concern.passOnConcern(this, key, exp);
}
map.put(key, exp);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]