Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

28 results about "Dependency injection" patented technology

In software engineering, dependency injection is a technique whereby one object supplies the dependencies of another object. A "dependency" is an object that can be used, for example as a service. Instead of a client specifying which service it will use, something tells the client what service to use. The "injection" refers to the passing of a dependency (a service) into the object (a client) that would use it. The service is made part of the client's state. Passing the service to the client, rather than allowing a client to build or find the service, is the fundamental requirement of the pattern.

Fine-grained state response system and method between React components based on Proxy and dependency injection and application of fine-grained state response system and method

ActiveCN120407051AVersion controlExecution paradigmsPathPingDependency injection
The invention provides a React component fine-grained state response system and method based on Proxy and dependency injection and application of the React component fine-grained state response system and method, and relates to the field of computer front-end development. The system comprises a centralized observable state storage module for storing a global sharing state, a dependency automatic tracking and registering module integrated in a set interceptor of Proxy, a state change accurate notification and target update triggering module integrated in a set interceptor, and a component dependency injection and connection module. The system is based on Proxy automatic dependence tracking, and can be accurate to the specific attribute path level of a state object. Only when the minimum state unit which the component actually depends on changes, the component can be rendered again, unnecessary DOM operation is reduced to the maximum extent, and the performance in a frequent updating scene is improved.
Owner:JIANGSU OPEN UNIVERSITY (THE CITY VOCATIONAL COLLEGE OF JIANGSU)

Modularized system dynamic deployment method and system based on lightweight architecture

The invention provides a modular system dynamic deployment method and system based on a lightweight architecture. The method comprises the following steps: configuring the system into a plurality of independent functional modules according to a service boundary; setting a uniform configuration file for defining a target deployment mode of the system; dynamically configuring a parameter group according to a specified target deployment mode in the configuration file; a standardized communication interface is defined for each function module, and service calling is carried out among the function modules in a dependency injection mode based on the configuration parameter set; and according to the configuration parameter group, when the system is started or operated, dynamic adaptation of a communication mechanism between the function modules is realized, so that dynamic deployment switching of the system between a single architecture and a distributed architecture is completed. According to the method, the system can be flexibly switched between the single architecture and the distributed architecture according to actual use requirements, the deployment form conversion can be completed only by modifying configuration, source codes do not need to be modified, and the development and deployment complexity of the modular system is effectively reduced.
Owner:JIANGXI TONGRUI INFORMATION TECH CO LTD

Script dependency injection method and device

PendingCN120295628ACode compilationDependency injectionSoftware engineering
The invention discloses a script dependency injection method and device, and relates to the technical field of computers. A specific embodiment of the method comprises the following steps: analyzing an initial script source code by utilizing an automatic assembly script engine, and obtaining a target service object name on which a script depends when the script is executed; based on the name of the target service object, acquiring the target service object by utilizing an automatic assembly script engine; injecting the target service object to obtain a script; and in response to injection completion, executing the script. According to the implementation mode, the dependent injection of the script is realized, the script code becomes simple, the script development process is simplified, and the online speed requirement of the service is met.
Owner:BEIJING JINGDONG TUOXIAN TECH CO LTD

Module dynamic assembly and life cycle management system based on dependency injection strategy

The invention relates to the technical field of electric digital data processing, and discloses a module dynamic assembly and life cycle management system based on a dependency injection strategy, which comprises a data interaction module, a logic assembly unit and a dependency injection center, wherein the data interaction module obtains an interaction load data sequence and a logic trigger signal of the operation state of a controlled physical object; the logic assembly unit determines a physical elastic characteristic factor according to the interaction load data sequence, injects a phase hedging item in a characteristic packet weight switching process, and generates a dynamic weight adjustment instruction; the dependency injection center reconstructs the weight proportion of the new and old feature packets according to the dynamic weight adjustment instruction, and after the physical elasticity feature factor reaches a preset steady state judgment threshold value, the state fingerprint inherits logic and destroys an old instance. The decoupling problem of a control logic and a physical deformation field is solved, data breakpoints at the instant of switching are eliminated, and stable operation of the system is maintained.
Owner:HANGZHOU YONGCHUANG TECH GRP CO LTD

Code execution method and apparatus, device, medium, product

PendingCN122450544ACoding blockDependency injection
The method comprises: obtaining a target code block to be called by a current coroutine and at least one first dependent object relied on by the target code block; storing the at least one first dependent object in a local storage space of the current coroutine; and calling and executing the target code block under the local storage space by using the current coroutine, so as to obtain the at least one first dependent object from the local storage space in the process of calling the target code block. In this way, the dependence on convention and configuration can be reduced, the strong coupling with a specific backend framework is not required, a more intuitive and flexible dependence injection mode is provided, the use of reflection and proxy mechanisms is reduced, and the performance overhead in the code execution process is reduced.
Owner:MOORE THREADS TECH CO LTD

Zero code integration risk control method and system based on SpringBoot starter dependency injection

PendingCN121098639ASecuring communicationRisk ControlDependency injection
The invention discloses a zero code integration risk control method and system based on SpringBoot starter dependency injection. The method comprises the following steps: configuring a rule set in a risk control server and pushing the rule set to a configuration management center; establishing and maintaining a dynamic mapping relationship between the business interface URI and the risk control rule set in the configuration management center; the business system is integrated with a risk control client component, and the component is automatically loaded and initialized when the business system is started, and obtains and caches the dynamic mapping relation from the configuration management center; the method comprises the following steps: intercepting a service request through a built-in interceptor before processing the service request, automatically querying a dynamic mapping relationship in a local cache, automatically initiating a risk verification request to a risk control server if a current service request interface exists in the mapping relationship, and determining whether to release the service request according to a returned result. According to the method and the device, the risk control capability and the business system are decoupled, and the change and expansion of the risk control rule can be completed without modifying codes again by the business system.
Owner:福建博思数字科技有限公司

Asynchronous programming implementation method and device, equipment and storage medium

PendingCN120179258AExecution paradigmsCode compilationProgramming languageDependency injection
The invention discloses an asynchronous programming implementation method and device, equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: creating an asynchronous task node in an asynchronous programming environment, wherein the asynchronous task node is used for realizing an asynchronous task; a dependency injection object is added in the asynchronous task node, the dependency injection object is used for controlling implementation of the asynchronous task in a mode of injecting a dependency item, and the dependency item of the dependency injection object is a promise object; and creating an external interface of the dependency injection object, wherein the external interface is used for acquiring the dependency injection object to control the asynchronous task. According to the method, the promise object serves as the dependency item to be added to the dependency injection object in the asynchronous task node, so that the structure of the asynchronous code is clearer and easier to understand, compiling of the asynchronous code can be simplified when huge asynchronous logic is achieved, and readability and maintainability of the asynchronous code are enhanced.
Owner:GUANGZHOU KUGOU COMP TECH CO LTD

Service architecture method and device for multi-scene application

The embodiment of the invention relates to a service architecture method and device for a multi-scene application. The method comprises the following steps: setting a project directory for the multi-scene application; setting a plurality of shared module directories and a plurality of application customization directories under the directory; each shared module directory stores a module service program of a class of basic services; each application customization directory stores a container program, a context program and an application program customized by a class of scenes; based on an InversifyJS container, performing dependency injection management on all the module service programs of the shared module directory; based on the container program, the context program and the application program, customizing an independent dependency injection container, a scene context and a scene front-end application for each scene; and decoupling the front-end UI and the back-end business logic based on the Zustand state management library. Through the method, the code reuse rate can be improved, the development cost is saved, and the flexibility of application expansion is improved.
Owner:BEIJING DP TECH CO LTD

Dynamic plug-in loading method and system

PendingCN121807400AProgram loading/initiatingTransmissionPathPingDependency injection
The invention discloses a dynamic plug-in loading method and system, and the method comprises the steps: S1, reading and analyzing a predefined plug-in description file when a main program is started or runs; s2, dynamically positioning and loading a corresponding plug-in dynamic link library according to specified path information in the plug-in description file; s3, initializing a plug-in realized in the plug-in dynamic link library by utilizing a dependent injection and modular framework, and integrating the plug-in into a running environment of a main program; s4, analyzing a function item set defined in the plug-in description file, and dynamically generating a corresponding function trigger control in a user interface of the main program according to the definition of the function item set; and S5, executing an instruction associated with the function triggering control in the plug-in description file according to the operation of the user on the function triggering control. According to the method and the device, the predefined interface and the configuration file cooperate, so that decoupling of the plug-in and the main program is realized. The plug-in and the main program can be independently developed, compiled and tested.
Owner:ANHUI XIANGYU INTELLIGENT TECH CO LTD

A method and apparatus for application deployment, electronic device, and storage medium

PendingCN122363715ACode generationDependency injection
The application discloses an application deployment method and device, an electronic device and a computer readable storage medium. The method comprises the following steps: running a target Spring application to a state in which all objects are completed with instantiation and initialization of dependency injection; acquiring a runtime state of all object instances, aspect-oriented programming aspect logic and a dependency relationship between the object instances, and constructing a topology structure for describing the dependency relationship between the object instances; generating application code based on the topology structure, the runtime state of all the object instances and the aspect-oriented programming aspect logic by using a container-free application code generator; compiling the application code to generate a deployment unit which is independent of a Spring container, and deploying the target application based on the deployment unit. The application realizes fast startup, low memory occupation and high environmental adaptability of the Spring application without relying on the Spring container.
Owner:CHINA BANKNOTE PRINTING & MINTING +1

Adaptive customer service configuration method and system based on dependency injection

PendingCN121349520AVersion controlProgram documentationPathPingDependency injection
The invention provides an adaptive customer service configuration method and system based on dependency injection, and relates to the technical field of software application development, and the method comprises the steps: defining a service component interface, customizing annotation identification standard implementation and customer implementation; analyzing the configuration file and obtaining environment parameters required by the customized operation to form a customized operation configuration environment; scanning the specified packet path, identifying an implementation class with a customized annotation identifier, analyzing the annotation of the implementation class, and forming a candidate implementation set based on an analysis result; selecting implementation classes in the candidate implementation set, matching the implementation classes by adopting a screening mechanism, selecting standard implementation according to a rollback strategy when the matched implementation classes are not screened, and determining an adaptive decision result; and injecting the target implementation class in the adaptation decision result into the corresponding service component, recording the whole process of the customer adaptation and dependency injection, and realizing the whole process of customer service configuration. The maintainability, the expandability and the development efficiency of the system are improved.
Owner:DAREWAY SOFTWARE

Fine-grained state response system, method and application between React components based on Proxy and dependency injection

ActiveCN120407051BVersion controlExecution paradigmsPathPingDependency injection
The present invention provides a fine-grained state response system, method, and application between React components based on Proxy and dependency injection, relating to the field of computer front-end development. The system includes a centralized observable state storage module for storing globally shared state, an automatic dependency tracking and registration module integrated into the Proxy's get interceptor, a precise state change notification and target update triggering module integrated into the set interceptor, and a component dependency injection and connection module. Based on Proxy's automatic dependency tracking, the system is capable of accurate tracking down to the specific property path level of state objects. A component is re-rendered only when the smallest state unit it actually depends on changes, minimizing unnecessary DOM operations and improving performance in frequent update scenarios.
Owner:JIANGSU OPEN UNIVERSITY (THE CITY VOCATIONAL COLLEGE OF JIANGSU)

Modular system dynamic deployment method and system based on lightweight architecture

The application provides a modular system dynamic deployment method and system based on a lightweight architecture, which comprises the following steps: configuring a system into multiple independent functional modules according to a business boundary; setting a unified configuration file for defining a target deployment mode of the system; dynamically configuring parameter groups according to the target deployment mode specified in the configuration file; defining a standardized communication interface for each functional module, and performing service calling between the functional modules through a dependency injection mode based on the configuration parameter groups; and dynamically adapting a communication mechanism between the functional modules at the system startup or running according to the configuration parameter groups, so as to complete the dynamic deployment switching between a monolithic architecture and a distributed architecture. The application can flexibly switch between the monolithic architecture and the distributed architecture according to actual use requirements, and can complete the conversion of the deployment form by modifying the configuration only, without modifying the source code, so that the development and deployment complexity of the modular system is effectively reduced.
Owner:JIANGXI TONGRUI INFORMATION TECH CO LTD

Runtime dependency configuration utility

A method is presented for executing an application having multiple mutually-exclusive possible dependencies associated with an interface. First, a repository of implementations is scanned using a configuration utility to identify a subset of the implementations tagged for usability with the configuration utility. The configuration utility identifies keys within each of the subset of implementations, and filters the implementations by these configuration keys. The configuration utility scans configurations for a match with any of the identified configuration keys, and selects one implementation from among the subset of the implementations for dependency injection based on matching of configurations with the identified configuration keys. The configuration utility then injects a dependency using the selected implementation, and initializes configurations specific to the injected dependency.
Owner:INSIGHT DIRECT USA INC

System and method for automatically generating and importing test data, terminal and medium

ActiveCN120631788AError detection/correctionDependency injectionData acquisition
The invention relates to the field of testing, in particular to an automatic test data generating and importing system and method, a terminal and a medium, the system is packaged in a plug-in mode and integrated into a SpringBoot project in a dependency injection mode, and the system is started in a test or quasi-production environment according to read environment parameters; according to a test purpose, various maintenance selection box elements on the page are selected in a mouse click mode, a data generation mode is marked in a textbox, if preposed data is needed for data entry, a preposed data acquisition mode is configured, each operation step and related element positioning information are recorded, and a workflow process is generated according to the recorded data; and executing a workflow process to generate and import test data. According to the invention, rapid establishment of a demonstration environment is realized, the working efficiency is improved, intelligence and flexibility of data generation are realized, diversified test data requirements under different project scenes are met, and the stability and safety of the system are guaranteed.
Owner:INSPUR YUNZHOU (SHANDONG) IND INTERNET CO LTD

Module dynamic assembly and life cycle management system based on dependency injection strategy

The application relates to the technical field of electric digital data processing, and discloses a module dynamic assembly and life cycle management system based on a dependency injection strategy, which comprises a data interaction module, a logic assembly unit and a dependency injection center, wherein the data interaction module acquires an interactive load data sequence of a running state of a controlled physical object and a logic trigger signal; the logic assembly unit determines a physical elastic characteristic factor according to the interactive load data sequence, injects a phase hedging item in a characteristic package weight switching process, and generates a dynamic weight adjustment instruction; the dependency injection center reconstructs a new and old characteristic package weight proportion according to the dynamic weight adjustment instruction, adopts state fingerprint inheritance logic after the physical elastic characteristic factor reaches a preset steady state judgment threshold, and destroys an old instance, the application solves the decoupling problem of a control logic and a physical deformation field through real-time coupling of a physical elastic characteristic factor and control weight, eliminates data breakpoints in a switching transient state, and maintains smooth system operation.
Owner:HANGZHOU YONGCHUANG TECH GRP CO LTD

Acquisition system supporting online configuration

The invention discloses an acquisition system supporting online configuration. The acquisition system comprises an event bus, a thread pool, a database connection pool, an equipment instance and an execution unit, loading dependencies required by the system according to the dependency configuration file, wherein the dependencies comprise a dynamic library, global dependencies and device container dependencies; when the system is initialized, loading the dynamic library into the system according to the dynamic library file address provided by the load tag; obtaining a full path name provided by the label according to the app label, searching a corresponding type in a program, instantiating the type by using a dependency injection factory, and sequentially loading equipment instances according to the docks label; after the event is put into the event bus, the event receiver receives the event and distributes the event to the corresponding execution unit according to the name of the event; the system comprises a plurality of execution units, and each execution unit comprises business logic loaded into an independent Domain; each execution unit has the name of a group of executable events, and the event executor can be reloaded during operation.
Owner:JIANGSU TIANHE INFORMATION TECH CO LTD

Data processing pipeline auto-assembly system and method

PendingCN122261630AVersion controlProgram documentationData classDependency injection
The application provides a data processing pipeline automatic assembly system and method. It comprises: an operator discovery module for obtaining registered operators based on a modular dependency injection container in the application initialization stage; a hierarchical metadata generation module for generating operator execution metadata; a pipeline registry module for creating or caching corresponding data processing pipeline instances according to data types; an automatic topology assembly module for building a directed data processing topology; a data access and driving module for obtaining a target data processing pipeline instance from the pipeline registry module according to the input data type and delivering data to the entry buffer node; a topology visualization output module for generating a tree topology description based on the node identification and connection relationship formed by assembly, and outputting node type, operator identification, data type mapping relationship, execution order and execution parameters. The application can reduce process coupling cost, improve pipeline expansion and configuration efficiency, and improve operation and maintenance observability.
Owner:DUAL DOMAIN TIMES (SHANGHAI) COMPUTER TECHNOLOGY CO LTD

Multi-entry point extraction and call graph construction method for SpringWeb framework

The invention provides a multi-entry point extraction and call graph construction method for a SpringWeb framework, which comprises the following steps: firstly, identifying multiple entry points in a Web application, such as a controller, a service class and a REST interface, and ensuring that an analysis tool can fully cover all entry points of the application; secondly, processing dependency injection dynamic characteristics in the Spring framework through a static analysis technology, and analyzing and accurately constructing a dependency relationship to optimize the accuracy of a control flow and a data flow; finally, a complete calling graph is generated, the calling relation of all calling points is displayed, and accurate static inference can be conducted on dynamic behaviors of the SpringWeb application program. According to the method, the problems of dynamic dependency injection characteristics and Web application multi-entry point extraction and call flow analysis in the Spring core technology are solved.
Owner:SOUTHEAST UNIV

Method and device for acquiring generic Bean in Spring Framework framework, equipment and medium

ActiveCN120743286ACode compilationDependency injectionGeneric programming
The invention discloses a method, a device, equipment and a medium for acquiring generic Bean in Spring Framework framework, and relates to the technical field of computers, the method comprises the following steps: acquiring an initial object from a preset container, and storing a generic type of a preset object acquisition method into a preset expected type variable; packaging the preset expected type variable to obtain a packaged object, and verifying whether the generic type of the packaged object is consistent with the generic type of the initial object; if yes, performing forced conversion on the initial object, and returning to the initial object; and if not, performing exception error reporting based on the original type of the initial object. Therefore, generic object acquisition with real type security can be realized in Spring Framework, the function blank of a framework in the aspect of generic dependency injection is filled, and the risk of type conversion errors caused by forced type conversion is thoroughly avoided.
Owner:湖南长银五八消费金融股份有限公司

Dependency injection with auto-serialization in multiple worker system

In some embodiments, a system performs a service using a plurality of compute nodes. A second compute node installs a dependency injection container to manage a dependency graph of dependencies for classes in an application. The dependency injection container is determined from a first compute node in the plurality of compute nodes that manages performing the service with the plurality of compute nodes. The second compute node receives information identifying a node in the dependency graph from the first compute node. The information is received to create a first object that has been created on the first compute node. The second compute node uses the information to determine a first class for the node in the dependency graph and a dependency on a second class and creates the first object of the first class with the dependency on a second object of the second class on the second compute node.
Owner:HULU LLC

A method and related apparatus for maintaining an intelligent agent's environment

PendingCN122633438ADependency injectionOperating system
This application discloses a method and related apparatus for maintaining an intelligent agent environment, relating to the field of artificial intelligence. The method includes: creating an independent intelligent agent thread for the user in response to an intelligent agent initiation command; instantiating a driver layer module and an upper-layer module containing a tool layer module within this thread; injecting lower-layer module instances based on the dependency information of the upper-layer module to form a dependency call chain from the tool layer to the driver layer; during the execution of a large language model task loop, each round of calling the tool layer module obtains a control handle uniquely bound to the thread of the task loop along the dependency call chain, and sends control commands to the physical execution environment based on this control handle. This application, based on thread isolation, dependency injection, and handle binding mechanisms, achieves the reuse of the same execution session across multiple rounds of tool calls, solving the problem of task context breakage.
Owner:广州市公安局网络安全保卫支队

Methods, devices, and media for obtaining generic beans in the Spring Framework

ActiveCN120743286BCode compilationDependency injectionGeneric programming
This application discloses methods, apparatus, devices, and media for obtaining generic beans in the Spring Framework, relating to the field of computer technology. The methods include: obtaining an initial object from a predefined container and storing the generic type of the predefined object acquisition method in a predefined expected type variable; encapsulating the predefined expected type variable to obtain an encapsulated object, and verifying whether the generic type of the encapsulated object is consistent with that of the initial object; if consistent, performing a type cast on the initial object and returning the initial object; if inconsistent, throwing an exception based on the original type of the initial object. This enables truly type-safe acquisition of generic objects in the Spring Framework, filling the functional gap in generic dependency injection within the framework and completely avoiding the risk of type conversion errors caused by forced type casting.
Owner:湖南长银五八消费金融股份有限公司

Angular framework code auditing method, electronic device, storage medium, and program product

The application provides an Angular framework code auditing method, an electronic device, a storage medium and a program product, and relates to the technical field of security. The method divides source code into semantic code units with complete context by using Angular framework syntax features, which can effectively improve the understanding ability of a large language model for framework-specific logic and avoid missing detection of semantics such as decorators and dependency injection by general tools. Meanwhile, based on the dynamic retrieval of a rule knowledge base according to a user-specified auditing dimension label, accurate matching of auditing rules and auditing intentions is achieved, and then accurate auditing of code is performed by a large language model based on a target auditing rule set.
Owner:HUBEI TIANRONGXIN NETWORK SECURITY TECH CO LTD +3

Dependence injection method and device

PendingCN120386511ASoftware designDependency injectionSoftware engineering
The embodiment of the invention provides a dependency injection method and device, computer equipment, a computer readable storage medium and a computer program product, and belongs to the technical field of computers. The method comprises the following steps: acquiring a first dependency item and a second dependency item; wherein the first dependency item depends on the second dependency item, the first dependency item declares that the first dependency item depends on a target attribute, and the name of the target attribute is the same as the name of the second dependency item; creating a first module according to the first dependency item, and creating a second module according to the second dependency item; wherein the first module is used for providing an instance of the first dependency item, and the second module is used for providing an instance of the second dependency item; and building a target dependency container according to the first module and the second module. According to the technical scheme of the embodiment of the invention, setting of an additional identity label for each dependency item and manual configuration of a dependency item identity table can be avoided, and the automation level and efficiency of the dependency injection method are improved.
Owner:SHANGHAI BILIBILI TECH CO LTD

Application dependency injection method, system and device, electronic equipment and storage medium

PendingCN120010819AVersion controlSoftware designDependency injectionSoftware development
The invention provides an application dependency injection method, system and device, electronic equipment and a storage medium, relates to the technical field of computers, in particular to the fields of mobile application, software development and the like, and can be used for application scenes such as mobile application product service iteration and the like. According to the specific implementation scheme, a dependency calling request of a dependency demand component is received; determining a dependency providing component according to the dependency calling request and a known dependency providing mapping relation; generating a dependency injection instance based on the dependency providing component; and returning the dependency injection instance to the dependency demand component. According to the scheme, the coupling degree between the modules can be reduced, and application maintenance and expansion are facilitated.
Owner:BEIJING BAIDU NETCOM SCI & TECH CO LTD

A microservice development system with pluggable governance functions and an implementation method

The present invention relates to a microservice development framework with governance function plug-inization and its implementation method. By adopting the plug-in implementation method, through object-oriented interface design and design schemes such as dependency injection, it solves the business problem of how to make functional modules general and loosely coupled with the framework, greatly reducing the usage and maintenance costs of the access party and reducing the internal complexity of the microservice development framework. At the same time, the present invention defines the aggregation definition of public interfaces for independent functions such as configuration update in the microservice development framework. When the plug-in implements these interface definitions, the framework can handle the corresponding logic to provide support for the independent update of the plug-in itself. In the face of specific business scenarios, the plug-in can ensure independent service provision without being affected by other businesses, decoupled from the business and other plug-ins.
Owner:XIAMEN DIANCHU TECH CO LTD

File read-write method and device based on dependency injection, equipment and medium

The embodiment of the invention provides a file read-write method and device based on dependency injection, equipment and a medium. The method comprises the steps that when it is detected that a file reading and writing condition is met, a data reading function is called, and data to be read and written are loaded based on an implementation class corresponding to the data reading function; determining a target path corresponding to the to-be-read-written data based on a read-write path corresponding to the at least one business module and a target business module corresponding to the to-be-read-written data, wherein the read-write path depends on injection in advance and the target business module corresponds to the to-be-read-written data; and writing the data to be read and written into the target disk or reading the data from the target disk based on the target path. According to the technical scheme provided by the embodiment of the invention, the effect of guaranteeing the safety and stability of the system can be achieved while the business logic and the read-write of the underlying file are decoupled.
Owner:BEIJING ZITIAO NETWORK TECH CO LTD