Package org.springframework.beans.factory

Examples of org.springframework.beans.factory.ListableBeanFactory


    // List beans
    Map<String,Object> attributes = new HashMap<String, Object>();
    attributes.put("factory", factory);
    if (factory instanceof ListableBeanFactory) {
      ListableBeanFactory listable = (ListableBeanFactory)factory;
      attributes.put("beans", new SpringMap(listable));
    }

    //
    PluginDiscovery discovery = new SpringPluginDiscovery(loader, factory);
View Full Code Here


                            + errorHandler);
                }
            }

            // controllers
            final ListableBeanFactory beanFactory = moduleContext.getBeanFactory();
            for (String beanName : beanFactory.getBeanDefinitionNames()) {
                checkController(moduleContext, beanName, module);
            }

            // 放进去以返回
            modules.add(module);
View Full Code Here

    }

    @Override
    public DataSourceHolder getHolder(StatementMetaData metaData, Map<String, Object> runtimeProperties) {
        if (dataSourceFactory == null) {
            ListableBeanFactory beanFactory = this.beanFactory;
            if (beanFactory != null) {
                if (beanFactory.containsBeanDefinition("jade.dataSourceFactory")) {
                    dataSourceFactory = (DataSourceFactory) beanFactory.getBean(
                            "jade.dataSourceFactory", DataSourceFactory.class);
                } else {
                    dataSourceFactory = new SpringDataSourceFactory(beanFactory);
                }
                this.beanFactory = null;
View Full Code Here

        return repositories;
    }

    private Repositories configureRepositories(Repositories repositories) {
        ConfigurablePropertyAccessor configurablePropertyAccessor = forDirectFieldAccess(repositories);
        ListableBeanFactory beanFactory = (ListableBeanFactory) getBeanFactory();
        configurablePropertyAccessor.setPropertyValue("beanFactory", beanFactory);
        configurablePropertyAccessor.setPropertyValue("repositoryBeanNames", repositoryBeanNames(beanFactory));
        configurablePropertyAccessor.setPropertyValue("repositoryFactoryInfos", repositoryFactoryInfos(beanFactory));
        return repositories;
    }
View Full Code Here

TOP

Related Classes of org.springframework.beans.factory.ListableBeanFactory

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.