How to implement abstract Factory pattern in Spring-AOP?

Is the implementation of the Abstract Factory Pattern for a spring based project with AOP supposed to be different from a normal project?

+2


source to share


3 answers


It should be easier, everything is covered; technically, Spring acts like an abstract Factory itself, and this pattern deeply informs most of the things that Spring "wants" you to do with it.



+1


source


Without a more concrete example, I would have to say no. Spring AOP works pretty well around your code, regardless of its structure.



0


source


Depends on your AOP. If you are using AspectJ with load time or compile time then you have no problem. If you are using spring AOP then you have a problem because spring will only put aspects in the beans it creates. This means that if your factory does a bean it won't have any AOP tools

0


source







All Articles