热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

使用和代码示例:org.osgi.service.blueprint.reflect.BeanMetadata.getDependsOn()方法详解与示例展示

本文整理了Java中org.osgi.service.blueprint.reflect.BeanMetadata.getDependsOn()方法的一些代码示例,展示

本文整理了Java中org.osgi.service.blueprint.reflect.BeanMetadata.getDependsOn()方法的一些代码示例,展示了BeanMetadata.getDependsOn()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BeanMetadata.getDependsOn()方法的具体详情如下:
包路径:org.osgi.service.blueprint.reflect.BeanMetadata
类名称:BeanMetadata
方法名:getDependsOn

BeanMetadata.getDependsOn介绍

暂无

代码示例

代码示例来源:origin: org.apache.geronimo.blueprint/geronimo-blueprint-core

for (String name : beanMetadata.getDependsOn()) {
deps.add(new RefRecipe(getName(null), name));

代码示例来源:origin: org.apache.geronimo.blueprint/geronimo-blueprint-core

public BeanMetadataImpl(BeanMetadata source) {
super(source);
this.className = source.getClassName();
this.initMethod = source.getInitMethod();
this.destroyMethod = source.getDestroyMethod();
for (BeanArgument argument : source.getArguments()) {
addArgument(new BeanArgumentImpl(argument));
}
for (BeanProperty property : source.getProperties()) {
addProperty(new BeanPropertyImpl(property));
}
this.initialization = source.getActivation();
this.factoryMethod = source.getFactoryMethod();
this.factoryCompOnent= MetadataUtil.cloneTarget(source.getFactoryComponent());
this.scope = source.getScope();
this.dependsOn = new ArrayList(source.getDependsOn());
if (source instanceof ExtendedBeanMetadata) {
this.runtimeClass = ((ExtendedBeanMetadata) source).getRuntimeClass();
}
}

代码示例来源:origin: org.apache.aries.blueprint/blueprint-parser

public BeanMetadataImpl(BeanMetadata source) {
super(source);
this.className = source.getClassName();
this.initMethod = source.getInitMethod();
this.destroyMethod = source.getDestroyMethod();
for (BeanArgument argument : source.getArguments()) {
addArgument(new BeanArgumentImpl(argument));
}
for (BeanProperty property : source.getProperties()) {
addProperty(new BeanPropertyImpl(property));
}
this.initialization = source.getActivation();
this.factoryMethod = source.getFactoryMethod();
this.factoryCompOnent= MetadataUtil.cloneTarget(source.getFactoryComponent());
this.scope = source.getScope() != null ? QName.valueOf(source.getScope()) : null;
this.dependsOn = new ArrayList(source.getDependsOn());
if (source instanceof ExtendedBeanMetadata) {
this.runtimeClass = ((ExtendedBeanMetadata) source).getRuntimeClass();
this.fieldInjection = ((ExtendedBeanMetadata) source).getFieldInjection();
this.rawCOnversion= ((ExtendedBeanMetadata) source).getRawConversion();
this.nOnStandardSetters= ((ExtendedBeanMetadata) source).getNonStandardSetters();
} else {
this.fieldInjection = false;
this.rawCOnversion= false;
this.nOnStandardSetters= false;
}
}

代码示例来源:origin: apache/aries

public BeanMetadataImpl(BeanMetadata source) {
super(source);
this.className = source.getClassName();
this.initMethod = source.getInitMethod();
this.destroyMethod = source.getDestroyMethod();
for (BeanArgument argument : source.getArguments()) {
addArgument(new BeanArgumentImpl(argument));
}
for (BeanProperty property : source.getProperties()) {
addProperty(new BeanPropertyImpl(property));
}
this.initialization = source.getActivation();
this.factoryMethod = source.getFactoryMethod();
this.factoryCompOnent= MetadataUtil.cloneTarget(source.getFactoryComponent());
this.scope = source.getScope() != null ? QName.valueOf(source.getScope()) : null;
this.dependsOn = new ArrayList(source.getDependsOn());
if (source instanceof ExtendedBeanMetadata) {
this.runtimeClass = ((ExtendedBeanMetadata) source).getRuntimeClass();
this.fieldInjection = ((ExtendedBeanMetadata) source).getFieldInjection();
this.rawCOnversion= ((ExtendedBeanMetadata) source).getRawConversion();
this.nOnStandardSetters= ((ExtendedBeanMetadata) source).getNonStandardSetters();
} else {
this.fieldInjection = false;
this.rawCOnversion= false;
this.nOnStandardSetters= false;
}
}

推荐阅读
  • XML介绍与使用的概述及标签规则
    本文介绍了XML的基本概念和用途,包括XML的可扩展性和标签的自定义特性。同时还详细解释了XML标签的规则,包括标签的尖括号和合法标识符的组成,标签必须成对出现的原则以及特殊标签的使用方法。通过本文的阅读,读者可以对XML的基本知识有一个全面的了解。 ... [详细]
  • Java容器中的compareto方法排序原理解析
    本文从源码解析Java容器中的compareto方法的排序原理,讲解了在使用数组存储数据时的限制以及存储效率的问题。同时提到了Redis的五大数据结构和list、set等知识点,回忆了作者大学时代的Java学习经历。文章以作者做的思维导图作为目录,展示了整个讲解过程。 ... [详细]
  • JDK源码学习之HashTable(附带面试题)的学习笔记
    本文介绍了JDK源码学习之HashTable(附带面试题)的学习笔记,包括HashTable的定义、数据类型、与HashMap的关系和区别。文章提供了干货,并附带了其他相关主题的学习笔记。 ... [详细]
  • Spring源码解密之默认标签的解析方式分析
    本文分析了Spring源码解密中默认标签的解析方式。通过对命名空间的判断,区分默认命名空间和自定义命名空间,并采用不同的解析方式。其中,bean标签的解析最为复杂和重要。 ... [详细]
  • 向QTextEdit拖放文件的方法及实现步骤
    本文介绍了在使用QTextEdit时如何实现拖放文件的功能,包括相关的方法和实现步骤。通过重写dragEnterEvent和dropEvent函数,并结合QMimeData和QUrl等类,可以轻松实现向QTextEdit拖放文件的功能。详细的代码实现和说明可以参考本文提供的示例代码。 ... [详细]
  • Commit1ced2a7433ea8937a1b260ea65d708f32ca7c95eintroduceda+Clonetraitboundtom ... [详细]
  • 目录实现效果:实现环境实现方法一:基本思路主要代码JavaScript代码总结方法二主要代码总结方法三基本思路主要代码JavaScriptHTML总结实 ... [详细]
  • 阿,里,云,物,联网,net,core,客户端,czgl,aliiotclient, ... [详细]
  • JavaSE笔试题-接口、抽象类、多态等问题解答
    本文解答了JavaSE笔试题中关于接口、抽象类、多态等问题。包括Math类的取整数方法、接口是否可继承、抽象类是否可实现接口、抽象类是否可继承具体类、抽象类中是否可以有静态main方法等问题。同时介绍了面向对象的特征,以及Java中实现多态的机制。 ... [详细]
  • Spring特性实现接口多类的动态调用详解
    本文详细介绍了如何使用Spring特性实现接口多类的动态调用。通过对Spring IoC容器的基础类BeanFactory和ApplicationContext的介绍,以及getBeansOfType方法的应用,解决了在实际工作中遇到的接口及多个实现类的问题。同时,文章还提到了SPI使用的不便之处,并介绍了借助ApplicationContext实现需求的方法。阅读本文,你将了解到Spring特性的实现原理和实际应用方式。 ... [详细]
  • 自动轮播,反转播放的ViewPagerAdapter的使用方法和效果展示
    本文介绍了如何使用自动轮播、反转播放的ViewPagerAdapter,并展示了其效果。该ViewPagerAdapter支持无限循环、触摸暂停、切换缩放等功能。同时提供了使用GIF.gif的示例和github地址。通过LoopFragmentPagerAdapter类的getActualCount、getActualItem和getActualPagerTitle方法可以实现自定义的循环效果和标题展示。 ... [详细]
  • 标题: ... [详细]
  • 本文介绍了Android 7的学习笔记总结,包括最新的移动架构视频、大厂安卓面试真题和项目实战源码讲义。同时还分享了开源的完整内容,并提醒读者在使用FileProvider适配时要注意不同模块的AndroidManfiest.xml中配置的xml文件名必须不同,否则会出现问题。 ... [详细]
  • iOS超签签名服务器搭建及其优劣势
    本文介绍了搭建iOS超签签名服务器的原因和优势,包括不掉签、用户可以直接安装不需要信任、体验好等。同时也提到了超签的劣势,即一个证书只能安装100个,成本较高。文章还详细介绍了超签的实现原理,包括用户请求服务器安装mobileconfig文件、服务器调用苹果接口添加udid等步骤。最后,还提到了生成mobileconfig文件和导出AppleWorldwideDeveloperRelationsCertificationAuthority证书的方法。 ... [详细]
  • CentOS7.8下编译muduo库找不到Boost库报错的解决方法
    本文介绍了在CentOS7.8下编译muduo库时出现找不到Boost库报错的问题,并提供了解决方法。文章详细介绍了从Github上下载muduo和muduo-tutorial源代码的步骤,并指导如何编译muduo库。最后,作者提供了陈硕老师的Github链接和muduo库的简介。 ... [详细]
author-avatar
书友60614683
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有