package osgi.example.client;
import org.osgi.framework.ServiceReference;
import osgi.example.compute.Compute;
public class Client {
ServiceReference serviceReference;
/**
* 为了方便测试,采用Spring的构造注入方式,直接在构造函数中调用Compute服务
* @param compute
*/
public Client(Compute compute){
System.out.println(compute.computeNums(5, 6));
}
public ServiceReference getServiceReference() {
return serviceReference;
}
public void setServiceReference(ServiceReference serviceReference) {
this.serviceReference = serviceReference;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
Spring与OSGI整合 计算器例子(转) +附整合代码和spring-osgi核心jar
共37个文件
prefs:8个
class:5个
java:5个
需积分: 10 3 下载量 37 浏览量
2019-03-22
02:12:32
上传
评论
收藏 22KB RAR 举报
温馨提示
NULL 博文链接:https://zhouxi1987.iteye.com/blog/974105
资源推荐
资源详情
资源评论
收起资源包目录
整合代码.rar (37个子文件)
整合代码
osgi.example.compute
.project 681B
bin
osgi
example
compute
Compute.class 163B
.settings
org.eclipse.jdt.core.prefs 395B
org.eclipse.pde.core.prefs 152B
META-INF
MANIFEST.MF 297B
src
osgi
example
compute
Compute.java 107B
.classpath 376B
build.properties 80B
osgi.example.compute.add
.project 685B
bin
osgi
example
compute
add
Add.class 796B
.settings
org.eclipse.jdt.core.prefs 395B
org.eclipse.pde.core.prefs 152B
META-INF
spring
computeAdd-context.xml 707B
MANIFEST.MF 380B
src
osgi
example
compute
add
Add.java 261B
.classpath 376B
build.properties 80B
osgi.example.compute.client
.project 688B
bin
osgi
example
client
Client.class 952B
compute
client
Activator.class 644B
.settings
org.eclipse.jdt.core.prefs 395B
org.eclipse.pde.core.prefs 152B
META-INF
spring
computeClient-context.xml 924B
MANIFEST.MF 410B
src
osgi
example
client
Client.java 584B
compute
client
Activator.java 550B
.classpath 376B
build.properties 80B
osgi.example.compute.multiply
.project 690B
bin
osgi
example
compute
multiply
Multiply.class 826B
.settings
org.eclipse.jdt.core.prefs 395B
org.eclipse.pde.core.prefs 152B
META-INF
spring
computeMultiply-context.xml 696B
MANIFEST.MF 395B
src
osgi
example
compute
multiply
Multiply.java 316B
.classpath 376B
build.properties 80B
共 37 条
- 1
资源评论
weixin_38669628
- 粉丝: 383
- 资源: 6万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功