Yes, intercepting every field access could hit performance, but I
don't think can be a very serious issue:
@Before("get(@SpringBean * *)")
public void matchAnnotatedFields(JoinPoint thisJoinPoint) {
Concerning transient fields, there is a declare error on annotated
fields which are not transient:
@DeclareError("get(@wicket.contrib.spring.aspectj.SpringBean !transient * *)")
public static final String MUST_BE_TRANSIENT = "SpringBean annotated "
+ "field must be transient.";
2005/12/13, Igor Vaynberg <[EMAIL PROTECTED]>:
> that should work if you declare your fields transient. but what is the
> performance hit? youd have to intercept every field access no?
>
> -Igor
>
>
>
> On 12/13/05, Eduardo Rocha <[EMAIL PROTECTED]> wrote:
> >
> > The semantic is "any time an annotated field is read, it is checked to
> > see if it is null, and if it is, instantiate it". I think this is OK
> > with this code, what do you think?
> >
> > 2005/12/13, Igor Vaynberg < [EMAIL PROTECTED]>:
> > > hmm
> > > what about stuff like this:
> > >
> > > UserDetachableModel { long userid; private UserService svc; transient
> User
> > > user; void attach() { user= svc.load(userid); }
> > >
> > > new DetachableModel(10, userService); where userService is a proxy to
> the
> > > user service bean.
> > >
> > > having these proxies means i can pass them into any object i want such
> as a
> > > detachable model or a data provider, and when those things are
> > > serealized/deserialized there is no problem.
> > >
> > > -Igor
> > >
> > >
> > >
> > > On 12/13/05, Eduardo Rocha < [EMAIL PROTECTED]> wrote:
> > > >
> > > > Igor,
> > > >
> > > > As I said in another post, proxies are not needed with AspectJ.
> > > >
> > > > 2005/12/13, Igor Vaynberg < [EMAIL PROTECTED]>:
> > > > > have a look here
> > > > >
> > > > > http://www.wicket-wiki.org.uk/wiki/index.php/Spring
> > > > >
> > > > > this explains both integration strategies and why the proxies are
> > > needed.
> > > > >
> > > > > -Igor
> > > > >
> > > > >
> > > > > On 12/13/05, Eduardo Rocha < [EMAIL PROTECTED]> wrote:
> > > > > > You are right. I will look at the current implementation to see if
> it
> > > > > > works like it is working for me.
> > > > > >
> > > > > > 2005/12/13, Igor Vaynberg <[EMAIL PROTECTED]>:
> > > > > > > automatic injection is not the problem. the problem is that
> injected
> > > > > > > dependencies cannot be serialized, thus the whole proxy
> approach.
> > > > > > >
> > > > > > > -Igor
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On 12/13/05, Eduardo Rocha < [EMAIL PROTECTED] > wrote:
> > > > > > > >
> > > > > > > > Spring 2.0 will bring support to objects which are not
> > > instantiated by
> > > > > > > > the container:
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > >
> > >
> http://www.theserverside.com/news/thread.tss?thread_id=38047
> > > > > > > >
> > > > > > > > Actually it is very similar with what I was doing, except that
> the
> > > > > > > > article uses a prototype (template) object in configuration,
> while
> > > I
> > > > > > > > am annotating each field, like wicket-contrib-spring does.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > >
> -------------------------------------------------------
> > > > > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep
> through
> > > log
> > > > > > > files
> > > > > > > > for problems? Stop! Download the new AJAX search engine that
> > > makes
> > > > > > > > searching your log files as easy as surfing the web.
> DOWNLOAD
> > > > > SPLUNK!
> > > > > > > >
> > > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> > > > > > > >
> _______________________________________________
> > > > > > > > Wicket-user mailing list
> > > > > > > > [email protected]
> > > > > > > >
> > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > -------------------------------------------------------
> > > > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log
> > > > > files
> > > > > > for problems? Stop! Download the new AJAX search engine that
> makes
> > > > > > searching your log files as easy as surfing the web. DOWNLOAD
> > > SPLUNK!
> > > > > >
> http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> > > > > > _______________________________________________
> > > > > > Wicket-user mailing list
> > > > > > [email protected]
> > > > > >
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> -------------------------------------------------------
> > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > files
> > > > for problems? Stop! Download the new AJAX search engine that makes
> > > > searching your log files as easy as surfing the web. DOWNLOAD
> SPLUNK!
> > > > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> > > > _______________________________________________
> > > > Wicket-user mailing list
> > > > [email protected]
> > > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > > >
> > >
> > >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files
> > for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> > http://ads.osdn.com/?ad_idv37&alloc_id865&opclick
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user