首页>
外国专利>
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.
展开▼