Re: getting things like loggers into the model
Caleb Cushing <[email protected]>
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <CAAHKNRFG0s0bJC+T351tCnKC0PfyPmMwg0sMmZs=nXDieYpkOA@mail.gmail.com> |
> Basically, the thing that wants to let others know what's happening
> (either exceptionally or for metrics reasons or whatever) defines an
> internal public interface which is always called Monitor. It has methods
> that take whatever parameters are needed (usually none, but sometimes an
> int or two, and an exception if something went wrong), and always
> returns void. Typed logging methods, you could say.
This seems similar to passing in the Event, which that interface is
fundamentally Event.fire( MyEventObject ); my problem is that passing
in something because of how Hibernate, or other JPA things
reinstantiate Entities... no option to give them additonal objects
--
Caleb Cushing
http://xenoterracide.com
Calendar:
https://www.google.com/calendar/embed?src=xenoterracide%40gmail.com&ctz=America/Chicago
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/domaindrivendesign/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/domaindrivendesign/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo Groups is subject to:
http://info.yahoo.com/legal/us/yahoo/utos/terms/