Dependency injection is more useful for framework developers then
application developers I guess. In oneof my example, I created a framework
to undo changes made on an object.

Now, imagine you have a class Document

public class Document{
 private String text;
 //setters and getters
}

How would you tell the system to track changes to this class and enable
undo? Well, with CDI, all you have to do is "mark" the  class as:

@Undoable
public class Document{
 private String text;
 //setters and getters
}

All changes will automatically be tracked. When you need to undo it, just
call

UndoUtility.undo(document)

Simple

On Sun, Dec 13, 2009 at 11:50 AM, Harisfazillah Jamel <
[email protected]> wrote:

> Saya pun. Tapi that nice bro.
>
> On Sun, Dec 13, 2009 at 11:32 AM, red1 <[email protected]> wrote:
> > bro, a bit wee over world class.. i memang cannot catch up. :)
> >
> > Azrul Hasni MADISA wrote:
> >
> > Hi all,
> > If you are interested in Java EE 6 dependency injection, do check out my
> > presentation:
> >
> > http://ejn3.blogspot.com/2009/12/weld-di-and-glassfish-example.html
> >
> > Azrul
> >
> >
> >
> > --
> > Join Open Source Developers Club Malaysia http://www.osdc.my/
> >
> > Facebook Fan page
> >
> > http://www.facebook.com/group.php?gid=98685301577
> >
> > http://www.facebook.com/OSDC.my
> >
> > You received this message because you are subscribed to the Google
> >
> > Groups "OSDC.my Mailing List" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<osdcmy-list%[email protected]>
> > For more options, visit this group at
> > http://groups.google.com/group/osdcmy-list?hl=en
>
>
>
> --
> My Facebook
> http://www.facebook.com/linuxmalaysia
>
> My Blog
> http://blog.harisfazillah.info/
>
> My Network
> http://linuxdotmy.multiply.com/
>
> --
> Join Open Source Developers Club Malaysia http://www.osdc.my/
>
> Facebook Fan page
>
> http://www.facebook.com/group.php?gid=98685301577
>
> http://www.facebook.com/OSDC.my
>
> You received this message because you are subscribed to the Google
>
> Groups "OSDC.my Mailing List" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<osdcmy-list%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/osdcmy-list?hl=en
>

-- 
Join Open Source Developers Club Malaysia http://www.osdc.my/

Facebook Fan page

http://www.facebook.com/group.php?gid=98685301577

http://www.facebook.com/OSDC.my

You received this message because you are subscribed to the Google

Groups "OSDC.my Mailing List" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/osdcmy-list?hl=en

Kirim email ke