Package org.springframework.beans.factory.config

Examples of org.springframework.beans.factory.config.ConfigurableListableBeanFactory.autowireBeanProperties()


    // CryptoMapper doesn't work with FullCalendar.
    // setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this));
    final XmlWebApplicationContext webApplicationContext = (XmlWebApplicationContext) WebApplicationContextUtils
        .getWebApplicationContext(getServletContext());
    final ConfigurableListableBeanFactory beanFactory = webApplicationContext.getBeanFactory();
    beanFactory.autowireBeanProperties(this, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false);
    final LocalSessionFactoryBean localSessionFactoryBean = (LocalSessionFactoryBean) beanFactory.getBean("&sessionFactory");
    final org.hibernate.cfg.Configuration hibernateConfiguration = localSessionFactoryBean.getConfiguration();
    final PluginsRegistry pluginsRegistry = PluginsRegistry.instance();
    pluginsRegistry.set(getResourceSettings());
    projectForgeApp = ProjectForgeApp.init(beanFactory, hibernateConfiguration);
View Full Code Here


      log.warn("Servlet call for receiving sms ignored because couln't parse parameter 'date'.");
      response(resp, "Unsupported date format.");
      return;
    }
    final ConfigurableListableBeanFactory beanFactory = Configuration.getInstance().getBeanFactory();
    beanFactory.autowireBeanProperties(this, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false);
    MebEntryDO entry = new MebEntryDO();
    entry.setDate(date);
    entry.setSender(sender);
    entry.setMessage(msg);
    log.info("Servlet-call: date=[" + date + "], sender=[" + sender + "]");
View Full Code Here

      super.init();
      final ClassPathXmlApplicationContext context = getTestConfiguration().getApplicationContext();
      getComponentInstantiationListeners().add(new SpringComponentInjector(this, context, true));
      getResourceSettings().getStringResourceLoaders().add(new BundleStringResourceLoader(WicketApplication.RESOURCE_BUNDLE_NAME));
      final ConfigurableListableBeanFactory beanFactory = context.getBeanFactory();
      beanFactory.autowireBeanProperties(this, AutowireCapableBeanFactory.AUTOWIRE_BY_NAME, false);
      UserXmlPreferencesCache.setInternalInstance(userXmlPreferencesCache);
    }

    @Override
    public Class< ? extends Page> getHomePage()
View Full Code Here

    if ( action != InstallerAction.REGISTER ) {
      LOG.debug( "Executing installer {} for module {}", installer.getClass(), module.getName() );

      ConfigurableListableBeanFactory beanFactory = getBeanFactoryForInstallerWiring( module );

      beanFactory.autowireBeanProperties( installer, AutowireCapableBeanFactory.AUTOWIRE_NO, false );
      beanFactory.initializeBean( installer, "" );

      boolean executed = false;

      for ( Method method : ReflectionUtils.getAllDeclaredMethods( installer.getClass() ) ) {
View Full Code Here

        Collection<Object> refreshableBeans =
            ApplicationContextScanner.findBeansWithAnnotation( moduleContext, Refreshable.class );

        for ( Object singleton : refreshableBeans ) {
          Object bean = AcrossContextUtils.getProxyTarget( singleton );
          beanFactory.autowireBeanProperties( bean, AutowireCapableBeanFactory.AUTOWIRE_NO, false );
        }

        Map<String, Object> postRefreshBeans = ApplicationContextScanner.findSingletonsMatching( moduleContext,
                                                                                                 new AnnotatedMethodFilter(
                                                                                                     PostRefresh.class ) );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.