I've already read that and also checked some tutorial with AspectJ. Thanks for the tip :).
Type: Posts; User: Martin Zdila; Keyword(s):
I've already read that and also checked some tutorial with AspectJ. Thanks for the tip :).
= Is yourresult same as mine?
I am just using Spring AOP in standard way (using JDK Proxies). I have no experience with AspectJ yet. Any hints?
Thanks.
this is true:
context.getBean("service").getClass() == context.getType("service")
but this not (if called for the first time) :-)
context.getType("service") ==...
Thanks Denis for ensuring me :-)
For now I am using something ugly like:
BeanUtils.copyProperties(AopUtils.isAopProxy(service) ? ((Advised) service).getTargetSource().getTarget() : service,...
Hello
I think this is general problem, but I wonder it is not very mentioned anywhere. To explain the problem, imagine the simple scenario:
I have factory, that creates prototype beans. These...
My current solution works already. I also already have MyServiceManager. I just don't like it uses ApplicationContextAware (= depends on spring). MyServiceManager does:
- get list of all service...
Thanks for your effort. I'll try it later and let here know.
My Idea is simple. If I have some sevice factory (MyServiceFactory) then it should support additional methods to createMyService:
-...
Thanks for reply, Denis, but it doesn't help me. What I need is mapping from bean name to bean class, not to bean instance. I don't need instances in that map while they are prototypes and should be...
Hello
I am using ServiceLocatorFactoryBean to create my services by name. What I am missing and would find handy is to enumerate all services that can be created.
interface MyServiceFactory {...
I've solved it by changing URLs.
Thanks for reply, Luke. Unfortunaltely I don't want have anonymous user. Isn't there easier way how to tell FilterSecurityInterceptor to match /xxx/system/** but not /xxx/system/login?
Hello
I have this configuration:
<bean id="filterSecurityInterceptor" class="org.springframework.security.intercept.web.FilterSecurityInterceptor">
<property name="authenticationManager"...