OSGI Blueprint(2)
来源:互联网 发布:象形字典软件 编辑:程序博客网 时间:2024/05/16 06:59
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://killko.blog.51cto.com/3419292/1131092
- <?xml version="1.0" encoding="UTF-8"?>
- <blueprint xmlns=”http://www.osgi.org/xmlns/blueprint/v1.0.0”>
- ...
- </blueprint>
- <bean id=”prototypeAccount” class=“com.ponder.Account”
- scope=”prototype”>
- <argument value=”4”/>
- </bean>
- <bean id=”singletonAccount” class=“com.ponder.Account”
- scope=”singleton”>
- <argument value=”5”/>
- </bean>
- <?xml version="1.0" encoding="UTF-8"?>
- <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd" default-timeout="0">
- <!--引用osgi服务,并注入bean(com.ponder.Processor)里 -->
- <reference id="coderService" interface="com.ponder.ICoder" timeout="0"/>
- <bean id="processor" class="com.ponder.Processor">
- <!--与这里对应,类com.ponder.Processor里应定义有以下属性:
- private com.ponder.ICoder coder;
- 并包含其setter。
- -->
- <property name="coder" ref="coderService"/>
- </bean>
- </blueprint>
0 0
- OSGI Blueprint(2)
- OSGI Blueprint
- OSGI Blueprint(6)
- OSGI Blueprint(8)
- OSGI中blueprint简介
- OSGI中blueprint简介
- Spring DM and OSGi Blueprint
- OSGI blueprint Converter的使用
- 使用 Blueprint Container 规范构建 OSGi 应用程序
- osgi之blueprint.xml注入bean
- 【BluePrint】用OSGi 应用程序开发和工作的最佳实践
- activiti 通过blueprint在OSGI环境中的部署
- Gemini Blueprint参考文档 第12章 测试OSGi应用
- OSGI企业应用开发(六)细说Blueprint & Gemini Blueprint(一)
- OSGI企业应用开发(七)细说Blueprint & Gemini Blueprint(二)
- OSGI企业应用开发(六)细说Blueprint & Gemini Blueprint(一)
- OSGI企业应用开发(七)细说Blueprint & Gemini Blueprint(二)
- Gemini Blueprint参考文档 第6章 OSGi 4.2 Blueprint Container
- android listview + checkbox 列表上下滑动导致复选框状态丢失解决办法
- Android Studio---断点调试和高级调试
- c++中vector的用法详解 转自网络,如有侵权,请速联系,立即删除
- 重学 servlet
- Handlebars模板引擎中的each嵌套及源码浅读
- OSGI Blueprint(2)
- hdu5261
- ArcGIS教程:生成特征文件、类和聚类分析
- java web监听器详解
- [LeetCode][Java] Permutations II
- Release与Debug的区别
- struts2 数据校验validation.xml 常见错误
- PHP底层的运行机制与原理
- listview的滑动删除