Page 6 of 6 FirstFirst ... 456
Results 51 to 55 of 55

Thread: Is Annotated POJO a POJO ?

  1. #51
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Quote Originally Posted by cepage View Post
    This means no annotations, not even my beloved @Configurable
    Just going back to an earlier discussion, if we haven't got @Configurable what's the alternative approach? How to we achieve the same thing in a POJO way?
    Last edited by karldmoore; Aug 29th, 2007 at 11:35 AM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  2. #52
    Join Date
    Jul 2006
    Location
    Kolkata, India
    Posts
    217

    Default

    Quote Originally Posted by karldmoore View Post
    Just going back to an earlier discussion, if we haven't got @Configurable what's the alternative approach? How to we achieve the same thing in a POJO way?
    Karl -

    I think you can subclass the abstract Spring aspect AbstractBeanConfigurerAspect. Using this, u you can write an aspect to configure all instances of objects defined in the domain model using prototypical bean definitions that match the fully-qualified class names. Please have a look at section 6.8.2 in Spring 2.0.4 docs. Last year I had blogged about this .. have a look at the comments where I discuss this.

    Of course this is only valid if u consider adding aspects to a POJO as NOT violating its POJO behavior.

    Cheers.
    - Debasish

  3. #53
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Quote Originally Posted by debasishg View Post
    Of course this is only valid if u consider adding aspects to a POJO as NOT violating its POJO behavior.
    Thanks for that, I'll check out your blog. After the whole dependency debate, I just thought it was interesting to know what the alternative is to @Configurable. I would have thought this is a pretty important feature. People want rich domain models made up of POJOs but don't want to be tied to Spring! If we are dealing with aspects then we don't have to modify the POJOs, sounds like it fits the bill.

    This presentation also had some examples of this.
    http://www.bejug.org/confluenceBeJUG...omments= true
    Last edited by karldmoore; Aug 29th, 2007 at 11:35 AM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  4. #54
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    Saw this and though it was interesting.
    http://jroller.com/page/eu?entry=damned_guice
    Last edited by karldmoore; Aug 29th, 2007 at 11:34 AM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  5. #55
    Join Date
    Sep 2005
    Posts
    15

    Default New feature


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •