CN109783159A - Application starting method and apparatus based on configuration information - Google Patents

Application starting method and apparatus based on configuration information Download PDF

Info

Publication number
CN109783159A
CN109783159A CN201910069609.7A CN201910069609A CN109783159A CN 109783159 A CN109783159 A CN 109783159A CN 201910069609 A CN201910069609 A CN 201910069609A CN 109783159 A CN109783159 A CN 109783159A
Authority
CN
China
Prior art keywords
starting
class
delay time
function
delay
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.)
Granted
Application number
CN201910069609.7A
Other languages
Chinese (zh)
Other versions
CN109783159B (en
Inventor
张磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Ouyue Netvision Co Ltd
Original Assignee
Wuhan Ouyue Netvision Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Ouyue Netvision Co Ltd filed Critical Wuhan Ouyue Netvision Co Ltd
Priority to CN201910069609.7A priority Critical patent/CN109783159B/en
Publication of CN109783159A publication Critical patent/CN109783159A/en
Application granted granted Critical
Publication of CN109783159B publication Critical patent/CN109783159B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application starting method and apparatus based on configuration information that the embodiment of the invention discloses a kind of.This method comprises: each configuration information of application program is obtained, wherein each configuration information includes packet name, class name, run function title and delay time;Starting class object corresponding with configuration information is determined according to packet name and class name;Based on default logon mode and reflection mode, according to run function title and delay time, post registration is carried out to each starting class object, and according to each delay time in the delay time collection object obtained after registration, the corresponding starting task of each starting class object is scheduled and is loaded.The starting speed of application program can be improved, to promote user experience in technical solution through the embodiment of the present invention.

Description

Application starting method and apparatus based on configuration information
Technical field
The present embodiments relate to computer technology more particularly to a kind of application starting method and dresses based on configuration information It sets.
Background technique
With the continuous development of the terminals such as mobile phone, tablet computer, the application program installed in terminal (Application, APP) more and more, demand of the user to application program is also more and more.In order to meet the needs of users, the version of application program Gradually upgrade, corresponding startup item also gradually increases, and when starting these startup items at the same time, will be greatly reduced opening for application program Dynamic speed, influences user experience.
Currently, the application program based on android system is on startup, often can by way of reducing startup item come Improve the starting speed of application program.However, most startup item must start up in practical applications, can not be gone Fall.As it can be seen that the mode of existing application starting can not efficiently solve the slow problem of application program launching.
Summary of the invention
The application starting method and apparatus based on configuration information that the embodiment of the invention provides a kind of, to improve application program Starting speed, to promote user experience.
Starting method is applied based on configuration information in a first aspect, the embodiment of the invention provides a kind of, comprising:
Each configuration information of application program is obtained, wherein each configuration information includes packet name, class name, run function name Title and delay time;
Starting class object corresponding with the configuration information is determined according to the packet name and the class name;
Based on default logon mode and reflection mode, according to the run function title and the delay time, to each institute It states starting class object and carries out post registration, and according to each delay time in the delay time collection object obtained after registration, it is right The corresponding starting task of each starting class object is scheduled and loads.
Second aspect, the application starter based on configuration information that the embodiment of the invention also provides a kind of, comprising:
Configuration information obtains module, for obtaining each configuration information of application program, wherein each configuration information packet Name containing packet, class name, run function title and delay time;
Start class object determining module, for corresponding with the configuration information according to the packet name and class name determination Start class object;
Loading module is dispatched, for being based on default logon mode and reflection mode, according to the run function title and institute Delay time is stated, post registration is carried out to each starting class object, and according to the delay time collection object obtained after registration In each delay time, the corresponding starting task of each starting class object is scheduled and is loaded.
The third aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program is realized when the program is executed by processor as what any embodiment of that present invention provided applies starting side based on configuration information Method.
The embodiment of the present invention passes through all configuration informations for obtaining application program, and according to the class name in each configuration information Start class object accordingly with packet name dynamic creation, obtain corresponding starting task, thus add new starting task or When deletion has starting task, can be realized by way of adding or deleting corresponding configuration information, it is not necessary to modify or adjustment it is big Amount starting code, has achieved the effect that lower coupling high cohesion.And based on default logon mode and reflection mode, according to confidence Run function title and delay time in breath carry out post registration to all starting class objects, when delay after being registered Between collection object open so as to the sequencing of all delay times stored according to delay time collection object each It moves the corresponding starting task of class object and carries out Automatic dispatching and dynamically load, to avoid institute is loaded simultaneously when starting application program There is the case where starting task, to improve the starting speed of application program, and the user experience is improved.
Detailed description of the invention
Fig. 1 is a kind of flow chart using starting method based on configuration information that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart for configuration information obtaining method that the embodiment of the present invention one is related to;
Fig. 3 is a kind of flow chart using starting method based on configuration information provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of flow chart for starting task loading method that the embodiment of the present invention two is related to;
Fig. 5 is a kind of flow chart using starting method based on configuration information that the embodiment of the present invention three provides;
Fig. 6 is a kind of flow chart for starting task loading method that the embodiment of the present invention three is related to;
Fig. 7 is a kind of structural schematic diagram using starter based on configuration information that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart using starting method based on configuration information that the embodiment of the present invention one provides, this reality It applies example and is applicable to the case where starting the application program based on android system.This method can be by answering based on configuration information It is executed with starter, which can be realized by the mode of software and/or hardware, be integrated in and be equipped with application program In intelligent terminal, such as smart phone, tablet computer or handheld device etc..As shown in Figure 1, this method specifically includes following step It is rapid:
S110, each configuration information for obtaining application program, wherein each configuration information includes packet name, class name, run function Title and delay time.
Wherein, configuration information can be the relevant configuration information for describing starting task.Starting task can refer to Start required functional module to be started or startup item etc. when application program.Each configuration information of application program in the present embodiment Correspond to a starting task.Each configuration information includes to be not limited to packet name, class name, run function title and delay time.Packet Name and class name can refer to the data of character string string type.Run function title, which can refer to, needs to carry out delay start The function name of run function.The function that run function can refer to for realizing initialization logic, to load starting task. Delay time can refer to after application program starts starting, the time of the delay loading starting task.Prolonging in the present embodiment The slow time can artificially be configured according to user demand and actual conditions.
Specifically, each configuration file of application program can be obtained, and match to each according to the store path of configuration file It sets file to be parsed, it is hereby achieved that the configuration information in each configuration file of application program.
S120, starting class object corresponding with configuration information is determined according to packet name and class name.
Wherein, starting class object can refer to the abstract object of a class class type.
Specifically, the present embodiment can be based on Java reflection mechanism, according in configuration information class name and packet name determine The corresponding starting class object of the configuration information.Illustratively, with class name and the entitled function input parameters of packet, calling system class Class query function Class.forName (" packet name class name ") in Class, obtains the class name and the corresponding starting class pair of packet name As, and can use newInstance () function and starting class object is instantiated, the starting class object after instantiation can Think the starting object of an object type, i.e. starting task.For example, if packet name are as follows: com.douyu.tv, class are entitled InitModule, then can by call Class cls=Class.forName (" com.douyu.tv.InitModule "), It determines the starting class object cls of class type corresponding with configuration information, and cls.newInstance () mode can be called Carry out instantiation operation.
It should be noted that the present embodiment can create corresponding starting class pair in real time according to a configuration information As so as to realize the dynamic creation of starting class object, and obtaining corresponding starting task.If desired new starting is added to appoint Business is deleted when having starting task, can by directly by adding or deleting corresponding configuration information in a manner of realize, without repairing Change or adjust a large amount of starting code, so as to achieve the effect that lower coupling high cohesion, so as to it is subsequent according to business need into The extension and modification of row startup item.
S130, it is based on default logon mode and reflection mode, according to run function title and delay time, to each starting class Object carries out post registration, and according to each delay time in the delay time collection object obtained after registration, to each starting class The corresponding starting task of object is scheduled and loads.
Wherein, default logon mode can refer to the mode of registration starting class object.Illustratively, default logon mode can To be that will start class object, run function title and delay time to be registered in correspondingly collection object, so as to subsequent progress Scheduling and load;It is also possible to that each starting class object is inherited unified starting interface protocol based on run function title, with Make each starting class object run function title having the same, quickly and conveniently loads starting task so as to subsequent.Reflection side Formula can be starting class object can be called by invoke mode starting class object in function, so as to carry out post registration and Load.Delay time collection object can be pair of the set List type for storing delay time in each configuration information As.
Specifically, the present embodiment can call in starting class object based on default logon mode, and by reflection mode Post registration function carries out post registration to each starting class object.After post registration, each delay time can be stored Into delay time collection object, so as to according to the sequencing of each delay time of storage, to starting class object into Row Automatic dispatching, and it is based on reflection mode, the run function in starting class object is called, starts class pair so as to dynamically load As corresponding starting task.By being arranged certain delay time to the corresponding starting task of each starting class object, and according to The delay time of setting carries out dynamically load to starting task, all so as to avoid when starting application program while loading The case where starting task.The present embodiment starts task by load gradually in batches, and the operational efficiency of terminal can be improved, thus The starting time of level of application can be shortened, improve starting speed, and then the viewing experience of user can be promoted.
The technical solution of the present embodiment, by obtaining all configuration informations of application program, and according to each configuration information In class name and packet name dynamic creation start class object accordingly, corresponding starting task is obtained, thus adding new starting When task or deletion have starting task, it can be realized by way of adding or deleting corresponding configuration information, it is not necessary to modify Or a large amount of starting codes of adjustment, achieve the effect that lower coupling high cohesion.And based on default logon mode and reflection mode, root According in configuration information run function title and delay time, to all starting class objects carry out post registration, after being registered Delay time collection object, so as to the sequencing of all delay times stored according to delay time collection object, Automatic dispatching and dynamically load are carried out to the corresponding starting task of each starting class object, to avoid same when starting application program When the case where loading all starting tasks, to improve the starting speed of application program, and the user experience is improved.
Based on the above technical solution, Fig. 2 gives a kind of flow chart of configuration information obtaining method, referring to fig. 2, S110 in the present embodiment may comprise steps of S111-S113:
S111, the default store path according to application program create file File object, wherein default store path is used In the corresponding configuration file of each starting task of storage application program, configuration file is to be opened in advance using structured language description It moves the corresponding configuration information of task and generates.
Wherein, default store path is pre-set, and each starting task for storing application program is corresponding to match Set the path of file.File File object can refer to the object of file File type, the road saved for specified configuration file Diameter.Structured language can be but not limited to JavaScript object label JSON (JavaScript Object Notation) Language.The present embodiment can be based on configuration protocol, quickly and conveniently describe specific configuration information, and utilize structured language pair The reference format answered effectively describes protocol data.Illustratively, configuration protocol can be with is defined as:
Wherein, what packageName was indicated is packet name information;What className was indicated is class name information;delayTime What is indicated is delay time information, and unit can be ms;What initFunc was indicated is run function name information.It is above-mentioned each to match Without line feed information between confidence breath, one, which is about to above-mentioned full content, is written in configuration file, so as to subsequent progress information reading It takes.
Illustratively, after generating configuration file, title+config and suffix that configuration file can be used with startup item It is the mode of .json to be named, to avoid there are the configuration files of same file title.Such as if the title of startup item is BarrageModule, the then file name of the configuration file of the startup item are as follows: BarrageModuleConfig.json.It is ordering Name after, the configuration file of each starting task can be stored to itself starting task /app/src/assests catalogue under. After the data of all starting tasks are compiled by compiler, the configuration information of each starting task can be packaged by compiler It stores to the assests catalogue of application program master catalogue, the corresponding store path of assests catalogue under master catalogue is at this time Default store path, so as to parse all configuration informations under a catalogue, an i.e. store path, so as to It realizes that the unification of configuration file resolution path also may be implemented in the separation of configuration file, substantially increases the acquisition effect of configuration information Rate.
Specifically, the present embodiment can create a File object by based on default store path, default to obtain Each configuration information under store path.Illustratively, can by call File mFile=new File (assests), Default store path is converted into abstract path name to create a File object mFile, so as to utilize a File Object mFile describes the content stored under assests catalogue.
S112, it calls the file array in File object to obtain function, obtains configuration file array.
Wherein, file array acquisition function can be predetermined, for obtaining All Files and mesh under some catalogue The absolute path of record, what this document array obtained function return is the File array of a File type.Illustratively, number of files It can be listFiles () function that group, which obtains function,.Configuration file array can refer to by the corresponding catalogue of each configuration file Absolute path composition a File array.
It specifically, can be by calling mFile.listFiles () function in File object mFile, by default storage All configuration files under path form the configuration file array filtList of File [] array type, wherein configuration text Each element in number of packages group is the absolute path of the corresponding catalogue of a configuration file.
Each configuration file in S113, reading configuration file array, and parsed based on data corresponding with structured language Mode parses the configuration file of reading, obtains the configuration information in each configuration file.
Specifically, the present embodiment can be by successively calling File fileContent=new File (filtList [index]) mode come obtain element position be index profile information, and by the profile information of acquisition mark For fileContent.It may then pass through and call FileReader filereader=new FileReader (fileContent), fileContent is transformed into a character flow object filereade.Again by calling Buffer Filereader is transformed into one and delayed by Reader bufferReader=new BufferReader (filereader) method Rush object bufferReader;By calling the information function reading bufferReader.readLine in bufferReader () reads a line of text in bufferReader, and by data analysis mode corresponding with structured language to reading Line of text carries out parsing operation, it is hereby achieved that specific configuration information in the configuration file.Similarly, it can be parsed out configuration The corresponding configuration information of each configuration file in file array, to quickly and conveniently obtain each configuration information.
Embodiment two
Fig. 3 is a kind of flow chart using starting method based on configuration information provided by Embodiment 2 of the present invention, this reality Example is applied on the basis of the above embodiments, to " based on default logon mode and reflection mode, according to run function title and delay Time carries out post registration to each starting class object, and according to each delay in the delay time collection object obtained after registration Time is scheduled and loads to the corresponding starting task of each starting class object " it is optimized.Wherein with above-described embodiment phase Details are not described herein for the explanation of same or corresponding term.
Referring to Fig. 3, it is provided in this embodiment based on configuration information application starting method specifically includes the following steps:
S210, each configuration information for obtaining application program, wherein each configuration information includes packet name, class name, run function Title and delay time.
S220, starting class object corresponding with configuration information is determined according to packet name and class name.
S230, the first post registration function started in class object is called based on reflection mode, each starting class object is deposited Storage stores each run function title into first function name set object into the first starting class collection object, and will Each delay time stores into the first delay time collection object.
Wherein, the first post registration function is predetermined, for that will start class object, run function title and delay The function that time is registered, to obtain the first starting class collection object, first function name set object and the first delay Time collection object.First starting class collection object is the set List type for storing each starting class object name information Object.First function name set object is the set for storing the corresponding run function title of each starting class object The object of List type.First delay time collection object is the set for storing starting class object corresponding delay time The object of List type.
Illustratively, the first post registration function setDelayHandler can be with is defined as:
Public void setDelayHandler(Class class,String funcName,long delay)
Wherein, the first post registration function setDelayHandler has public permission modifier public, so that each Starting class object can call the first post registration function.SetDelayHandler tool is respectively as follows: there are three parameter is inputted The run function title funcName and long for starting class object class, character string String type of class Class type The delay time delay of long type.
Specifically, the present embodiment can be based on reflection mode, call first in starting class object by invoke mode Post registration function setDelayHandler.It, can be with after calling the first post registration function in some starting class object The starting class object is added in the first starting class collection object listClass, the starting class object is corresponding FuncName is added in first function name set object listFuncName, and the starting class object is corresponding Delay is added in the first delay time collection object listDelay, to complete the post registration behaviour of the starting class object Make.It similarly, can by calling the post registration function setDelayHandler in each starting class object based on reflection mode Each starting class object, the corresponding run function title of starting class object and delay time are added separately to the first starting class In collection object, first function name set object and the first delay time collection object, it is hereby achieved that the after registration One starting class collection object, first function name set object and the first delay time collection object.
It should be noted that the first starting class collection object, first function name set object and first in the present embodiment Element puts in order as the order of addition of element in delay time collection object, and starts class collection object, the first In one function name collection object and the first delay time collection object, the corresponding run function title of same position call number and Delay time corresponds to same starting class object.
S240, ascending order arrangement is carried out to each delay time in the first delay time collection object, by first after arrangement Delay time collection object is determined as the second delay time collection object.
Specifically, each delay time in the first delay time collection object obtained in the present embodiment may not be according to What the sequencing of delay time was arranged, to need to carry out each delay time in the first delay time collection object Ascending order arrangement, and the first delay time collection object after sequence is determined as the second delay time collection object, so as to basis Putting in order for delay time in second delay time collection object carries out dynamically load.By adjusting the first delay time collection Closing delay time in object puts in order, and the Automatic dispatching to starting object may be implemented.
It should be noted that being artificially arranged since delay time can be, so as to there are two starting class objects Identical situation of corresponding delay time, can not effectively be sorted.In view of this, each starting class object of application program It may include multiple delay times and the corresponding priority of each delay time in corresponding configuration information.It is each in sequence It when starting class object corresponding delay time, is ranked up first according to highest priority corresponding delay time, if it exists two When a starting class object corresponding delay time is identical, then it can be ranked up according to lesser priority corresponding delay time, To load starting class one by one to the corresponding starting task of object.
S250, according to the corresponding sequence adjustment information of the first delay time collection object, adjust separately the first starting class set Putting in order for element in object and first function name set object is closed, determines the second starting class collection object and second function Name set object.
Wherein, the corresponding sequence adjustment information of the first delay time collection object can refer to the first delay time set pair Second position indexNow after each delay time as in first position indexOri before aligning and arrangement.
It specifically, can be respectively to according to the sequence adjustment information of delay time in the first delay time collection object Putting in order for element adjusts accordingly in one starting class collection object and first function name set object, and will be after adjustment First starting class collection object and first function name set object be identified as the second class name collection object and the second letter Several title collection objects.The second delay time collection object, the second starting class collection object and second function in the present embodiment Element in name set object is one-to-one, and delay time is that sequence from small to large is arranged.
S260, it is put in order according to delay time in the second delay time collection object, is successively timed operation, and According to the second starting class collection object and second function name set object, determines and load the corresponding starting of starting class object and appoint Business.
Specifically, the present embodiment can be by way of calling directly timer Timer class, according to the second delay time collection The delay time in object is closed to be timed operation, and according to the corresponding class object and current of being currently up of current delay times Run function title calls the run function being currently up in class object based on reflection mode, is currently up object pair with load The starting task answered, so as to realize the Automatic dispatching and dynamically load of starting task.
The technical solution of the present embodiment, by by each starting class object, run function title and the delay of application program Time is registered to corresponding first starting class collection object, first function name set object and the first delay time collection respectively It closes in object, and ascending sort is carried out to each delay time in the first delay time collection object, obtained for the second delay time Collection object, and putting in order according to the delay time in the second delay time collection object, sequence load corresponding starting class The corresponding starting task of object, so as to realize the Automatic dispatching and dynamically load of starting class object.
Based on the above technical solution, Fig. 4 gives a kind of flow chart of starting task loading method.Referring to fig. 4, S260 in the present embodiment may comprise steps of S261-S266:
S261, be used as to current goal time and current first delay time in the second delay time collection object Time-delay element, and obtain the latter time-delay element of current delay element.
Wherein, the current goal time can be the timing for referring to timer.When loading, first delay time is corresponding It, can be directly using first delay time as the current goal time, to reach the current goal time when starting class object When, the starting class object can be loaded.Current delay element refers to a delay time in the second delay time collection object. In first time cycle period, using first delay time in the second delay time collection object as current delay element. Latter time-delay element can be to put in order according to delay time in the second delay time collection object, with current delay element Adjacent the latter delay time.If current delay element is first delay time in the first delay time collection object, Latter time-delay element is second delay time in the first delay time collection object.
Illustratively, the element variable of three integer int types: int delay1=0, int delay2=can be defined 0, int delay3=0 stores current delay element using element variable delay1, delay2 and delay3 respectively, latter prolongs Shi Yuansu and current goal time.The call number variable of an integer int type: int index=0 can also be defined, is utilized Call number variable i ndex stores the corresponding currentElement call number of current delay element.It is right in first cycle period Delay1, delay2, delay3 and index carry out assignment, i.e., by first delay in the second delay time collection object when Between be assigned to delay1 and delay3, second delay time is assigned to delay2, call number variable i ndex is assigned a value of 0.
S262, using the corresponding currentElement call number of current delay element and current goal time as function input parameters, The message in information processing objects is called to send function, after the Yu Yanchi current goal time, obtaining includes currentElement call number Delay message.
Wherein, information processing objects can be the global Handler object of one be pre-created.Disappearing in the present embodiment Breath process object can be created by private Handler mHandler, and by calling mHandler=new Handler () carrys out instantiation message process object mHandler.Message send function be it is pre-defined, can be used for send prolong The function of slow message.It is the parameter of int type that message, which sends function tool there are two parameter, first input parameter is inputted, is used for One delay message of unique identification, to distinguish different delay message.The present embodiment is corresponding current by current delay element Element index index is directly as first input parameter, i.e., as unique mark in the timer message of mHandler Symbol is known, so as to quickly and conveniently distinguish different delay message.Second input parameter is current goal time delay3, For characterizing the sending time of delay message, the i.e. timing of timer.
Current embodiment require that multiple timers are opened, so that gradually load starts object in batches.If directly passing through calling Timer class carrys out opening timing device, and performance loss is higher.In view of this, the present embodiment passes through logical for thread in Android Capable Handler class is timed the unlatching of device, so as to substantially reducing performance loss.It specifically, can be currently to prolong Shi Yuansu corresponding currentElement call number index and current goal time delay3 call Message Processing as input parameter Message in object mHandler sends function mHandler.sendMessageDelay (index, delay3), works as in delay After preceding object time delay3, the delay message that a message content is index can be obtained.
S263, obtain postpone message when, according to the second starting class collection object and second function name set object, really Determine and loads the starting task for being currently up class object corresponding with currentElement call number.
Specifically, when obtain postpone message when, show the timing for having had arrived at timer, at this time it needs to be determined that and The corresponding starting class object of load.According to the currentElement call number in the available delay message of the delay message of acquisition Index is currently up class object to can determine according to the current element index number.Due to the second delay time set pair As, the second starting class collection object and second function name set object are under identity element call number when corresponding delay Between, starting class object information and run function title belong to same starting object, so as to according to the second delay time CurrentElement call number in collection object determines that in the second starting class collection object, current delay element is corresponding and currently opens Dynamic class object, and currently prolong in second function name set object that time-delay element is corresponding to be currently up function name, from And the corresponding run function of class object is currently up with being currently up function name and can call according to class object is currently up, with Load is currently up the starting task of class object.
Whether S264, detection current delay element are the last one delay time in the second delay time collection object, If so, entering step S265;If it is not, then entering step S266.
Specifically, the present embodiment can obtain postpone message when, according to delay message in currentElement call number come Whether detection current delay element is the last one delay time in the second delay time collection object, all to determine Whether starting task, which is all loaded, finishes.If current delay element is the last one delay time, show starting using journey The equal loaded of starting task of required delay loading, can execute the operation of step S265 at this time when sequence.If current delay Element is not the last one delay time, then shows also to need to open next timer, to load next starting task, at this time The operation of step S266 can be executed, to open next timer in time.
Illustratively, the value range of the corresponding currentElement call number index of current delay element can be with are as follows: 0≤ Index≤listDelay.size () -1, wherein listDelay.size () indicates the second delay time collection object The sum of time-delay element in listDelay.
S265, application program launching terminate.
Specifically, when current delay element is the last one delay time in the second delay time collection object, table The starting task of required delay loading is according to corresponding timing cycle loaded when bright starting application program, at this time can be with Directly determining application program launching terminates.
S266, the time difference between latter time-delay element and current delay element is updated to the current goal time, and Latter time-delay element is updated to current delay element, and returns to step S262.
Specifically, when current delay element is not the last one delay time in the second delay time collection object, It needs to be determined that the timing of next timer, to load next starting object.Each starting class pair in the present embodiment As corresponding delay time is that Startup time is counted since application program, thus the timing of next timer It should be the time difference between latter time-delay element and current delay element.The present embodiment is by updating current goal time delay3 For the time difference between latter time-delay element delay2 and current delay element delay1, the timing of next timer is arranged Time, i.e. delay3=delay2-delay1.After the current goal time updates, by the latter delay member of current delay element Element is updated to current delay element, i.e. currentElement call number index is carried out from add operation index++, and updates delay1 With the data in delay2, so as to which the delay time in the second delay time collection object is successively determined as current delay Element, so as to successively load the corresponding starting task of corresponding starting class object.Prolonging the current goal time and currently After Shi Yuansu updates, by repeating step S261-S266 into next cycle period.
The present embodiment can also be timed the opening operation of device, and benefit by the Handler class passed through using thread With the mode looped through to each delay time in the second delay time collection object, when so as to according to delay Between sequencing, successively the corresponding starting object of load, reduces performance loss, operational efficiency is improved, thus further Improve the starting speed of application program.
Based on the above technical solution, S263 be may include: and be adjusted using currentElement call number as function input parameters Function is obtained with the class object in the second starting class collection object, determines that currentElement call number is corresponding and is currently up class pair As;Using currentElement call number as function input parameters, the function name in second function name set object is called to obtain letter Number, determines that currentElement call number is corresponding and is currently up function name;By reflection mode, it is to be currently up function name Function input parameters call the object loading function being currently up in class object, load corresponding with function name is currently up Starting task.
Illustratively, the present embodiment can call the second starting using currentElement call number index as function input parameters Class object in class collection object listClass obtains function listClass.get (index), and it is corresponding can to obtain index It is currently up class object, is such as currently up class object using mClass characterization.Call second function name set object Function name in listFuncName obtains function listFuncName.get (index), can obtain that index is corresponding to be worked as Preceding run function title is such as currently up function name using mFuncName characterization.To be currently up function name MFuncName is function input parameters, calls the corresponding class pair of current class name mClass as the object in mClass object Loading function mClass.invoke (mFuncName), so as to be currently up working as in class object by reflection mode calling Preceding run function mFuncName is executed and is currently up the corresponding initialization logic of function mFuncName, so as to load Corresponding starting task.
Embodiment three
Fig. 5 is a kind of flow chart using starting method based on configuration information that the embodiment of the present invention three provides, this reality Example is applied on the basis of the above embodiments, to " based on default logon mode and reflection mode, according to run function title and delay Time carries out post registration to each starting class object, and according to each delay in the delay time collection object obtained after registration Time is scheduled and loads to the corresponding starting task of each starting class object " it is optimized again.Wherein with above-described embodiment Details are not described herein for the explanation of identical or corresponding term.
Referring to Fig. 5, it is provided in this embodiment based on configuration information application starting method specifically includes the following steps:
S310, each configuration information for obtaining application program, wherein each configuration information includes packet name, class name, run function Title and delay time.
S320, starting class object corresponding with configuration information is determined according to packet name and class name.
S330, according to starting interface protocol and run function title, generate the corresponding starting protocol class pair of starting class object As.
Wherein, starting interface protocol can refer to predetermined, for carrying out the interface of starting initialization, and start It include run function predetermined in interface protocol.
Illustratively, the present embodiment can pre-define a unified starting interface protocol, and the starting interface protocol In comprising predetermined, but do not carry out the run function of function realization.For example, starting interface protocol can be with is defined as:
Public interface IStartInit{
Public void init();
}
Start the interface type that interface protocol IStartInit has public permission modifier Public, so that all startings Class object can inherit the starting interface protocol.The inside for starting interface protocol includes a run function init, to pass through Run function init starts the initialization logic of object to realize.Run function init also has public permission modifier Public improves the convenience of application program launching so as to call directly run function init.
Illustratively, S330 may include: starting class object by calling interface succession keyword, inherit starting interface association View, and the run function in starting interface protocol is made carbon copies according to run function title, obtain the corresponding starting association of starting class object Discuss class object.
Wherein, interface inheritance keyword can refer to the keyword that interface protocol succession is carried out specified in Java language. Starting agreement class object can be the class object for referring to starting interface protocol IStartInit type.
Specifically, for each starting class object, start class object by calling interface and inherit keyword The mode of implement inherits starting interface protocol IStartInit, and passes through manifolding@in starting class object The mode of Override, manifolding start the run function init in interface protocol IStartInit, and it is corresponding will to start class object Run function initialization logic starting class object manifolding function init in realized, that is, instantiate.
For the present embodiment by the way that each starting class object is inherited starting interface protocol, acquisition starts agreement class object, thus So that each starting agreement class object run function title init having the same, to solve each starting in the prior art The inconsistent problem of the corresponding run function title of task, in order to can quickly and conveniently call in starting agreement class object Run function improves the uniformity of start-up course.
S340, the second post registration function in each starting agreement class object is called based on reflection mode, each starting is assisted View class object delay time corresponding with starting agreement class object is registered in third collection object, wherein third collection object For the object of key-value pair structure type.
Wherein, the second post registration function can be for corresponding with starting agreement class object to starting agreement class object Delay time carries out the function of post registration, corresponding to start agreement class object when starting application program with delay loading Starting task.Third collection object, which can be, refers to key-value pair Map structure type, for storing each starting agreement class object With the object of corresponding delay time.Each starting agreement class object and corresponding delay time can be used as a key-value pair letter Breath, each key-value pair information can be considered as an element information in third collection object at this time.Illustratively, third set pair As mapData can be with is defined as: Map<IStartInit, Long>mapData, and third collection object is initialized Operation, specific initial method is: mapData=new HashMap<IStartInit, Long>().Wherein, third collection Closing the key information key in each key-value pair of object mapData is the starting object for starting interface protocol IStartInit type, Value information value is the delay time of Long type.
Illustratively, the second post registration function can be with is defined as:
Public void registerStart (IStartInit mIStartInit, long delay), wherein the The first input parameter of two post registration function registerStart is to start the starting association of interface protocol IStartInit type Class object mIStartInit is discussed, the second input parameter is the delay time delay of long long type.
Specifically, the present embodiment can be based on reflection mode, call second in starting class object by invoke mode Post registration function registerStart.It, can after calling the second post registration function in some starting agreement class object The starting class object and corresponding delay time as a key-value pair information, are registered to third collection object mapData In.
S350, according to each delay time in third collection object, to each starting protocol class pair in third collection object As corresponding starting task is scheduled and loads.
Specifically, the sequencing for each delay time that can be stored according to third collection object, to third set pair As each starting agreement class object progress Automatic dispatching of storage, and according to the run function in starting agreement class object to starting Task carries out dynamically load, that is, executes the initialization logic of starting task.
Illustratively, S130 may include: according to preset arrangement mode, to each delay time in third collection object into The arrangement of row ascending order, and correspondingly adjust and respectively start putting in order for agreement class object in third collection object, and will be after arrangement Third collection object be determined as the 4th collection object;To in the 4th collection object delay time and starting agreement class object into Row successively traverses, and is timed operation according to the current delay times traversed, and load current delay times are corresponding current Start the starting task of agreement class object.
Wherein, default arrangement mode can be but not limited to dichotomy arrangement mode.
Specifically, each delay time in the third collection object in the present embodiment may not be the elder generation according to delay time It is sequentially arranged afterwards, to need to rise each delay time in third collection object based on default arrangement mode Sequence arrangement.Put in order by adjusting delay time in third collection object, may be implemented to starting agreement class object from Dynamic scheduling.It is suitable in the arrangement of adjustment delay time based on starting agreement class object and the one-to-one relationship between delay time When sequence, it can correspondingly adjust and start putting in order for agreement class object in third collection object, it is adjusted each to guarantee Starting agreement class object and the corresponding relationship of delay time remain unchanged.Third collection object adjusted is determined as the 4th collection Close object.By successively being traversed to the delay time in the 4th collection object with starting agreement class object, one is gradually obtained A starting agreement class object and the starting agreement class object corresponding delay time.
The technical solution of the present embodiment, by the way that each starting class object is inherited unified starting interface protocol in advance, with Make the run function in each starting class object that the function of starting task initialization accordingly, and each starting class may be implemented Object can have identical run function title, improve the convenience and uniformity of start-up course.
Based on the above technical solution, Fig. 6 gives a kind of flow chart of starting task loading method.Referring to Fig. 6, A kind of starting task loading method that the present embodiment is related to specifically includes following steps S410-S460:
S410, when first delay time in the 4th collection object to be used as to current goal time and current delay Between, and obtain the latter delay time of current delay times.
S420, using the corresponding current call number of current delay times and current goal time as function input parameters, call Message in information processing objects sends function, after the Yu Yanchi current goal time, obtains the delay comprising current call number and disappears Breath.
S430, obtain postpone message when, call that current delay times are corresponding is currently up agreement based on reflection mode Run function in class object is currently up the corresponding starting task of agreement class object with load.
Specifically, when obtain postpone message when, show the timing for having had arrived at timer, at this time can be according to the The corresponding relationship of delay time and starting agreement class object in four collection objects, obtain that current delay times are corresponding is currently up Agreement class object, and the run function being currently up in agreement class object is called by reflection mode, association is currently up to load The corresponding starting task of class object is discussed, realizes corresponding initialization logic.Illustratively, agreement can be currently up by calling Run function mIStartInit.init () in class object mIStartInit, so that the mode based on agreement is called reality Now start the specific initialization logic of task.The present embodiment can be by uniformly calling the starting letter in starting agreement class object The mode of number mIStartInit.init (), to load the corresponding starting task of each starting agreement class object, so that opening The more convenient unification of loading procedure of dynamic task.
Whether S440, detection current delay times are the last one delay time in the 4th collection object, if so, into Enter step S450;If it is not, then entering step S460.
S450, application program launching terminate.
S460, the time difference between latter delay time and current delay times is updated to the current goal time, and Latter delay time is updated to current delay times, and returns to step S420.
The present embodiment can be timed the opening operation of device, Yi Jili by the Handler class passed through using thread With the mode looped through to each delay time in the 4th collection object, so as to successive according to delay time Sequentially, successively load is corresponding starts object, reduces performance loss, improves operational efficiency, answer to further improve With the starting speed of program.
Example IV
Fig. 7 is a kind of structural schematic diagram using starter based on configuration information that the embodiment of the present invention four provides, The device specifically includes: configuration information obtains module 510, starting class object determining module 520 and scheduling loading module 530.
Wherein, configuration information obtains module 510, for obtaining each configuration information of application program, wherein each matching confidence Breath includes packet name, class name, run function title and delay time;Start class object determining module 520, for according to packet name and class Name determines starting class object corresponding with configuration information;Loading module 530 is dispatched, for based on default logon mode and reflection side Formula carries out post registration to each starting class object, and prolong according to what is obtained after registration according to run function title and delay time Each delay time in slow time collection object, the corresponding starting task of each starting class object is scheduled and is loaded.
Optionally, configuration information obtains module 510, is specifically used for: according to the default store path of application program, creation text Part File object, wherein default store path is used to store the corresponding configuration file of each starting task of application program, configuration File is to be described the corresponding configuration information of starting task using structured language in advance and generated;Call the file in File object Array obtains function, obtains configuration file array;Each configuration file in configuration file array is read, and is based on and structuring language It says corresponding data analysis mode, the configuration file of reading is parsed, obtain the configuration information in each configuration file.
Optionally, loading module 530 is dispatched, comprising:
Post registration unit will be each for calling the first post registration function in starting class object based on reflection mode Starting class object is stored into the first starting class collection object, and each run function title is stored to first function name set pair It stores as in, and by each delay time into the first delay time collection object;Delay time sequencing unit, for first Each delay time in delay time collection object carries out ascending order arrangement, and the first delay time collection object after arrangement is determined For the second delay time collection object;Sequence adjustment unit, for according to the corresponding sequence tune of the first delay time collection object Whole information adjusts separately putting in order for element in the first starting class collection object and first function name set object, determines Second starting class collection object and second function name set object;Timing loading unit, for according to the second delay time collection Closing delay time in object puts in order, and is successively timed operation, and start class collection object and second letter according to second Several title collection objects determine and load the corresponding starting task of starting class object.
Optionally, timing loading unit is specifically used for: by first delay time in the second delay time collection object It is used as current goal time and current delay element, and obtains the latter time-delay element of current delay element;With current delay The corresponding currentElement call number of element and current goal time are function input parameters, call the message in information processing objects Function is sent, after the Yu Yanchi current goal time, obtains the delay message comprising currentElement call number;Postpone message obtaining When, according to the second starting class collection object and second function name set object, determines and load and currentElement call number pair The starting task for being currently up class object answered;Detection current delay element whether be in the second delay time collection object most The latter delay time;If so, application program launching terminates;If it is not, then by latter time-delay element and current delay element it Between time difference be updated to the current goal time, and latter time-delay element is updated to current delay element, and return to execution Using the corresponding currentElement call number of current delay element and current goal time as function input parameters, message is called to send letter Several operations.
Optionally, according to the second starting class collection object and second function name set object, determine and load with currently The corresponding starting task for being currently up class object of element index number, comprising: using currentElement call number as function input parameters, It calls the class object in the second starting class collection object to obtain function, determines that currentElement call number is corresponding and be currently up class pair As;Using currentElement call number as function input parameters, the function name in second function name set object is called to obtain letter Number, determines that currentElement call number is corresponding and is currently up function name;By reflection mode, it is to be currently up function name Function input parameters call the object loading function being currently up in class object, load corresponding with function name is currently up Starting task.
Optionally, loading module 530 is dispatched, comprising:
Start protocol class object generation unit, for generating starting class according to starting interface protocol and run function title The corresponding starting agreement class object of object;Third collection object determination unit, for calling each starting agreement based on reflection mode The second post registration function in class object infuses each starting agreement class object delay time corresponding with starting agreement class object Volume is into third collection object, wherein third collection object is the object of key-value pair structure type;Loading unit is dispatched, is used for According to each delay time in third collection object, starting corresponding to each starting agreement class object in third collection object is appointed Business is scheduled and loads.
Optionally, start protocol class object generation unit, be specifically used for: starting class object is inherited crucial by calling interface Word inherits starting interface protocol, and makes carbon copies the run function in starting interface protocol according to run function title, obtains starting class The corresponding starting agreement class object of object.
Optionally, loading unit is dispatched, comprising: the 4th collection object determines subelement, according to default arrangement mode, to the Each delay time in three collection objects carries out ascending order arrangement, and correspondingly adjusts in third collection object and respectively start protocol class Object puts in order, and the third collection object after arrangement is determined as the 4th collection object;Scheduling load subelement, is used for Delay time in 4th collection object is successively traversed with starting agreement class object, and according to the current delay traversed Time is timed operation, the corresponding starting task for being currently up agreement class object of load current delay times.
Specifically, scheduling load subelement, is specifically used for: by first delay time conduct in the 4th collection object Current goal time and current delay times, and obtain the latter delay time of current delay times;With current delay times pair The current call number answered and current goal time are function input parameters, and the message in information processing objects is called to send function, After postponing the current goal time, the delay message comprising current call number is obtained;When obtaining delay message, it is based on reflection side Formula calls the corresponding run function being currently up in agreement class object of current delay times, is currently up protocol class pair with load As corresponding starting task;Whether detection current delay times are the last one delay time in the 4th collection object;If so, Then application program launching terminates;If it is not, then the time difference between latter delay time and current delay times is updated to currently Object time, and latter delay time is updated to current delay times, and it is corresponding with current delay times to return to execution Current call number and current goal time are function input parameters, and the message in information processing objects is called to send the behaviour of function Make.
Any embodiment of that present invention can be performed in application starter based on configuration information provided by the embodiment of the present invention It is provided that starting method is applied based on configuration information, have to execute and the corresponding function of starting method is applied based on configuration information It can module and beneficial effect.
Embodiment five
The present embodiment provides a kind of computer readable storage mediums, are stored thereon with computer program, and the program is processed It is realized when device executes and starting method is applied based on configuration information such as any embodiment of that present invention.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set For each embodiment of (can be personal computer, server or the network equipment etc.) execution present invention based on configuration information Apply starting method.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiments here, be able to carry out for a person skilled in the art it is various it is apparent variation, again Adjustment and substitution are without departing from protection scope of the present invention.Therefore, although by above embodiments to the present invention carried out compared with For detailed description, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, can be with Including more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of apply starting method based on configuration information characterized by comprising
Obtain application program each configuration information, wherein each configuration information include packet name, class name, run function title and Delay time;
Starting class object corresponding with the configuration information is determined according to the packet name and the class name;
Based on default logon mode and reflection mode, according to the run function title and the delay time, described opened to each Dynamic class object carries out post registration, and according to each delay time in the delay time collection object obtained after registration, to each institute The corresponding starting task of starting class object is stated to be scheduled and load.
2. the method according to claim 1, wherein obtaining each configuration information of application program, comprising:
According to the default store path of the application program, file File object is created, wherein the default store path is used for The corresponding configuration file of each starting task of the application program is stored, the configuration file is in advance using structured language It describes the corresponding configuration information of the starting task and generates;
It calls the file array in the File object to obtain function, obtains configuration file array;
Each configuration file in the configuration file array is read, and is based on data parsing side corresponding with the structured language Formula parses the configuration file of reading, obtains the configuration information in each configuration file.
3. the method according to claim 1, wherein based on default logon mode and reflection mode, according to described Run function title and the delay time carry out post registration to each starting class object, and according to obtaining after registration Each delay time in delay time collection object is scheduled and adds to the corresponding starting task of each starting class object It carries, comprising:
The first post registration function in the starting class object is called based on reflection mode, each starting class object is stored Into the first starting class collection object, each run function title is stored into first function name set object, and Each delay time is stored into the first delay time collection object;
Ascending order arrangement is carried out to each delay time in the first delay time collection object, when first after arrangement is postponed Between collection object be determined as the second delay time collection object;
According to the corresponding sequence adjustment information of the first delay time collection object, the first starting class set is adjusted separately Element puts in order in object and the first function name set object, determines the second starting class collection object and the second letter Several title collection objects;
It is put in order according to delay time in the second delay time collection object, is successively timed operation, and according to The second starting class collection object and the second function name set object, determination simultaneously load the starting class object correspondence Starting task.
4. according to the method described in claim 3, it is characterized in that, when according to postponing in the second delay time collection object Between put in order, be successively timed operation, and according to the second starting class collection object and the second function title Collection object determines and loads the corresponding starting task of the starting class object, comprising:
It regard first delay time in the second delay time collection object as current goal time and current delay Element, and obtain the latter time-delay element of current delay element;
Using the corresponding currentElement call number of current delay element and current goal time as function input parameters, call at message The message managed in object sends function, after the Yu Yanchi current goal time, obtains the delay message comprising currentElement call number;
When obtaining the delay message, according to the second starting class collection object and the second function name set pair As determining and loading the starting task for being currently up class object corresponding with currentElement call number;
Detect whether the current delay element is the last one delay time in the second delay time collection object;
If so, the application program launching terminates;
If it is not, the time difference between latter time-delay element and current delay element is then updated to the current goal time, and will Latter time-delay element is updated to current delay element, and it is described with the corresponding currentElement index of current delay element to return to execution Number and the current goal time be function input parameters, call message send function operation.
5. according to the method described in claim 4, it is characterized in that, according to the second starting class collection object and described second Function name collection object determines and loads the starting task for being currently up class object corresponding with currentElement call number, wraps It includes:
Using the currentElement call number as function input parameters, the class object in the second starting class collection object is called to obtain Function is taken, determines that currentElement call number is corresponding and is currently up class object;
Using the currentElement call number as function input parameters, the function name in the second function name set object is called Claim to obtain function, determines that currentElement call number is corresponding and be currently up function name;
Class object is currently up described in calling using the function name that is currently up as function input parameters by reflection mode In object loading function, load is currently up the corresponding starting task of function name with described.
6. the method according to claim 1, wherein based on default logon mode and reflection mode, according to described Run function title and the delay time carry out post registration to each starting class object, and according to obtaining after registration Each delay time in delay time collection object is scheduled and adds to the corresponding starting task of each starting class object It carries, comprising:
According to starting interface protocol and the run function title, the corresponding starting protocol class pair of the starting class object is generated As;
The second post registration function in each starting agreement class object is called based on reflection mode, by each starting agreement The class object delay time corresponding with the starting agreement class object is registered in third collection object, wherein described Three collection objects are the object of key-value pair structure type;
According to each delay time in the third collection object, each starting in the third collection object is assisted The corresponding starting task of view class object is scheduled and loads.
7. according to the method described in claim 6, it is characterized in that, according to the starting interface protocol and run function title, Generate the corresponding starting agreement class object of the starting class object, comprising:
The starting class object inherits keyword by calling interface, inherits the starting interface protocol, and according to the starting Function name makes carbon copies the run function in the starting interface protocol, obtains the corresponding starting agreement class object of starting class object.
8. according to the method described in claim 6, it is characterized in that, when according to each delay in the third collection object Between, the corresponding starting task of each starting agreement class object in the third collection object is scheduled and is loaded, is wrapped It includes:
According to default arrangement mode, ascending order arrangement, Yi Jixiang are carried out to each delay time in the third collection object It adjusts each starting agreement class object in the third collection object with answering put in order, and by third set after arrangement Object is determined as the 4th collection object;
To in the 4th collection object delay time and starting agreement class object successively traversed, and according to traversing Current delay times are timed operation, load the corresponding starting for being currently up agreement class object of the current delay times and appoint Business.
9. according to the method described in claim 8, it is characterized in that, in the 4th collection object delay time and starting Agreement class object is successively traversed, and is timed operation according to the current delay times traversed, and load is described currently to prolong The corresponding starting task for being currently up agreement class object of slow time, comprising:
It regard first delay time in the 4th collection object as current goal time and current delay times, and obtains Obtain the latter delay time of current delay times;
Using the corresponding current call number of current delay times and current goal time as function input parameters, Message Processing pair is called Message as in sends function, after the Yu Yanchi current goal time, obtains the delay message comprising current call number;
When obtaining the delay message, call that current delay times are corresponding is currently up agreement class object based on reflection mode In run function, with load be currently up the corresponding starting task of agreement class object;
Detect whether the current delay times are the last one delay time in the 4th collection object;
If so, the application program launching terminates;
If it is not, the time difference between latter delay time and current delay times is then updated to the current goal time, and will Latter delay time is updated to current delay times, and return execution it is described with the corresponding current call number of current delay times and The current goal time is function input parameters, and the message in information processing objects is called to send the operation of function.
10. a kind of application starter based on configuration information characterized by comprising
Configuration information obtains module, for obtaining each configuration information of application program, wherein each configuration information includes packet Name, class name, run function title and delay time;
Start class object determining module, for determining starting corresponding with the configuration information according to the packet name and the class name Class object;
Loading module is dispatched, for based on default logon mode and reflection mode, according to the run function title and described is prolonged The slow time carries out post registration to each starting class object, and according in the delay time collection object obtained after registration Each delay time is scheduled and loads to the corresponding starting task of each starting class object.
CN201910069609.7A 2019-01-24 2019-01-24 Application starting method and device based on configuration information Active CN109783159B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910069609.7A CN109783159B (en) 2019-01-24 2019-01-24 Application starting method and device based on configuration information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910069609.7A CN109783159B (en) 2019-01-24 2019-01-24 Application starting method and device based on configuration information

Publications (2)

Publication Number Publication Date
CN109783159A true CN109783159A (en) 2019-05-21
CN109783159B CN109783159B (en) 2022-03-29

Family

ID=66501259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910069609.7A Active CN109783159B (en) 2019-01-24 2019-01-24 Application starting method and device based on configuration information

Country Status (1)

Country Link
CN (1) CN109783159B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021008356A1 (en) * 2019-07-12 2021-01-21 平安科技(深圳)有限公司 Multi-model door controller switching control method and apparatus, electronic device, and storage medium
CN112817657A (en) * 2021-01-29 2021-05-18 北京奇艺世纪科技有限公司 Application program starting item loading method, device and system and storage medium
CN114090121A (en) * 2021-11-17 2022-02-25 西安闻泰信息技术有限公司 Application program control method and device, storage medium and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110167364A1 (en) * 2010-01-05 2011-07-07 Nokia Corporation Methods and apparatuses for improving application startup
CN102707973A (en) * 2012-05-04 2012-10-03 惠州Tcl移动通信有限公司 Application program starting method based on Android system and system
US20140143791A1 (en) * 2012-11-19 2014-05-22 Qualcomm Innovation Center, Inc. System, method, and apparatus for improving application-launch latencies
US20140289748A1 (en) * 2013-03-19 2014-09-25 Stmicroelectronics Asia Pacific Pte Ltd Launching multiple applications in a processor
CN104216738A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Operation method and operation device of application program
US20150160951A1 (en) * 2013-12-06 2015-06-11 Board Of Regents Of The University Of Texas System Remote launch of application on mobile device
US20170115994A1 (en) * 2015-10-27 2017-04-27 Blackberry Limited Launching an application
CN107133065A (en) * 2017-03-31 2017-09-05 北京奇艺世纪科技有限公司 A kind of method and device for opening software function
CN108228367A (en) * 2017-12-29 2018-06-29 北京安云世纪科技有限公司 A kind of method, system and mobile terminal for based on hierarchical broadcast start control
CN108829469A (en) * 2018-04-18 2018-11-16 北京奇艺世纪科技有限公司 A kind of application program page methods of exhibiting and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110167364A1 (en) * 2010-01-05 2011-07-07 Nokia Corporation Methods and apparatuses for improving application startup
CN102707973A (en) * 2012-05-04 2012-10-03 惠州Tcl移动通信有限公司 Application program starting method based on Android system and system
US20140143791A1 (en) * 2012-11-19 2014-05-22 Qualcomm Innovation Center, Inc. System, method, and apparatus for improving application-launch latencies
US20140289748A1 (en) * 2013-03-19 2014-09-25 Stmicroelectronics Asia Pacific Pte Ltd Launching multiple applications in a processor
US20150160951A1 (en) * 2013-12-06 2015-06-11 Board Of Regents Of The University Of Texas System Remote launch of application on mobile device
CN104216738A (en) * 2014-08-20 2014-12-17 北京奇艺世纪科技有限公司 Operation method and operation device of application program
US20170115994A1 (en) * 2015-10-27 2017-04-27 Blackberry Limited Launching an application
CN107133065A (en) * 2017-03-31 2017-09-05 北京奇艺世纪科技有限公司 A kind of method and device for opening software function
CN108228367A (en) * 2017-12-29 2018-06-29 北京安云世纪科技有限公司 A kind of method, system and mobile terminal for based on hierarchical broadcast start control
CN108829469A (en) * 2018-04-18 2018-11-16 北京奇艺世纪科技有限公司 A kind of application program page methods of exhibiting and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021008356A1 (en) * 2019-07-12 2021-01-21 平安科技(深圳)有限公司 Multi-model door controller switching control method and apparatus, electronic device, and storage medium
CN112817657A (en) * 2021-01-29 2021-05-18 北京奇艺世纪科技有限公司 Application program starting item loading method, device and system and storage medium
CN114090121A (en) * 2021-11-17 2022-02-25 西安闻泰信息技术有限公司 Application program control method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109783159B (en) 2022-03-29

Similar Documents

Publication Publication Date Title
US11016673B2 (en) Optimizing serverless computing using a distributed computing framework
US9239705B2 (en) Method and apparatus for customized software development kit (SDK) generation
CN108304201B (en) Object updating method, device and equipment
CA2915620C (en) Method and apparatus for code virtualization and remote process call generation
US20050091269A1 (en) System and method for preference application installation and execution
CN110221901A (en) Container asset creation method, apparatus, equipment and computer readable storage medium
EP1581854A2 (en) Personalized folders
WO2005045668A1 (en) System and method for extending application preference classes
CN109783159A (en) Application starting method and apparatus based on configuration information
CN110147281A (en) Optimize method, apparatus, the electronic equipment that snowflake algorithm is applied in financial business
CN110781180A (en) Data screening method and data screening device
CN111737697A (en) Safety scanning system and scanning method based on atomization function
CN112417336B (en) Page display method and device, electronic equipment and storage medium
US20100218202A1 (en) Method and Apparatus for Case-Based Service Composition
CN115269040B (en) Tenant business application expanding method, device and system
CN112817782B (en) Data acquisition reporting method and device, electronic equipment and storage medium
CN109739579A (en) Application starting method, apparatus and storage medium based on feedback protocols
CN109753321A (en) Application starting method, apparatus, terminal and storage medium based on protocol registration
CN109621406A (en) A kind of generation method and device of configuration file
CN114282541A (en) Live broadcast platform information security detection method and device, equipment, medium and product thereof
CN116263717A (en) Order service processing method and device based on event
US20040139184A1 (en) Autonomic context-dependent computer management
US11017032B1 (en) Document recovery utilizing serialized data
US20220391388A1 (en) Automatic replacement of command parameters during command history searching
CN105429733A (en) Information scheduling sending method and information scheduling sending device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant