|
|
07 February 2003
|
|
| |
Interception for ServicedComponents.
Clemens is starting to publicly talk about the features of his interception toolkit for EnterpriseServices. I think that this very thing is just sooo cool.
[Transaction] public class Component : newtelligence.EnterpriseServices.AspectServicedComponent { private string val = "";
public Component() { }
[Match("[A-Z]*")] public string SetMeGetMe { get { return val; } set { val = value; } }
[GreaterEqualTo(0)] public int TestField;
[return: MinLength(1)] public string Hello( [MinLength(1),MaxLength(20)] string Name, [Between(1,100)] int Age, [MinLength(1)] out string retString, [LaterThanToday] DateTime when) { return "Test"; } }
This rocks, right? Not just the fact that one can use custom attributes - that's already well known - but even more that his toolkit will allow you to use interception with ServicedComponents to automatically check these properties whenever you call the method. The keywords here are automatically and ServicedComponent. My only question is: Why is there a stateful variable ("private string val") in your ServicedComponent ;-)? Just kidding ... it's an educational sample. [Ingo Rammer's DotNetCentric]
7:28:16 PM
|
|
Jenifer Tidwell: UI Patterns and Techniques. "Each of these patterns (which are more general) and techniques (more specific) are intended to help you solve design problems. They're common problems, and there's no point in reinventing the wheel every time you need, say, a sortable table -- plenty of folks have already done it, and learned how to do it well. Some of that knowledge is written up here, in an easily-digestible format." [almostperfect]
Wow, wasn't this a cool find? I worked with Jenifer years ago at Gensym and lost contact with her work. She has been working in this area of UI Patterns for quite some time and this is most definetly worth a look. [Sam Gentile's Weblog]
11:51:36 AM
|
|
|
|
© Copyright
2003
Jamie Cansdale.
Last update:
26/02/2003; 03:09:18.
|
|
| February 2003 |
| Sun |
Mon |
Tue |
Wed |
Thu |
Fri |
Sat |
| |
|
|
|
|
|
1 |
| 2 |
3 |
4 |
5 |
6 |
7 |
8 |
| 9 |
10 |
11 |
12 |
13 |
14 |
15 |
| 16 |
17 |
18 |
19 |
20 |
21 |
22 |
| 23 |
24 |
25 |
26 |
27 |
28 |
|
| Jan Mar |
|