Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

annotation equivalent of <aop:scoped-proxy>

I am moving from an xml config to annoations. i want to convert a session scoped bean that is

<aop:scoped-proxy> 

can this be done with annotations, and if not, what can i do to still keep that declaration working?

edit: I am interested in doing this in Spring 2.5

like image 217
mkoryak Avatar asked Dec 21 '10 20:12

mkoryak


1 Answers

In Spring 3.0 it can be specified by the proxyMode attribute of @Scope annotation:

@Scope(value = "session", proxyMode = ScopedProxyMode.INTERFACES) 
like image 71
axtavt Avatar answered Sep 22 '22 21:09

axtavt