Re: Can @SpringBeans be optional?

2009-11-24 Thread James Carman
4, 2009 at 7:59 AM, Loritsch, Berin C. wrote: > Understood.  Just introducing it as a possibility. > > -Original Message- > From: James Carman [mailto:jcar...@carmanconsulting.com] > Sent: Monday, November 23, 2009 3:40 PM > To: users@wicket.apache.org > Subject: R

RE: Can @SpringBeans be optional?

2009-11-24 Thread Loritsch, Berin C.
Understood. Just introducing it as a possibility. -Original Message- From: James Carman [mailto:jcar...@carmanconsulting.com] Sent: Monday, November 23, 2009 3:40 PM To: users@wicket.apache.org Subject: Re: Can @SpringBeans be optional? That's not a dependency injection thing. I

Re: Can @SpringBeans be optional?

2009-11-23 Thread James Carman
any issues > from the ApplicationContext not being set up in time during unit > testing. > > -Original Message- > From: Anthony DePalma [mailto:fatef...@gmail.com] > Sent: Monday, November 23, 2009 6:47 AM > To: users@wicket.apache.org > Subject: Can @SpringBeans be o

RE: Can @SpringBeans be optional?

2009-11-23 Thread Loritsch, Berin C.
Since it allows for lazy initialization, it also addresses any issues from the ApplicationContext not being set up in time during unit testing. -Original Message- From: Anthony DePalma [mailto:fatef...@gmail.com] Sent: Monday, November 23, 2009 6:47 AM To: users@wicket.apache.org Subject: Can

Re: Can @SpringBeans be optional?

2009-11-23 Thread Martijn Dashorst
Define a getter for your service that returns null by default, and in your Spring enabled session return the injected bean. Martijn On Mon, Nov 23, 2009 at 12:46 PM, Anthony DePalma wrote: > Often with spring I give some of my services extra features if they are > configured in the xml for it, b

Re: Can @SpringBeans be optional?

2009-11-23 Thread Igor Vaynberg
not right now. you can always file an rfe to add something like @SpringBean(optional=true) -igor On Mon, Nov 23, 2009 at 3:46 AM, Anthony DePalma wrote: > Often with spring I give some of my services extra features if they are > configured in the xml for it, but otherwise if they are null they a

Can @SpringBeans be optional?

2009-11-23 Thread Anthony DePalma
Often with spring I give some of my services extra features if they are configured in the xml for it, but otherwise if they are null they are simply ignored. I'm running into an issue with my websession, that one of my apps can use the RememberMeService but another cannot. However, I'd like to have