Package org.springframework.context

Examples of org.springframework.context.ApplicationContextAware


    @Override
    protected void activatePageInstance(Page page) {
        ApplicationContext applicationContext = getApplicationContext();

        if (page instanceof ApplicationContextAware) {
            ApplicationContextAware aware =
                (ApplicationContextAware) page;
            aware.setApplicationContext(applicationContext);
        }

        Class<? extends Page> pageClass = page.getClass();
        String beanName = toBeanName(pageClass);
View Full Code Here


     *
     * @param page the page instance to activate
     */
    protected void activatePageInstance(Page page) {
        if (page instanceof ApplicationContextAware) {
            ApplicationContextAware aware =
                (ApplicationContextAware) page;
            aware.setApplicationContext(applicationContext);
        }
    }
View Full Code Here

    @Override
    protected void activatePageInstance(Page page) {
        ApplicationContext applicationContext = getApplicationContext();

        if (page instanceof ApplicationContextAware) {
            ApplicationContextAware aware =
                (ApplicationContextAware) page;
            aware.setApplicationContext(applicationContext);
        }

        Class pageClass = page.getClass();
        String beanName = toBeanName(pageClass);
View Full Code Here

     *
     * @param page the page instance to activate
     */
    protected void activatePageInstance(Page page) {
        if (page instanceof ApplicationContextAware) {
            ApplicationContextAware aware =
                (ApplicationContextAware) page;
            aware.setApplicationContext(getApplicationContext());
        }
    }
View Full Code Here

    public void setApplicationContext( final ApplicationContext applicationContext ) throws BeansException
    {
        if ( this.applicationBootstrap instanceof ApplicationContextAware )
        {
            // propagate application context to the application bootstrap
            ApplicationContextAware aware = (ApplicationContextAware) this.applicationBootstrap;
            aware.setApplicationContext( applicationContext );
        }
    }
View Full Code Here

    @Override
    protected void activatePageInstance(Page page) {
        ApplicationContext applicationContext = getApplicationContext();

        if (page instanceof ApplicationContextAware) {
            ApplicationContextAware aware =
                (ApplicationContextAware) page;
            aware.setApplicationContext(applicationContext);
        }

        Class<? extends Page> pageClass = page.getClass();
        String beanName = toBeanName(pageClass);
View Full Code Here

TOP

Related Classes of org.springframework.context.ApplicationContextAware

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.