首页> 外国专利> Easy-To-Use Type Of Compile-Time Dependency Injection Method And Device In The Java Platform

Easy-To-Use Type Of Compile-Time Dependency Injection Method And Device In The Java Platform

机译:Java平台中易于使用的类型的编译时依赖注入方法和设备

摘要

Disclosed is an easy-to-use type of a compile-time dependency injection method and device in a JAVA platform. According to an exemplary embodiment, there is provided a method for automatically generating a code which injects an object for a target code at the time of compiling, in a JAVA framework executing environment including: determining whether the target code is a code related with a dependency injection function; generating a provider code of the target code which generates an object and returns the generated object to the target code, based on the determination resu and generating an injector code including a dependency object injection code which injects a dependency object corresponding to at least one dependency injection indicator included in the target code into a dependency field of an object generated by the provider code, based on the determination result, in which the provider code calls the dependency object injection code.
机译:公开了一种JAVA平台中易于使用的类型的编译时依赖注入方法和设备。根据示例性实施例,提供了一种在JAVA框架执行环境中用于在编译时自动生成将目标代码注入对象的代码的方法,该方法包括:确定目标代码是否为与依赖性相关的代码。注射功能基于确定结果,生成目标代码的提供者代码,该目标代码生成对象,并将生成的对象返回至目标代码;基于确定结果,生成包括依赖对象注入代码的注入器代码,该注入对象代码将与目标代码中包括的至少一个依赖注入指示符相对应的依赖对象注入到提供者代码生成的对象的依赖域中,其中提供者代码调用依赖项对象注入代码。

著录项

  • 公开/公告号US2019095181A1

    专利类型

  • 公开/公告日2019-03-28

    原文格式PDF

  • 申请/专利权人 TMAXSOFT CO. LTD;

    申请/专利号US201816133429

  • 发明设计人 SEONGHWAN JANG;

    申请日2018-09-17

  • 分类号G06F8/41;G06F9/455;

  • 国家 US

  • 入库时间 2022-08-21 12:05:15

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号