Updates from October, 2013 Toggle Comment Threads | Keyboard Shortcuts

  • shashankgee 12:59 pm on 28 Oct 2013 Permalink | Reply  

    Exact Meaning of BeanpostProcessor in Spring 

    A  BeanPostProcessor gives you a chance to process an instance of a bean created by the IoC container after it’s instantiation and then again after the initialization and before the intialization of lifecycle event has occurred on the instance.

     

    BeanPostProcessors and any beans they depend on are instantiated before any other beans in the container. After they are instantiated and ordered, they are used to process all the other beans as they are instantiated by the IoC container. Spring’s different AOP proxies for caching, transactions, etc. are all applied by BeanPostProcessors. So, any BeanPostProcessor you create isn’t eligible for AOP proxies. Since AOP proxies are applied this way, it’s possible an AOP proxy may not yet have been applied to the instance so care should be taken if this will affect any post processing being done.

     

     

     

    Advertisements
     
  • shashankgee 2:07 pm on 12 Aug 2013 Permalink | Reply  

    Spring Annotations 

    SpringAnnotations:

    1. @Required
    2. @Autowired
    3. @Qualifier
    4. @Transactional
    5. @Scope

    JSR-250 Annotations:

    1. @Resource (or) @Resource(name=” “)
    2. @PostConstruct
    3. @PreDestroy

    Stereo Type Annotations:

    1. @Service
    2. @Repository
    3. @Component
    4. @Controller
     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel