CN107908397A - The method for building up and application server of software frame based on IOS systems - Google Patents
The method for building up and application server of software frame based on IOS systems Download PDFInfo
- Publication number
- CN107908397A CN107908397A CN201710929636.8A CN201710929636A CN107908397A CN 107908397 A CN107908397 A CN 107908397A CN 201710929636 A CN201710929636 A CN 201710929636A CN 107908397 A CN107908397 A CN 107908397A
- Authority
- CN
- China
- Prior art keywords
- storehouse
- functional unit
- storehouses
- ioc
- rac
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000004044 response Effects 0.000 claims abstract description 45
- 238000004891 communication Methods 0.000 claims abstract description 23
- 238000005192 partition Methods 0.000 claims abstract description 12
- 238000012360 testing method Methods 0.000 claims description 20
- 230000015654 memory Effects 0.000 claims description 19
- 230000006870 function Effects 0.000 claims description 15
- 238000005457 optimization Methods 0.000 claims description 7
- 238000011161 development Methods 0.000 abstract description 32
- 230000018109 developmental process Effects 0.000 description 30
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000006641 stabilisation Effects 0.000 description 4
- 238000011105 stabilization Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000035800 maturation Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method for building up of the software frame based on IOS systems, the described method includes:According to functional requirement partition functionality component;Define the implementation method of the functional unit;Define the functional unit and response type storehouse RAC, control reversion storehouse IOC, the api interface in React Native storehouses;According to the api interface define the functional unit and the response type storehouse RAC, the control reversion storehouse IOC, the React Native storehouses the means of communication;And above-mentioned functional unit is packaged to generate frame structure.The present invention also provides a kind of application server.The method for building up of application server provided by the invention and software frame based on IOS systems realizes the uncoupling of each functional unit, and then the concurrent development of more people can be realized for same project, in addition, by establishing above-mentioned framework, it can realize the multiplexing of function in same area application and development, improve project development efficiency.
Description
Technical field
The present invention relates to field of communication technology, more particularly to a kind of method for building up of software frame based on IOS systems and
Application server.
Background technology
IOS systems are the two big Mobile operating systems arranged side by side with Android, in particular with the fast sale of IPHONE, IOS terminals
Equipment becomes the medium that more and more users link up with external information, and the then application for IOS system developments is also in outburst
The volume increase of formula, becomes one piece of critically important profit cake.So, for IOS systems, at present the spring of not similar java this
Class maturation frame, goes to realize Aspect-oriented programming (Aspect-Oriented Programming, AOP), control reversion
(Inversion of Control, IOC), Model View Controller (Model View Controller, MVC), layer decoupling etc.
Basic function and pattern, even if industry has the storehouse that part of functions is realized in separation, as RAC, IOC of response type typhoon with
And the RN (React Native) of Hybrid, but also lack total solution or the quick engineering foot being integrated into together
Hand cradle.So during the software development for IOS system regions, multiple same projects of programmer's collaborative development, by
In the decoupling that can not realize each functional unit well, multiple functional units can not be effectively multiplexed, and cause the work of multiple programs
Work independently can not effectively be carried out, and then cause the slow of project development process.
And for banking and insurance business field, equally also commented without for reference and loan general utility functions, such as authentication, credit
Point, provide a loan into scaffold frames such as parts, so being directed to such application, current development is also subject to certain restrictions.
The content of the invention
In view of this, the present invention proposes a kind of method for building up and application server of the software frame based on IOS systems, base
The uncoupling of each functional unit is realized in the method for building up of the software frame of IOS systems, and then can be with for same project
The concurrent development of more people is realized, in addition, by establishing the software frame framework based on IOS systems, it is possible to achieve identical neck
The multiplexing of function in the application and development of domain, improves project development efficiency.
First, to achieve the above object, the present invention proposes a kind of application server, and the application server includes storage
Device, processor, the foundation for the software frame based on IOS systems that can be run on the processor is stored with the memory
Program, the application server further includes response type storehouse RAC, control reversion storehouse IOC, React Native storehouses, described to be based on IOS
Following steps are realized in establishing when program is performed by the processor for the software frame of system:
According to functional requirement partition functionality component;
Define the implementation method of the functional unit;
Define the functional unit and the response type storehouse RAC, the control reversion storehouse IOC, the React Native
The api interface in storehouse;
The functional unit and the response type storehouse RAC, the control reversion storehouse IOC, institute are defined according to the api interface
State the means of communication in React Native storehouses;And
The functional unit is packaged to generate frame structure.
Alternatively, establishing when program is performed by the processor for the software frame based on IOS systems is also realized such as
Lower step:
Test script is generated, the test script is used for the stability for examining the framework.
Alternatively, the functional requirement includes combination one or more in authentication, credit scoring, loan progress.
Alternatively, the response type storehouse RAC is used for realization response type programming, and then decouples view and event handling, described
Control reversion storehouse IOC is used for the dependence by container control object, further decouples object, and the React Native storehouses are used
In the Hybrid parts by the React Native storehouses, JavaScript and communication optimization are loaded.
In addition, to achieve the above object, the present invention also provides a kind of method for building up of the software frame based on IOS systems,
This method is applied to application server, and the application server includes response type storehouse RAC, control reversion storehouse IOC, React
Native storehouses, the described method includes:
According to functional requirement partition functionality component;
Define the implementation method of the functional unit;
Define the functional unit and the response type storehouse RAC, the control reversion storehouse IOC, the React Native
The api interface in storehouse;
The functional unit and the response type storehouse RAC, the control reversion storehouse IOC, institute are defined according to the api interface
State the means of communication in React Native storehouses;And
The functional unit is packaged to generate frame structure.
Alternatively, the method further includes:
Test script is generated, the test script is used for the stability for examining the framework.
Alternatively, the functional requirement includes combination one or more in authentication, credit scoring, loan progress.
Alternatively, the response type storehouse RAC is used for realization response type programming, and then decouples view and event handling, described
Control reversion storehouse IOC is used for the dependence by container control object, further decouples object, and the React Native storehouses are used
In the Hybrid parts by the React Native storehouses, JavaScript and communication optimization are loaded.
Further, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, the computer
Readable storage medium storing program for executing is stored with the program of establishing of the software frame based on IOS systems, the software frame based on IOS systems
Establishing program can be performed by least one processor, so that at least one processor performs and is based on IOS systems described above
Software frame method for building up the step of.
Compared to the prior art, application server proposed by the invention, the foundation side of software frame based on IOS systems
Method and computer-readable recording medium, first, according to functional requirement partition functionality component;Secondly, the functional unit is defined
Implementation method;Again, the functional unit and the response type storehouse RAC, the control reversion storehouse IOC, the React are defined
The api interface in Native storehouses;Then, the functional unit and the response type storehouse RAC, described are defined according to the api interface
Control reversion storehouse IOC, the means of communication in the React Native storehouses;Finally, above-mentioned functional unit is packaged to generate
Frame structure.In this way, during both can be to avoid multiple same projects of programmer's collaborative development in the prior art, due to nothing
Method realizes the decoupling of each functional unit well, and multiple functional units can not be effectively multiplexed, and causes the work nothing of multiple programs
Method is independent effective to carry out, so cause project development process it is slow the drawbacks of.Going for each functional unit can be realized again
Couple, and then the concurrent development of more people can be realized for same project, in addition, by establishing above-mentioned framework, it is possible to achieve phase
The multiplexing of function in same domain application and development, improves project development efficiency, and then meets the continually changing demand in market, lifting
Enterprise competitiveness.
Brief description of the drawings
Fig. 1 is the schematic diagram of one optional hardware structure of application server of the present invention;
Fig. 2 is the program module schematic diagram for establishing program first embodiment of the software frame of the invention based on IOS systems;
Fig. 3 is the Program modual graph for establishing program second embodiment of the software frame of the invention based on IOS systems;
Fig. 4 is the flow chart of the method for building up first embodiment of the software frame of the invention based on IOS systems;
Fig. 5 is the flow chart of the method for building up second embodiment of the software frame of the invention based on IOS systems.
Reference numeral:
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before creative work is made
All other embodiments obtained are put, belong to the scope of protection of the invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is only used for description purpose, and cannot
It is interpreted as indicating or implies its relative importance or imply the quantity of the technical characteristic indicated by indicating.Thus, define " the
One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In addition, the skill between each embodiment
Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution
It will be understood that the combination of this technical solution is not present with reference to there is conflicting or can not realize when, also not in application claims
Protection domain within.
As shown in fig.1, it is the schematic diagram of 1 one optional hardware structure of application server.
The application server 1 can be rack-mount server, blade server, tower server or cabinet-type service
The computing devices such as device, the application server 1 can be the servers that independent server or multiple servers are formed
Cluster.
In the present embodiment, the application server 1 may include, but be not limited only to, and company can be in communication with each other by system bus
Connect memory 11, processor 12, network interface 13.
The application server 1 connects network by network interface 13, obtains information.The network can be enterprises
Net (Intranet), internet (Internet), global system for mobile communications (Global System of Mobile
Communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access,
WCDMA), the wirelessly or non-wirelessly network such as 4G networks, 5G networks, bluetooth (Bluetooth), Wi-Fi, speech path network.
It is pointed out that Fig. 1 illustrate only the application server 1 with component 11-13, it should be understood that simultaneously
All components shown realistic are not applied, the more or less component of the implementation that can be substituted.
Wherein, the memory 11 includes at least a type of readable storage medium storing program for executing, and the readable storage medium storing program for executing includes
Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), it is static with
Machine access memory (SRAM), read-only storage (ROM), electrically erasable programmable read-only memory (EEPROM), it is programmable only
Read memory (PROM), magnetic storage, disk, CD etc..In certain embodiments, the memory 11 can be described answers
With the hard disk or memory of the internal storage unit of server 1, such as the application server 1.In further embodiments, it is described to deposit
Reservoir 11 can also be the External memory equipment of the application server 1, such as the plug-in type that the application server 1 is equipped with is hard
Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card) etc..Certainly, the memory 11 can also both include the internal storage unit of the application server 1 or wrap
Include its External memory equipment.In the present embodiment, the memory 11 is installed on the behaviour of the application server 1 commonly used in storage
Make system and types of applications software, such as program code for establishing program 200 of the software frame based on IOS systems etc..
In addition, the memory 11 can be also used for temporarily storing the Various types of data that has exported or will export.
The processor 12 can be in certain embodiments central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 12 is answered commonly used in control is described
With the overall operation of server 1, such as execution data interaction or the relevant control of communication and processing etc..In the present embodiment, institute
State processor 12 to be used to run the program code stored in the memory 11 or processing data, such as be based on described in operation
The software frame of IOS systems establishes program 200 etc..
The network interface 13 may include radio network interface or wired network interface, which is commonly used in
Communication connection is established between the application server 1 and other electronic equipments.
In the present embodiment, that installs in the application server 1 and run the software frame based on IOS systems establishes journey
Sequence 200, when the software frame based on IOS systems establish program 200 run when, according to functional requirement partition functionality group
Part;Define the implementation method of the functional unit;The functional unit is defined to invert with the response type storehouse RAC, the control
Storehouse IOC, the api interface in the React Native storehouses;The functional unit and the response type are defined according to the api interface
Storehouse RAC, the control reversion storehouse IOC, the means of communication in the React Native storehouses;The functional unit is packaged with
Generate frame structure.In this way, during both can be to avoid multiple same projects of programmer's collaborative development in the prior art, by
In the decoupling that can not realize each functional unit well, multiple functional units can not be effectively multiplexed, and cause the work of multiple programs
Work independently can not effectively carry out, and then cause project development process it is slow the drawbacks of.Each functional unit can be realized again
Uncoupling, and then the concurrent development of more people can be realized for same project, in addition, by establishing above-mentioned framework, Ke Yishi
The multiplexing of function, improves project development efficiency in existing same area application and development, and then meets the continually changing demand in market,
Enterprise competitiveness.
So far, oneself is through describing the application environment of each embodiment of the present invention and the hardware configuration and work(of relevant device in detail
Energy.In the following, above application environment and relevant device will be based on, each embodiment of the present invention is proposed.
First, what the present invention proposed a kind of software frame based on IOS systems establishes program 200.
In the present embodiment, the program 200 of establishing of the software frame based on IOS systems includes a series of be stored in
Computer program instructions on reservoir 11, when the computer program instructions are performed by processor 12, it is possible to achieve the present invention is each
The control operation of the disease forecasting of embodiment.In certain embodiments, realized based on the computer program instructions each several part
Specific operation, the software frame based on IOS systems establish program 200 and can be divided into one or more modules.
For example, in fig. 2, the software frame based on IOS systems establishes program 200 and can be divided into division module 201, fixed
Adopted module 202 and generation module 203.Wherein:
The division module 201, for according to functional requirement partition functionality component.
In the present embodiment, the functional requirement includes group one or more in authentication, credit scoring, loan progress
Close.
In the present embodiment, due to the particularity of banking and insurance business industry, many functions are for different companies or answer
All it is necessary, for example authentication, credit scoring, provide a loan into part etc., then for the exploitation of such application for
Journey, if there is such ripe framework, then for developing the developer of such application, will get twice the result with half the effort.
The definition module 202, for defining the implementation method of the functional unit.In the present embodiment, the application clothes
Business device 1 includes response type (ReactiveCocoa, RAC) storehouse, control inverts (Inversion of Control, IOC) storehouse,
React Native storehouses.
The definition module 202, is additionally operable to define the functional unit and the response type storehouse RAC, the control reversion
Storehouse IOC, the api interface in the React Native storehouses.
The definition module 202, is additionally operable to define the functional unit and the response type storehouse according to the api interface
RAC, the control reversion storehouse IOC, the means of communication in the React Native storehouses.
Wherein, the response type storehouse RAC is used for realization response type programming, and then decouples view and event handling.
In the present embodiment, introduction using skill most basic RAC is exactly the monitoring to event.Including
Target-action (click event), agency, notice, wherein the maximum effect acted on behalf of is simplified code, such as in a View
There are multiple AlertView, each AlertView there are very multiple buttons, each button has the click event of oneself, and code is realized
Normal logic be that not only each button needs marking, and each AlertView also wants marking, then again toward agent point
Hit and add various methods in event, code is with regard to offensive smell and prolixity.But the Proxy Method of RAC may just need several line codes to settle
.Code complexity is so just reduced, the maintenance upgrade that makes that code is well arranged, clear logic is more convenient for preferably decouples.
In addition, the control reversion storehouse IOC is used for the dependence by container control object, object is further decoupled, is had
Body, the control reversion storehouse IOC is used to realize IOC by using typhoon.
In the present embodiment, by IOC, defining interface is responsible for by high-rise module, no longer depends directly on modules at lower layers,
And modules at lower layers is then responsible for realizing the interface of high-rise module definition.In this way, when there is new modules at lower layers to realize, it is not necessary to change
The code of high-rise module, and then ensure that the maintainability of code.
Further, the React Native storehouses are used for the Hybrid parts by the React Native storehouses, add
Carry JavaScript (JS) and communication optimization.
In the present embodiment, adding for DYNAMIC J S, can be optimized by the characteristic of the Hybrid parts in React Native storehouses
Carry, while it is also possible that the more quick stabilization that communicates between modules interface.
The generation module 203, is additionally operable to the functional unit and is packaged to generate frame structure.
By above procedure module 201-203, the software frame proposed by the invention based on IOS systems establishes program
200, first, according to functional requirement partition functionality component;Secondly, the implementation method of the functional unit is defined;Again, institute is defined
State functional unit and the response type storehouse RAC, the control reversion storehouse IOC, the api interface in the React Native storehouses;So
Afterwards, the functional unit and the response type storehouse RAC, the control reversion storehouse IOC, described are defined according to the api interface
The means of communication in React Native storehouses;Finally, the functional unit is packaged to generate frame structure.In this way, both may be used
During to avoid multiple same projects of programmer's collaborative development in the prior art, due to that can not realize each work(well
The decoupling of energy component, multiple functional units can not be effectively multiplexed, and cause the work of multiple programs independently can not effectively to carry out, into
And cause project development process it is slow the drawbacks of.The uncoupling of each functional unit can be realized again, and then is directed to same item
Mesh can realize the concurrent development of more people, in addition, by establishing above-mentioned framework, it is possible to achieve function in same area application and development
Multiplexing, improve project development efficiency, and then meet the continually changing demand in market, enterprise competitiveness.
Further, above-mentioned first implementation for establishing program 200 based on software frame of the present invention based on IOS systems
Example, proposes the second embodiment of the present invention (as shown in Figure 3).In the present embodiment, the software frame based on IOS systems
Establish program 200 and further include test module 204, wherein:
The test module 204 is used for:Test script is generated, the test script is used for the stabilization for examining the framework
Property.Specifically, the test script examines the inspection result of the stability of the framework to may be displayed on the test of mobile terminal
In terminal.
By above procedure module 204, the software frame proposed by the invention based on IOS systems establishes program 200,
By generating test script, to examine the stability of the framework.
In addition, the present invention also proposes a kind of method for building up of the software frame based on IOS systems.
As shown in fig.4, it is the implementation stream of the method for building up first embodiment of the software frame of the invention based on IOS systems
Journey schematic diagram.In the present embodiment, can be changed according to different demands, the execution sequence of the step in flow chart shown in Fig. 4
Become, some steps can be omitted.
In the present embodiment, the application server 1 includes response type (ReactiveCocoa, RAC) storehouse, control reversion storehouse
(Inversion of Control, IOC), React Native storehouses.
Step S401, according to functional requirement partition functionality component.
In the present embodiment, the functional requirement includes group one or more in authentication, credit scoring, loan progress
Close.
In the present embodiment, due to the particularity of banking and insurance business industry, many functions are for different companies or answer
All it is necessary, for example authentication, credit scoring, provide a loan into part etc., then for the exploitation of such application for
Journey, if there is such ripe framework, then for developing the developer of such application, will get twice the result with half the effort.
Step S402, defines the implementation method of the functional unit.
Step S403, defines the functional unit and the response type storehouse RAC, the control reversion storehouse IOC, described
The api interface in React Native storehouses.
Step S404, defines the functional unit according to the api interface and the response type storehouse RAC, the control is anti-
Stock relocation IOC, the means of communication in the React Native storehouses.
Wherein, the response type storehouse RAC is used for realization response type programming, and then decouples view and event handling.
In the present embodiment, introduction using skill most basic RAC is exactly the monitoring to event.Including
Target-action (click event), agency, notice, wherein the maximum effect acted on behalf of is simplified code, such as in a View
There are multiple AlertView, each AlertView there are very multiple buttons, each button has the click event of oneself, and code is realized
Normal logic be that not only each button needs marking, and each AlertView also wants marking, then again toward agent point
Hit and add various methods in event, code is with regard to offensive smell and prolixity.But the Proxy Method of RAC may just need several line codes to settle
.Code complexity is so just reduced, the maintenance upgrade that makes that code is well arranged, clear logic is more convenient for preferably decouples.
In addition, the control reversion storehouse IOC is used for the dependence by container control object, object is further decoupled, is had
Body, the control reversion storehouse IOC is used to realize IOC by using typhoon.
In the present embodiment, by IOC, defining interface is responsible for by high-rise module, no longer depends directly on modules at lower layers,
And modules at lower layers is then responsible for realizing the interface of high-rise module definition.In this way, when there is new modules at lower layers to realize, it is not necessary to change
The code of high-rise module, and then ensure that the maintainability of code.
Further, the React Native storehouses are used for the Hybrid parts by the React Native storehouses, add
Carry JavaScript (JS) and communication optimization.
In the present embodiment, adding for DYNAMIC J S, can be optimized by the characteristic of the Hybrid parts in React Native storehouses
Carry, while it is also possible that the more quick stabilization that communicates between modules interface.
Step S405, is packaged the functional unit to generate frame structure.
By above-mentioned steps S401-405, the method for building up of the software frame proposed by the invention based on IOS systems is first
First, according to functional requirement partition functionality component;Secondly, the implementation method of the functional unit is defined;Again, the function is defined
Component and the response type storehouse RAC, the control reversion storehouse IOC, the api interface in the React Native storehouses;Then, according to
The api interface defines the functional unit and the response type storehouse RAC, the control reversion storehouse IOC, the React
The means of communication in Native storehouses;Finally, above-mentioned functional unit is packaged to generate frame structure.In this way, both can be to avoid
In the prior art during multiple same projects of programmer's collaborative development, due to that can not realize each functional unit well
Decoupling, multiple functional units can not effectively be multiplexed, and cause the work of multiple programs independently can not effectively to carry out, and then cause
Project development process it is slow the drawbacks of.It can realize the uncoupling of each functional unit again, and then can be with for same project
The concurrent development of more people is realized, in addition, by establishing above-mentioned framework, it is possible to achieve function answers in same area application and development
With improving project development efficiency, and then meet the continually changing demand in market, enterprise competitiveness.
As shown in fig.5, it is the implementation stream of the method for building up second embodiment of the software frame of the invention based on IOS systems
Journey schematic diagram.In the present embodiment, can be changed according to different demands, the execution sequence of the step in flow chart shown in Fig. 5
Become, some steps can be omitted.
Step S501, according to functional requirement partition functionality component.
In the present embodiment, the functional requirement includes group one or more in authentication, credit scoring, loan progress
Close.
In the present embodiment, due to the particularity of banking and insurance business industry, many functions are for different companies or answer
All it is necessary, for example authentication, credit scoring, provide a loan into part etc., then for the exploitation of such application for
Journey, if there is such ripe framework, then for developing the developer of such application, will get twice the result with half the effort.
Step S502, defines the implementation method of the functional unit.
Step S503, defines the functional unit and the response type storehouse RAC, the control reversion storehouse IOC, described
The api interface in React Native storehouses.
Step S504, defines the functional unit according to the api interface and the response type storehouse RAC, the control is anti-
Stock relocation IOC, the means of communication in the React Native storehouses.
Wherein, the response type storehouse RAC is used for realization response type programming, and then decouples view and event handling.
In the present embodiment, introduction using skill most basic RAC is exactly the monitoring to event.Including
Target-action (click event), agency, notice, wherein the maximum effect acted on behalf of is simplified code, such as in a View
There are multiple AlertView, each AlertView there are very multiple buttons, each button has the click event of oneself, and code is realized
Normal logic be that not only each button needs marking, and each AlertView also wants marking, then again toward agent point
Hit and add various methods in event, code is with regard to offensive smell and prolixity.But the Proxy Method of RAC may just need several line codes to settle
.Code complexity is so just reduced, the maintenance upgrade that makes that code is well arranged, clear logic is more convenient for preferably decouples.
In addition, the control reversion storehouse IOC is used for the dependence by container control object, object is further decoupled, is had
Body, the control reversion storehouse IOC is used to realize IOC by using typhoon.
In the present embodiment, by IOC, defining interface is responsible for by high-rise module, no longer depends directly on modules at lower layers,
And modules at lower layers is then responsible for realizing the interface of high-rise module definition.In this way, when there is new modules at lower layers to realize, it is not necessary to change
The code of high-rise module, and then ensure that the maintainability of code.
Further, the React Native storehouses are used for the Hybrid parts by the React Native storehouses, add
Carry JavaScript (JS) and communication optimization.
In the present embodiment, adding for DYNAMIC J S, can be optimized by the characteristic of the Hybrid parts in React Native storehouses
Carry, while it is also possible that the more quick stabilization that communicates between modules interface.
Step S505, is packaged the functional unit to generate frame structure.
Step S506, generates test script, and the test script is used for the stability for examining the framework.
Specifically, the test script examines the inspection result of the stability of the framework to may be displayed on mobile terminal 1
Test terminal on.
By above-mentioned steps S501-506, the method for building up of the software frame proposed by the invention based on IOS systems can
To realize the uncoupling of each functional unit, and then the concurrent development of more people can be realized for same project, in addition, by building
Found above-mentioned framework, it is possible to achieve the multiplexing of function in same area application and development, improves project development efficiency, and then meet city
The continually changing demand in field, enterprise competitiveness.Meanwhile by generating test script, to examine the stability of the framework.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, takes
Be engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of method for building up of the software frame based on IOS systems, applied to application server, it is characterised in that described to answer
Include response type storehouse RAC, control reversion storehouse IOC, React Native storehouses with server, the described method includes:
According to functional requirement partition functionality component;
Define the implementation method of the functional unit;
Define the functional unit and the response type storehouse RAC, the control reversion storehouse IOC, the React Native storehouses
Api interface;
The functional unit and the response type storehouse RAC, the control reversion storehouse IOC, described are defined according to the api interface
The means of communication in React Native storehouses;And
The functional unit is packaged to generate frame structure.
2. the method for building up of the software frame as claimed in claim 1 based on IOS systems, it is characterised in that the method is also
Including:
Test script is generated, the test script is used for the stability for examining the framework.
3. the method for building up of the software frame as claimed in claim 1 based on IOS systems, it is characterised in that the function needs
Ask including combination one or more in authentication, credit scoring, loan progress.
4. the method for building up of the software frame as claimed in claim 1 based on IOS systems, it is characterised in that the response type
Storehouse RAC is used for realization response type programming, and then decouples view and event handling, and the control reversion storehouse IOC is used for by container control
The dependence of object processed, further decouples object.
5. the method for building up of the software frame as claimed in claim 1 based on IOS systems, it is characterised in that the React
Native storehouses are used for the Hybrid parts by the React Native storehouses, load JavaScript and communication optimization.
6. a kind of application server, it is characterised in that the application server includes memory, processor, on the memory
Be stored with the software frame based on IOS systems that can run on the processor establishes program, and the application server is also
Including response type storehouse RAC, control reversion storehouse IOC, React Native storehouses, the foundation of the software frame based on IOS systems
Program realizes following steps when being performed by the processor:
According to functional requirement partition functionality component;
Define the implementation method of the functional unit;
Define the functional unit and the response type storehouse RAC, the control reversion storehouse IOC, the React Native storehouses
Api interface;
The functional unit and the response type storehouse RAC, the control reversion storehouse IOC, described are defined according to the api interface
The means of communication in React Native storehouses;And
The functional unit is packaged to generate frame structure.
7. application server as claimed in claim 6, it is characterised in that the foundation of the software frame based on IOS systems
Program also realizes following steps when being performed by the processor:
Test script is generated, the test script is used for the stability for examining the framework.
8. application server as claimed in claim 6, it is characterised in that the functional requirement includes authentication, credit is commented
Divide, combination one or more in loan progress.
9. application server as claimed in claim 6, it is characterised in that the response type storehouse RAC is used for realization response type volume
Journey, and then view and event handling are decoupled, the control reversion storehouse IOC is used for the dependence by container control object, into one
Step decoupling object, the React Native storehouses are used for the Hybrid parts by the React Native storehouses, loading
JavaScript and communication optimization.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has the software frame based on IOS systems
Frame establishes program, and the software frame based on IOS systems is established program and can be performed by least one processor, so that institute
State the foundation side for the software frame based on IOS systems that at least one processor is performed as any one of claim 1-5
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710929636.8A CN107908397A (en) | 2017-10-09 | 2017-10-09 | The method for building up and application server of software frame based on IOS systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710929636.8A CN107908397A (en) | 2017-10-09 | 2017-10-09 | The method for building up and application server of software frame based on IOS systems |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107908397A true CN107908397A (en) | 2018-04-13 |
Family
ID=61841169
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710929636.8A Pending CN107908397A (en) | 2017-10-09 | 2017-10-09 | The method for building up and application server of software frame based on IOS systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107908397A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109343983A (en) * | 2018-09-30 | 2019-02-15 | 武汉斗鱼网络科技有限公司 | Information interacting method, device, equipment and storage medium between functional module |
CN110764836A (en) * | 2019-09-18 | 2020-02-07 | 华为技术有限公司 | Method and system for realizing plug-in |
WO2021143626A1 (en) * | 2020-01-17 | 2021-07-22 | 深圳壹账通智能科技有限公司 | Service platform component management method and system, device, and readable storage medium |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060004856A1 (en) * | 2004-06-15 | 2006-01-05 | Xiangyang Shen | Data management and persistence frameworks for network management application development |
US20070260928A1 (en) * | 2006-01-31 | 2007-11-08 | Peter Zencke | System and method for engineered decoupling in a development environment |
US20100060422A1 (en) * | 2008-09-09 | 2010-03-11 | Sensormatic Electronics Corporation | Rfid enhanced operating system (eos) framework |
CN101833465A (en) * | 2010-04-23 | 2010-09-15 | 中国科学院声学研究所 | Embedded system supporting dynamic loading operation of application programs |
CN102750145A (en) * | 2012-06-05 | 2012-10-24 | 怯肇乾 | Network system software system framework and implementation method thereof |
CN103152433A (en) * | 2013-01-14 | 2013-06-12 | 广东电子工业研究院有限公司 | Distributed server side framework and use, interaction and request processing method thereof |
CN103645919A (en) * | 2013-12-18 | 2014-03-19 | 用友软件股份有限公司 | Method for extending functions of management information system through plugins |
US8904353B1 (en) * | 2010-11-08 | 2014-12-02 | Amazon Technologies, Inc. | Highly reusable test frameworks and tests for web services |
CN105183458A (en) * | 2015-08-14 | 2015-12-23 | 深圳联友科技有限公司 | Software platform development method and apparatus |
US20160092179A1 (en) * | 2014-09-26 | 2016-03-31 | Oracle International Corporation | High performant ios template based application build system |
US20160124742A1 (en) * | 2014-10-30 | 2016-05-05 | Equinix, Inc. | Microservice-based application development framework |
CN106648682A (en) * | 2016-12-29 | 2017-05-10 | 中南大学 | Dynamic-data general framework facing embedded system development |
US20170277677A1 (en) * | 2016-03-23 | 2017-09-28 | Open Text GXS ULC | Universal parsing framework systems and methods |
-
2017
- 2017-10-09 CN CN201710929636.8A patent/CN107908397A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060004856A1 (en) * | 2004-06-15 | 2006-01-05 | Xiangyang Shen | Data management and persistence frameworks for network management application development |
US20070260928A1 (en) * | 2006-01-31 | 2007-11-08 | Peter Zencke | System and method for engineered decoupling in a development environment |
US20100060422A1 (en) * | 2008-09-09 | 2010-03-11 | Sensormatic Electronics Corporation | Rfid enhanced operating system (eos) framework |
CN101833465A (en) * | 2010-04-23 | 2010-09-15 | 中国科学院声学研究所 | Embedded system supporting dynamic loading operation of application programs |
US8904353B1 (en) * | 2010-11-08 | 2014-12-02 | Amazon Technologies, Inc. | Highly reusable test frameworks and tests for web services |
CN102750145A (en) * | 2012-06-05 | 2012-10-24 | 怯肇乾 | Network system software system framework and implementation method thereof |
CN103152433A (en) * | 2013-01-14 | 2013-06-12 | 广东电子工业研究院有限公司 | Distributed server side framework and use, interaction and request processing method thereof |
CN103645919A (en) * | 2013-12-18 | 2014-03-19 | 用友软件股份有限公司 | Method for extending functions of management information system through plugins |
US20160092179A1 (en) * | 2014-09-26 | 2016-03-31 | Oracle International Corporation | High performant ios template based application build system |
US20160124742A1 (en) * | 2014-10-30 | 2016-05-05 | Equinix, Inc. | Microservice-based application development framework |
CN105183458A (en) * | 2015-08-14 | 2015-12-23 | 深圳联友科技有限公司 | Software platform development method and apparatus |
US20170277677A1 (en) * | 2016-03-23 | 2017-09-28 | Open Text GXS ULC | Universal parsing framework systems and methods |
CN106648682A (en) * | 2016-12-29 | 2017-05-10 | 中南大学 | Dynamic-data general framework facing embedded system development |
Non-Patent Citations (1)
Title |
---|
史梦安等: "一种基于Servlet的控制层软件框架设计", 《软件导刊》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109343983A (en) * | 2018-09-30 | 2019-02-15 | 武汉斗鱼网络科技有限公司 | Information interacting method, device, equipment and storage medium between functional module |
CN109343983B (en) * | 2018-09-30 | 2021-07-23 | 武汉斗鱼网络科技有限公司 | Information interaction method, device, equipment and storage medium between function modules |
CN110764836A (en) * | 2019-09-18 | 2020-02-07 | 华为技术有限公司 | Method and system for realizing plug-in |
US11880695B2 (en) | 2019-09-18 | 2024-01-23 | Huawei Technologies Co., Ltd. | Plug-in implementation method and plug-in implementation system |
CN110764836B (en) * | 2019-09-18 | 2024-02-09 | 华为技术有限公司 | Plug-in implementation method and plug-in implementation system |
WO2021143626A1 (en) * | 2020-01-17 | 2021-07-22 | 深圳壹账通智能科技有限公司 | Service platform component management method and system, device, and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110046023B (en) | Data processing method and system based on intelligent contract of block chain | |
CN107885656A (en) | Product algorithm automated testing method and application server | |
CN107577537A (en) | Resource allocation method and Related product | |
CN108428104A (en) | Wages computational methods, application server and computer readable storage medium | |
US20150065105A1 (en) | System and Methods for Deferred and Remote Device Branding | |
CN109933404B (en) | Encoding and decoding method and system based on block chain intelligent contract | |
CN107908397A (en) | The method for building up and application server of software frame based on IOS systems | |
CN107589998A (en) | Resource allocation method and Related product | |
CN106502646A (en) | The page info processing method and processing device of application | |
CN107911401A (en) | Application plug-in expansion function methods and application server | |
CN108762956A (en) | Obtain method, server, mobile terminal and the storage medium of Native local datas | |
CN108600331A (en) | Interactive interface rendering method, client, terminal and system | |
CN104050212A (en) | Method and system for mobilizing a web application to take advantage of a native device capability | |
CN106851779A (en) | A kind of method and mobile terminal for recognizing access point and focus | |
CN105653933A (en) | Plugin loading method and device | |
CN108021400A (en) | Data processing method and device, computer-readable storage medium and equipment | |
CN108399319A (en) | Source code guard method, application server and computer readable storage medium | |
CN108427636A (en) | Test method, system and the electronic equipment of application | |
CN107911741A (en) | Free memory method for improving, smart television and computer-readable recording medium | |
CN108021621A (en) | Database data acquisition method, application server and computer-readable recording medium | |
CN107621981A (en) | Resource allocation method and Related product | |
CN110580174A (en) | application component generation method, server and terminal | |
CN108255914A (en) | webpage generating method and application server | |
CN113157345A (en) | Automatic starting method and device for front-end engineering | |
CN111786823A (en) | Fault simulation method and device based on distributed service |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180604 Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Applicant after: ONECONNECT FINANCIAL TECHNOLOGY Co.,Ltd. (SHANGHAI) Address before: 200030 Xuhui District, Shanghai Kai Bin Road 166, 9, 10 level. Applicant before: ONECONNECT FINANCIAL TECHNOLOGY Co.,Ltd. (SHANGHAI) |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
AD01 | Patent right deemed abandoned | ||
AD01 | Patent right deemed abandoned |
Effective date of abandoning: 20240112 |