So in my view, since the relationship between the Context and the
Strategy could be (and usually is) one where the Context uses the
services/information of the Strategy, it should be depicted as a dotted
line ending with an arrow pointing from Context to Strategy.
Regards,
Marco
The Context uses a Strategy object, but in most cases it also has a
field that points to the instance.
It could be changed to Association, rather than Aggregation, if we start
sharing instances of the Strategy objects between different Contexts,
thus the lifetime of the Strategy objects could exceed the Context. But
as soon as you have state in the Strategy objects (like in Checksum),
you cannot share it, so then the Aggregation is correct.
Regards
Heinz
--
Dr Heinz M. Kabutz (PhD CompSci)
Author of "The Java(tm) Specialists' Newsletter"
Sun Java Champion
http://www.javaspecialists.eu
Tel: +30 69 72 850 460
Skype: kabutz
--
You received this message because you are subscribed to the Google Groups "jpatterns" group.
To post to this group, send email to jpat...@googlegroups.com.
To unsubscribe from this group, send email to jpatterns+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jpatterns?hl=en.
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
Hi,
Great! Should we make a little roadmap so we can focus on the tasks that need to be done by November? What coverage should jpatterns have by then in terms of depth, scope and completeness? I.e. the Alex equation: (D * S * C * Q)/T = Ac�
Regards,Alex
On Aug 30, 2010, at 3:04 PM, Dr Heinz M. Kabutz wrote:
Going to JavaPolis � err � Devoxx 2010 :-)
We just got notification that our BoF regarding the jpatterns.org annotations has been accepted for Devoxx 2010 in Belgium, the largest Java developers conference in Europe.
At the moment we�ve put Michael Hunger and Heinz Kabutz down as speakers, but please let us know if you are in the area and would also like to join us.
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
--
You received this message because you are subscribed to the Google Groups "jpatterns" group.
To post to this group, send email to jpat...@googlegroups.com.
To unsubscribe from this group, send email to jpatterns+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jpatterns?hl=en.
Yes, I agree that we should think about this.
1. I think that we need to complete the GoF patterns, which means documenting them and more importantly, writing better tests.
2. Then, I think we should add more JEE patterns. Marco already started this. We will need to have a list of patterns that we want to include. We currently have Business Delegate, DAO and MVC. All the Core J2EE Patterns 2nd Edition are here:
Presentation Tier:
Intercepting Filter
Front Controller
Context Object
Application Controller
View Helper
Composite View
Service To Worker
Dispatcher View
Business Tier:
Business Delegate (we have that already)
Service Locator
Session Facade
Application Service
Business Object
Composite Entity
Transfer Object
Transfer Object Assembler
Value List Handler
Integration Tier:
Data Access Object (got that already)
Service Activator
Domain Store
Web Service Broker
Some of these patterns are not so relevant to JEE anymore. The question is: should we make the decision as to what is included or not, or should we just put them all in? There might be programmers using Transfer Object. I think that the jee catalog should contain probably at least the above patterns.
MVC is an interesting one, as it is not a JEE pattern as such, but a more general pattern. We should probably move it somewhere else. It definitely needs to be somewhere in our catalogs.
3. Then I would think we should also add the Hohpe and Woolf Enterprise Integration Patterns. We might as well add all of them whilst we're about it. The more patterns we sport, the more useful jpatterns.org will be to users. I will write to Gregor and tell him about this - maybe he can send me an electronic list of the patterns and save us some typing...
4. We should also have Fowler's Patterns of Enterprise Application Architecture in our catalog. Again, I will write to him to ask for an electronic list.
5. I think we should also include some of the PLoPD proceeding patterns in our catalogs.
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
On 8/31/10 3:26 PM, Alex Gout wrote:
Hi,
Great! Should we make a little roadmap so we can focus on the tasks that need to be done by November? What coverage should jpatterns have by then in terms of depth, scope and completeness? I.e. the Alex equation: (D * S * C * Q)/T = Ac
Regards,Alex
On Aug 30, 2010, at 3:04 PM, Dr Heinz M. Kabutz wrote:
Going to JavaPolis – err – Devoxx 2010 :-)
We just got notification that our BoF regarding the jpatterns.org annotations has been accepted for Devoxx 2010 in Belgium, the largest Java developers conference in Europe.
At the moment we’ve put Michael Hunger and Heinz Kabutz down as speakers, but please let us know if you are in the area and would also like to join us.
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
--
You received this message because you are subscribed to the Google Groups "jpatterns" group.
To post to this group, send email to jpat...@googlegroups.com.
To unsubscribe from this group, send email to jpatterns+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jpatterns?hl=en.
--
You received this message because you are subscribed to the Google Groups "jpatterns" group.
To post to this group, send email to jpat...@googlegroups.com.
To unsubscribe from this group, send email to jpatterns+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jpatterns?hl=en.
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
Yes, good list! I agree we should focus first on the GoF patterns.I'm still concerned about the tests though. In my opinion, the tests now don't seem to test the essence of the annotations. They just test whether or not the piece of code does what we would expect. Therefor, a fail of the test does not in any way indicate an error in the annotation, in all cases it will just be the testcode causing the problem. I dont think that is what a test should be about. The real tests start with whether or not they are applicable to real life code (and even that is very hard to test) and testing the code that will eventually be able to indicate a shady pattern implementation that was annotated with jpatterns.Untill then, what should we do with our tests as I hope Im not the only one who feels that they do not test jpatterns?
Regards,Alex
�
On Sep 1, 2010, at 10:14 AM, Dr Heinz M. Kabutz wrote:
Yes, I agree that we should think about this.
1. I think that we need to complete the GoF patterns, which means documenting them and more importantly, writing better tests.
2. Then, I think we should add more JEE patterns.� Marco already started this.� We will need to have a list of patterns that we want to include.� We currently have Business Delegate, DAO and MVC.� All the Core J2EE Patterns 2nd Edition are here:
Presentation Tier:
��� Intercepting Filter
��� Front Controller
��� Context Object
��� Application Controller
��� View Helper
��� Composite View
��� Service To Worker
��� Dispatcher View
Business Tier:
��� Business Delegate (we have that already)
��� Service Locator
��� Session Facade
��� Application Service
��� Business Object
��� Composite Entity
��� Transfer Object
��� Transfer Object Assembler
��� Value List Handler
Integration Tier:
��� Data Access Object (got that already)
��� Service Activator
��� Domain Store
��� Web Service Broker
Some of these patterns are not so relevant to JEE anymore.� The question is: should we make the decision as to what is included or not, or should we just put them all in?� There might be programmers using Transfer Object.� I think that the jee catalog should contain probably at least the above patterns.
MVC is an interesting one, as it is not a JEE pattern as such, but a more general pattern.� We should probably move it somewhere else.� It definitely needs to be somewhere in our catalogs.
3. Then I would think we should also add the Hohpe and Woolf Enterprise Integration Patterns.� We might as well add all of them whilst we're about it.� The more patterns we sport, the more useful jpatterns.org will be to users.� I will write to Gregor and tell him about this - maybe he can send me an electronic list of the patterns and save us some typing...
4. We should also have Fowler's Patterns of Enterprise Application Architecture in our catalog.� Again, I will write to him to ask for an electronic list.
5. I think we should also include some of the PLoPD proceeding patterns in our catalogs.
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
On 8/31/10 3:26 PM, Alex Gout wrote:
Hi,
Great! Should we make a little roadmap so we can focus on the tasks that need to be done by November? What coverage should jpatterns have by then in terms of depth, scope and completeness? I.e. the Alex equation: (D * S * C * Q)/T = Ac�
Regards,Alex
On Aug 30, 2010, at 3:04 PM, Dr Heinz M. Kabutz wrote:
Going to JavaPolis � err � Devoxx 2010 :-)
We just got notification that our BoF regarding the jpatterns.org annotations has been accepted for Devoxx 2010 in Belgium, the largest Java developers conference in Europe.
At the moment we�ve put Michael Hunger and Heinz Kabutz down as speakers, but please let us know if you are in the area and would also like to join us.
Hi Alex,
I think we all feel the same way...
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
On 9/1/10 10:03 PM, Alex Gout wrote:
Yes, good list! I agree we should focus first on the GoF patterns.I'm still concerned about the tests though. In my opinion, the tests now don't seem to test the essence of the annotations. They just test whether or not the piece of code does what we would expect. Therefor, a fail of the test does not in any way indicate an error in the annotation, in all cases it will just be the testcode causing the problem. I dont think that is what a test should be about. The real tests start with whether or not they are applicable to real life code (and even that is very hard to test) and testing the code that will eventually be able to indicate a shady pattern implementation that was annotated with jpatterns.Untill then, what should we do with our tests as I hope Im not the only one who feels that they do not test jpatterns?
Regards,Alex
On Sep 1, 2010, at 10:14 AM, Dr Heinz M. Kabutz wrote:
Yes, I agree that we should think about this.
1. I think that we need to complete the GoF patterns, which means documenting them and more importantly, writing better tests.
2. Then, I think we should add more JEE patterns. Marco already started this. We will need to have a list of patterns that we want to include. We currently have Business Delegate, DAO and MVC. All the Core J2EE Patterns 2nd Edition are here:
Presentation Tier:
Intercepting Filter
Front Controller
Context Object
Application Controller
View Helper
Composite View
Service To Worker
Dispatcher View
Business Tier:
Business Delegate (we have that already)
Service Locator
Session Facade
Application Service
Business Object
Composite Entity
Transfer Object
Transfer Object Assembler
Value List Handler
Integration Tier:
Data Access Object (got that already)
Service Activator
Domain Store
Web Service Broker
Some of these patterns are not so relevant to JEE anymore. The question is: should we make the decision as to what is included or not, or should we just put them all in? There might be programmers using Transfer Object. I think that the jee catalog should contain probably at least the above patterns.
MVC is an interesting one, as it is not a JEE pattern as such, but a more general pattern. We should probably move it somewhere else. It definitely needs to be somewhere in our catalogs.
3. Then I would think we should also add the Hohpe and Woolf Enterprise Integration Patterns. We might as well add all of them whilst we're about it. The more patterns we sport, the more useful jpatterns.org will be to users. I will write to Gregor and tell him about this - maybe he can send me an electronic list of the patterns and save us some typing...
4. We should also have Fowler's Patterns of Enterprise Application Architecture in our catalog. Again, I will write to him to ask for an electronic list.
5. I think we should also include some of the PLoPD proceeding patterns in our catalogs.
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
On 8/31/10 3:26 PM, Alex Gout wrote:
Hi,
Great! Should we make a little roadmap so we can focus on the tasks that need to be done by November? What coverage should jpatterns have by then in terms of depth, scope and completeness? I.e. the Alex equation: (D * S * C * Q)/T = Ac
Regards,Alex
On Aug 30, 2010, at 3:04 PM, Dr Heinz M. Kabutz wrote:
Going to JavaPolis – err – Devoxx 2010 :-)
We just got notification that our BoF regarding the jpatterns.org annotations has been accepted for Devoxx 2010 in Belgium, the largest Java developers conference in Europe.
At the moment we’ve put Michael Hunger and Heinz Kabutz down as speakers, but please let us know if you are in the area and would also like to join us.
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
oops... I guess I missed a dicussion on my holiday ;)
On Sep 1, 2010, at 9:13 PM, Dr Heinz M. Kabutz wrote:
Hi Alex,
I think we all feel the same way...
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
On 9/1/10 10:03 PM, Alex Gout wrote:
Yes, good list! I agree we should focus first on the GoF patterns.I'm still concerned about the tests though. In my opinion, the tests now don't seem to test the essence of the annotations. They just test whether or not the piece of code does what we would expect. Therefor, a fail of the test does not in any way indicate an error in the annotation, in all cases it will just be the testcode causing the problem. I dont think that is what a test should be about. The real tests start with whether or not they are applicable to real life code (and even that is very hard to test) and testing the code that will eventually be able to indicate a shady pattern implementation that was annotated with jpatterns.Untill then, what should we do with our tests as I hope Im not the only one who feels that they do not test jpatterns?
Regards,Alex
�
On Sep 1, 2010, at 10:14 AM, Dr Heinz M. Kabutz wrote:
Yes, I agree that we should think about this.
1. I think that we need to complete the GoF patterns, which means documenting them and more importantly, writing better tests.
2. Then, I think we should add more JEE patterns.� Marco already started this.� We will need to have a list of patterns that we want to include.� We currently have Business Delegate, DAO and MVC.� All the Core J2EE Patterns 2nd Edition are here:
Presentation Tier:
��� Intercepting Filter
��� Front Controller
��� Context Object
��� Application Controller
��� View Helper
��� Composite View
��� Service To Worker
��� Dispatcher View
Business Tier:
��� Business Delegate (we have that already)
��� Service Locator
��� Session Facade
��� Application Service
��� Business Object
��� Composite Entity
��� Transfer Object
��� Transfer Object Assembler
��� Value List Handler
Integration Tier:
��� Data Access Object (got that already)
��� Service Activator
��� Domain Store
��� Web Service Broker
Some of these patterns are not so relevant to JEE anymore.� The question is: should we make the decision as to what is included or not, or should we just put them all in?� There might be programmers using Transfer Object.� I think that the jee catalog should contain probably at least the above patterns.
MVC is an interesting one, as it is not a JEE pattern as such, but a more general pattern.� We should probably move it somewhere else.� It definitely needs to be somewhere in our catalogs.
3. Then I would think we should also add the Hohpe and Woolf Enterprise Integration Patterns.� We might as well add all of them whilst we're about it.� The more patterns we sport, the more useful jpatterns.org will be to users.� I will write to Gregor and tell him about this - maybe he can send me an electronic list of the patterns and save us some typing...
4. We should also have Fowler's Patterns of Enterprise Application Architecture in our catalog.� Again, I will write to him to ask for an electronic list.
5. I think we should also include some of the PLoPD proceeding patterns in our catalogs.
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
On 8/31/10 3:26 PM, Alex Gout wrote:
Hi,
Great! Should we make a little roadmap so we can focus on the tasks that need to be done by November? What coverage should jpatterns have by then in terms of depth, scope and completeness? I.e. the Alex equation: (D * S * C * Q)/T = Ac�
Regards,Alex
On Aug 30, 2010, at 3:04 PM, Dr Heinz M. Kabutz wrote:
Going to JavaPolis � err � Devoxx 2010 :-)
We just got notification that our BoF regarding the jpatterns.org annotations has been accepted for Devoxx 2010 in Belgium, the largest Java developers conference in Europe.
At the moment we�ve put Michael Hunger and Heinz Kabutz down as speakers, but please let us know if you are in the area and would also like to join us.
They are there to document the usage of the annotations.
Cheers
Michael
I know tests are often used to document an API as well, but in this case
I do think it is a bit misleading.
Just my 20c
Just didn't find time to do it.
Michael
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
Regards Heinz -- Dr Heinz M. Kabutz (PhD CompSci) Author of "The Java(tm) Specialists' Newsletter" Sun Java Champion http://www.javaspecialists.eu Tel: +30 69 72 850 460 Skype: kabutz
The tests also should show how the patterns work, that they actually work should be proven by the test.
Cheers
Michael