Loading
Spring ApplicationContextAware

Java Quick Notes

Refresh Your Java - Before Java Interview

We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....


Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet
Not Included Yet

Go to SiteMap

Q)  ApplicationContextAware ?


Ans)

A bean which implements this interface and is deployed into the context will be called back
on creation of the bean, using the interface's setApplicationContext() method, and provided
with a reference to the context, which may be stored for later interaction with the context.

public class DefaultBeanLoader implements  ApplicationContextAware {
        private ApplicationContext applicationContext;
                public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
                this.applicationContext = applicationContext;
        }
    }



Back to top

------------------------- We hope you got necessary Info On -----------------------------------------

Spring ApplicationContextAware


Spring ApplicationContextAware

-------------------------------------------------------------------------------------------------------



Face Book
Request for a Mock Interview/Training

Get a PDF

Face Book
Same look (Read) on any device, this is Ads free