CN107179943A - A kind of device for allocating resources and resource allocation method - Google Patents

A kind of device for allocating resources and resource allocation method Download PDF

Info

Publication number
CN107179943A
CN107179943A CN201610134153.4A CN201610134153A CN107179943A CN 107179943 A CN107179943 A CN 107179943A CN 201610134153 A CN201610134153 A CN 201610134153A CN 107179943 A CN107179943 A CN 107179943A
Authority
CN
China
Prior art keywords
resource
items
resource items
server
bag
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
Application number
CN201610134153.4A
Other languages
Chinese (zh)
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.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Youshi Network Technology 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 Guangzhou Youshi Network Technology Co Ltd filed Critical Guangzhou Youshi Network Technology Co Ltd
Priority to CN201610134153.4A priority Critical patent/CN107179943A/en
Publication of CN107179943A publication Critical patent/CN107179943A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present invention provides the device for allocating resources and resource allocation method that a kind of resource items to application program are modified.During the individual attribute of the layout of the page, the pattern of individual views or some view, related resource plug bag is obtained from server end in application program to be changed for the embodiment of the present invention, the i.e. executable corresponding replacement after loading.Device for allocating resources and resource allocation method provided in an embodiment of the present invention are without repeating modification code, need not issue redaction and need not increase the resource file of client installation kit, you can the resource to application program is modified, and effectively reduces development cost.

Description

A kind of device for allocating resources and resource allocation method
Technical field
The present invention relates to data processing field, in particular to a kind of resource distribution Device and resource allocation method.
Background technology
At present, in Android client, if to change the cloth of the page in application program Office, the individual attribute of the pattern of individual views or some view, application program are opened Originator needs to issue new client release, could realize, if to change line adjustment of the printing plate This visual effect, developer can only be by way of sending out redaction or Dynamical Deployment Modify.Adopt in manner just described, the split originator of modification cost of resource and user All than larger, and efficiency comparison is low;Content if necessary to modification is more, shared Resource file it is bigger, and then cause the file size of client installation kit larger, Influence Consumer's Experience.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of resource distribution dress Put and resource allocation method.
A kind of device for allocating resources provided in an embodiment of the present invention, is serviced applied to one The client of device communication connection, the device for allocating resources includes:
Resource obtains module, for obtaining the money including needing to change from the server The resource plug bag of source item;
Resource load-on module, for being loaded to the resource plug bag, obtains institute State the resource items in resource plug bag;
Resource items searching modul, for the operation according to the configuration resource items currently performed Search whether there are resource items corresponding with the operation in the resource items of acquisition;
Resource changes module, for completing what is currently performed using the resource items found Configure the operation of resource items.
Preferably, the device for allocating resources also includes request sending module,
Request sending module, under being sent according to default strategy to the server The solicited message of resource plug bag is carried, so that the server is according to the solicited message Down distributing resource plug-in unit bag is to the client.
Preferably, the default strategy includes at least one of following three kinds of modes:
The request sending module is sent according to default time interval to the server The solicited message;
The request sending module sends institute in application program launching to the server State solicited message;
The request sending module the resource items searching modul do not find with currently During the corresponding resource items of operation of the configuration resource items of execution, sent to the server The solicited message.
Preferably, the device for allocating resources also includes control instruction receiving module,
Control instruction receiving module, for receiving that the server sends to the money Resource items in the plug-in unit bag of source carry out the control instruction of configuration control;
The resource items searching modul receives described in the control instruction receiving module After control instruction, according to currently perform configuration resource items operation acquisition resource Search whether there are resource items corresponding with the operation in.
Preferably, when the resource items searching modul find it is multiple with currently performing When configuring the corresponding resource items of operation of resource items, the resource changes module according to institute The content for stating control instruction completes what is currently performed using the corresponding resource items found Configure the operation of resource items.
Preferably, the resource load-on module is used to set the resource to insert by generation The mode of the explorer of resource items in part bag is loaded to resource plug bag.
Preferably, the operation of the configuration resource items currently performed is included to view Rendering operations,
The resource items searching modul according to current view to be rendered acquisition resource Search whether exist and corresponding resource items in;
The resource change module is completed to current to be rendered using the resource items found View Rendering operations.
A kind of resource allocation method provided in an embodiment of the present invention, is serviced applied to one The client of device communication connection, the resource allocation method includes:
The resource plug bag of the resource items including needing to change is obtained from the server;
The resource plug bag is loaded, the money in the resource plug bag is obtained Source item;
Searched according to the operation of the configuration resource items currently performed in the resource items of acquisition With the presence or absence of resource items corresponding with the operation;
The operation for the configuration resource items for completing currently to perform using the resource items found.
Preferably, the resource allocation method also includes:
The request for downloading resource plug bag is sent to the server according to default strategy Information, so that the server is according to the solicited message down distributing resource plug-in unit bag to institute State client.
Preferably, the default strategy includes at least one of following three kinds of modes:
According to default time interval the solicited message is sent to the server;
In application program launching the solicited message is sent to the server;
The corresponding resource items of operation of the configuration resource items with currently performing are not being found When, send the solicited message to the server.
Preferably, the resource allocation method also includes:
Receive being carried out to the resource items in the resource plug bag for the server transmission Configure the control instruction of control;
After the control instruction is received, the configuration that the basis is currently performed is performed The operation of resource items is searched whether in the resource items of acquisition in the presence of corresponding with the operation The step of resource.
Preferably, when the operations pair for finding configuration resource items that are multiple and currently performing During the resource items answered, found according to the content of the control instruction using corresponding Resource items complete the operation of the configuration resource items currently performed.
Preferably, by generating the resource items being used to set in the resource plug bag The mode of explorer is loaded to resource plug bag.
Preferably, the operation of the configuration resource items currently performed is included to view Rendering operations, methods described includes:
According to current view to be rendered search whether to exist in the resource items of acquisition with Corresponding resource items;
Complete to render behaviour to current view to be rendered using the resource items found Make.
Compared with prior art, device for allocating resources and resource allocation method of the invention, In application program to be changed the layout of the page, the pattern of individual views or some regard During the individual attribute of figure, it is only necessary to related resource plug bag is obtained from server end, The i.e. executable corresponding replacement after loading, without repeating modification code and hair Cloth redaction can meet the demand that user modifies to the resource of application program, together When also effectively reduce development cost.
To enable the above objects, features and advantages of the present invention to become apparent, Preferred embodiment cited below particularly, and coordinate appended accompanying drawing, it is described in detail below.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to reality The accompanying drawing used required for applying in example is briefly described, it will be appreciated that the following drawings Certain embodiments of the present invention is illustrate only, therefore is not construed as the limit to scope It is fixed, for those of ordinary skill in the art, before creative work is not paid Put, other related accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 interacts for the server that present pre-ferred embodiments are provided with client Schematic diagram.
The square frame for the client shown in Fig. 1 that Fig. 2 provides for present pre-ferred embodiments Figure.
The resource for the client shown in Fig. 2 that Fig. 3 provides for present pre-ferred embodiments The functional block diagram of configuration device.
Fig. 4 matches somebody with somebody for the resource being applied to shown in Fig. 3 that present pre-ferred embodiments are provided Put the flow chart of the resource allocation method of device.
Main element symbol description
Embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, to the skill in the embodiment of the present invention Art scheme is clearly and completely described, it is clear that described embodiment is only A part of embodiment of the present invention, rather than whole embodiments.Usual accompanying drawing here Described and illustrated in the embodiment of the present invention component can with it is a variety of configuration come Arrangement and design.Therefore, below to the embodiments of the invention that provide in the accompanying drawings It is described in detail and is not intended to limit the scope of claimed invention, but only table Show the selected embodiment of the present invention.Based on embodiments of the invention, people in the art The every other embodiment that member is obtained on the premise of creative work is not made, Belong to the scope of protection of the invention.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, Therefore, once being defined in a certain Xiang Yi accompanying drawing, then in subsequent accompanying drawing not Need that it is further defined and explained.Meanwhile, in the description of the invention, Term " first ", " second " etc. be only used for distinguish description, and it is not intended that indicate or Imply relative importance.
As shown in figure 1, being the server 100 and visitor that present pre-ferred embodiments are provided The schematic diagram that family end 200 is interacted.The server 100 passes through network and one Or multiple client 200 is communicatively coupled, to enter row data communication or interaction.Institute At least one application journey for being applied to various operating systems can be provided by stating server 100 The installation kit of sequence (Application, APP) is downloaded for the client 200.It is described , can be by described after client 200 is by server 100 described in the network access Network downloads the application of the operating system suitable for the client 200 from server 100 The installation kit of program, the application program is installed in the client 200. In the present embodiment, the client 200 is provided with what is downloaded from the server 100 Suitable for the application program of the operating system of the client 200.The client 200 After the application program is installed, the client 200 can be from the server 100 obtain the plug-in unit bag about the application program.
The server 100 may be, but not limited to, network (Web) server, Ftp (file transfer protocol, FTP) server, database service Device etc..The client 200 may be, but not limited to, smart mobile phone, flat board electricity Brain, Intelligent worn device etc..The operating system of the client 200 can be, but It is not limited to, Android (Android) system, IOS systems, Windows Phone systems System etc..Preferably, in the present embodiment, the operating system of the client 200 is peace Tall and erect system.
As shown in Fig. 2 being the client shown in Fig. 1 of present pre-ferred embodiments offer The block diagram at end 200.The client 200 includes device for allocating resources 10, storage Device 20 and processor 30.
The memory 20 and processor 30 are directly or indirectly electrical each other Connection, to realize the transmission or interaction of data.For example, one can be passed through each other Or a plurality of communication bus or signal wire are realized and are electrically connected with.
Wherein, memory 20 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Its In, memory 20 is used for storage program, and the processor 30 refers to receiving execution After order, described program is performed.
Shown processor 30 is probably a kind of IC chip, the processing with signal Ability.Above-mentioned processor 30 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), application specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or Other PLDs, discrete gate or transistor logic, discrete hardware Component.It can realize or perform disclosed each method, the step in the embodiment of the present invention Rapid and logic diagram.General processor can be microprocessor or the processor 30 It can be any conventional processor etc..
The device for allocating resources 10 includes at least one or more can be with software or solid The form of part (firmware) is stored in the memory 20 or is solidificated in the visitor Software function mould in the operating system (operating system, OS) at family end 200 Block.The processor 30 is used to perform the executable module stored in memory 20, Software function module or computer program that such as described device for allocating resources 10 includes. In the present embodiment, the client 200 is provided with from the server 100 and downloaded The operating system suitable for the client 200 application program, the operation system Unite as Android system.The device for allocating resources 10 can be mounted to client 200 A single application program, or from server 100 download install application A part (such as One function module) for program.
Referring to Fig. 3, the client shown in the Fig. 2 provided for present pre-ferred embodiments The functional block diagram of the device for allocating resources 10 at end 200.The device for allocating resources 10, which include resource, obtains module 101, resource load-on module 102, resource items lookup mould Block 103, resource change module 104, request sending module 105 and control instruction connect Receive module 106.
Resource obtains module 101, for being obtained from the server 100 including needs The resource plug bag of the resource items of change.
(for example change page in application program when the resource of client 200 needs change The individual attribute of the layout in face, the pattern of individual views or some view), server 100 can actively issue the resource plug bag of the resource items including change in need.Wherein, It is the object for needing to change that the resource items are corresponding, for example, it may be picture, regarding Frequently, various types of files such as audio, word.The resource items are in server 100 In be packaged after, in the form of plug-in unit bag carry out be handed down to client 200.Resource Plug-in unit bag can be uploaded by the terminal device being connected with server 100, can also be in clothes Direct-on-line generation on business device 100.
Resource load-on module 102, for being loaded to the resource plug bag, is obtained Take the resource items in the resource plug bag.
Client 200 obtains resource plug bag from server 100, is decompressed first And be stored under default store path.In this way, the resource load-on module 102 can The resource plug bag is loaded by the default store path, money therein is obtained Source item.In the present embodiment, the resource load-on module 102 is used to set by generation The mode of explorer of resource items in the resource plug bag is put to resource plug Bag is loaded., will not be right because resource plug bag is present in the form of plug-in unit Application program installed in client 200 is impacted, and application program can pass through The explorer of generation uses the resource items in resource plug bag.When there is new resource Item is by resource plug bag when being issued to client 200, it is not necessary in client 200 Corresponding application program is reinstalled, can be to resource by the explorer of generation Resource items in plug-in unit bag are configured.
Resource items searching modul 103, for according to the configuration resource items currently performed Operation searches whether there are resource items corresponding with the operation in the resource items of acquisition.
Specifically, it is installed on the application program of client 200 operationally, including it is big The operation of the configuration resource items of amount, it may for example comprise to rendering, to animation for view Play etc..Each operation has corresponding resource items to be configured upon execution.Adding Carry resource plug bag to obtain after resource items therein, provided according to the configuration currently performed The operation of source item searches whether there is money corresponding with the operation in the resource items of acquisition Source item.If it is present illustrate that the corresponding resource items of the operation need replacing, if It is not present, then explanation need not be changed.
Resource changes module 104, for completing currently to hold using the resource items found The operation of capable configuration resource items.
For the resource items for needing to change, current perform is completed with the resource items found Configuration resource items operation, realize the replacing of resource items.In the operation of application program During, client 200 sends solicited message and receives the operation of resource plug bag all Influence will not be produced in itself on application program.And in the resource plug bag newly obtained Resource items can be loaded immediately, and the behaviour of the configuration resource items performed in client 200 Change is realized when making.For example, when being rendered to some view, using resource plug Picture file in bag, instead of original picture file for rendering, to be rendered View rendered.
By taking Android system as an example, client 200 obtain and be loaded with resource plug bag it Afterwards, it is not necessary to re-launching applications, it is only necessary to restart current Activity, you can real The change of existing resource items.Wherein, the Activity is most base in Android components This four big components (including Activity, Service, Content Provider, One of Broadcast Receiver).The resource of correspondence Android system, is either preserved Resources under assets catalogues, the resource being also stored under res catalogues all may be used To be changed.The resource items in resource plug bag are loaded, not by original money Source is covered, but the method for using the configuration resource items of Android system itself, During the operation of the configuration resource items of execution, the resource items in resource plug bag are regard as quilt The object of configuration.
Request sending module 105, for according to default tactful to the server 100 The solicited message for downloading resource plug bag is sent, so that the server 100 is according to institute Solicited message down distributing resource plug-in unit bag is stated to the client 200.
Server 100 is inserted except active to the down distributing resource of client 200 being attached thereto Beyond part bag, the solicited message that can be also sent according to client 200 is fed back, right That answers issues corresponding resource plug bag.
In the present embodiment, client 200 sends the default strategy of solicited message and included At least one of three kinds of modes below:
The request sending module 105 is according to default time interval to the server 100 send the solicited message;
The request sending module 105 is in application program launching to the server 100 send the solicited message;And
The request sending module 105 is not searched in the resource items searching modul 103 During to corresponding resource items of operation with the configuration resource items currently performed, to the clothes Business device 100 sends the solicited message.
The request sending module 105 sends solicited message according to default time interval In the way of asking resource plug bag, it can timely obtain newborn in server 100 Into resource plug bag.And the solicited message is sent in application program launching, can To ensure that application program can configure newest resource items after opening.In addition, described Resource items searching modul 103 does not find the operation of the configuration resource items with currently performing The solicited message is sent during corresponding resource items, can be to not loading or loading mistake The resource items lost are effectively supplemented.
By the sending method of above-mentioned several solicited messages, client 200 can be fast Speed, the resource plug bag for obtaining server 100 in time, and carry out corresponding resource Configuration.
In the present embodiment, solicited message can be directed to some specific resource plug Bag makes requests on or asked the resource plug bag being currently newly generated.Service Device 100 is received after solicited message, according to the content of solicited message to send solicited message Client 200 send corresponding resource plug bag.Server 100 can also be to hair The state of the client 200 of solicited message is sent to be judged, if warp-wise client End 200 issued the corresponding resource plug bag of solicited message, then can not feed back, Or the information of feedback repetitive requests.
Control instruction receiving module 106, sends for receiving the server 100 Resource items in the resource plug bag are carried out with the control instruction of configuration control.
The resource items searching modul 103 connects in the control instruction receiving module 106 Receive after the control instruction, obtained according to the operation of the configuration resource items currently performed Search whether there are resource items corresponding with the operation in the resource items taken.
In some specific cases, after loading resource plug bag, client 200 is simultaneously Do not perform the operation of resource change at once, but waiting for server 100 is sent further Control instruction, according to the content of control instruction carry out resource change.
The control instruction that server 100 is sent can indicate that client 200 is opened at once Begin to carry out the instruction of the operation of resource change or include instruction client 200 Perform the time and perform object relevant information instruction.
Client 200 performs corresponding operation according to the content of the control instruction received. Being searched according to the operation of configuration resource items currently performed in the resource items of acquisition and During the corresponding resource items of the operation, it is possible that finding multiple with currently performing Configure the situation of the corresponding resource items of operation of resource items.Now, client 200 According to the relevant information for performing time and the object performed in control instruction, correspondence is used The resource items that find complete the operations of the configuration resource items currently performed.By connecing Control instruction is received, the operation that client 200 is changed to resource is more flexible.
To sum up, device for allocating resources 10 provided in an embodiment of the present invention can cause client End 200 can be to applying journey by loading the resource plug bag obtained from server 100 The resource of sequence is modified, without reinstalling client installation kit, while effectively drop The low development cost of developer.
Referring to Fig. 4, be present pre-ferred embodiments provide be applied to Fig. 3 shown in Device for allocating resources 10 resource allocation method flow chart.Face will be to shown in Fig. 4 Idiographic flow be described in detail.
Step S401, solicited message is sent to server 100.
Client 200 sends the solicited message for downloading resource plug bag to server 100, Sending the strategy of solicited message includes at least one of following three kinds of modes:
The request is sent according to default time interval to the server 100 to believe Breath;In application program launching the solicited message is sent to the server 100; When not finding the corresponding resource items of operation with the configuration resource items currently performed, The solicited message is sent to the server 100.
By to server 100 send solicited message so that server 100 according to please Ask information to make feedback, and then issue corresponding resource plug bag.
Step S402, the resource items including needing to change are obtained from the server 100 Resource plug bag.
After the down distributing resource plug-in unit bag of server 100, client 200 receives the resource Plug-in unit bag is simultaneously preserved.
Step S403, is loaded to the resource plug bag, is obtained the resource and is inserted Resource items in part bag.
In the present embodiment, the resource load-on module 102 is used to set by generation The mode of the explorer of resource items in the resource plug bag is to resource plug bag Loaded.After loading successfully, the explorer generated can be to resource plug Resource items in bag are configured.
Step S404, receive that the server 100 sends to the resource plug bag In resource items carry out configuration control control instruction.
Load after resource plug bag, client 200 is not to perform resource change at once Operation, but waiting for server 100 sends further control instruction, according to control The content of system instruction carries out resource change.The control instruction that server 100 is sent can be with It is to indicate that client 200 proceeds by the instruction of the operation of resource change at once, also may be used Be include indicate client 200 the execution time and perform object it is related believe The instruction of breath.
Step S405, according to currently perform configuration resource items operation acquisition money Search whether there are resource items corresponding with the operation in source item, if it is, performing Step S406, if it is not, then performing step S401.
If there is the corresponding resource items of operation of the configuration resource items with currently performing, Then illustrate that the corresponding resource items of the operation need replacing.If it does not exist, then explanation is needed The resource items to be changed are not loaded successfully, it is necessary to send request letter to server 100 Breath, it is desirable to load the resource plug bag where the resource items.
Step S406, the configuration resource for completing currently to perform using the resource items found The operation of item.
For the resource items for needing to change, current perform is completed with the resource items found Configuration resource items operation, realize the replacing of resource items.
In the present embodiment, if finding multiple and configuration resource items that are currently performing The corresponding resource items of operation.Execution time of the client 200 in control instruction With the relevant information of the object of execution, complete to work as using the corresponding resource items found The operation of the configuration resource items of preceding execution.By receiving control instruction, client 200 The operation changed to resource is more flexible.
The resource allocation method provided below by a specific example the present invention enters Row is further described in detail.
For example, client 200 be provided with from server 100 download application program (such as Browser), device for allocating resources 10 can be mounted to client 200 (such as intelligence Mobile phone) browser part of functions module.When server 100 has clear for this Look at device resource plug bag generation when, server 100 can actively it is clear to this is provided with The client 200 of device of looking at issues the resource plug bag.Either server 100 is received After the solicited message that some client 200 is sent, to the client for sending the solicited message End 200 issues the resource plug bag.The Spring Festival arrives, and many application programs can be all in the spring Its interactive interface is carried out during section to change skin, becomes the style for having red-letter day to celebrate atmosphere, It is accomplished by carrying out audio of view, animation or broadcasting for showing on interactive interface etc. Adjustment.Now, server 100 issue a picture for including red-letter day style and The resource plug bag of other kinds resource items.Client 200 is obtained at server 100 Resource plug bag is obtained, resource plug bag is stored under predetermined directory, and to the resource Plug-in unit bag is loaded.Then it is that generation one can set money by taking Android system as an example The explorer of each resource items in the plug-in unit bag of source.In order to ensure that browser can be Festive occasion in the Spring Festival, which normally completes, changes skin, and resource plug bag may be when being also less than in the Spring Festival Just issue in advance.Client 200 is loaded after the resource plug bag, is not stood Carve to perform and change the operation of skin, but the control instruction that waiting for server 100 is sent, clothes The control instruction that business device 100 is sent to client 200 includes both sides information, one Side is to perform the time for changing skin operation, is on the other hand the object for changing skin.In order to ensure The variation of operation interface, the resource plug bag that server 100 is issued includes correspondence The resource items of many set different skins.Control instruction can indicate client 200 at which The individual time carries out changing skin using which set skin.Come interim when the Spring Festival, client 200 According to the instruction of control instruction, corresponding hold is selected from the resource items of resource plug bag Row changes skin operation.During execution, some clients 200 may be due to some Other factors cause the resource items indicated by some control instruction not load success, this When the client 200 to server 100 send download resource plug bag solicited message, Server 100 is again to the down distributing resource plug-in unit bag of client 200, to complete to change skin Operation.Simultaneously as the resource items that loading resource plug bag is obtained do not cover original The resource items come in the file of client 200.After the Spring Festival, client 200 can be with Under the control for the control command that server 100 is sent, institute was replaced by before the Spring Festival once The skin used.
In summary, device for allocating resources and resource allocation method of the invention, Change the layout of the page in application program, the pattern of individual views or some view During individual attribute, it is only necessary to related resource plug bag is obtained from server end, pass through I.e. executable corresponding replacement after loading.Without repeating modification code, version need not be sent out Originally under conditions of the resource file that client installation kit, need not be increased, correspondence is met Enter the demand that Mobile state is changed with the resource of program, while also effectively reducing developer Development cost.
In several embodiments provided herein, it should be understood that disclosed Apparatus and method, can also be realized by another way.Device described above Embodiment is only schematical, for example, the flow chart and block diagram in accompanying drawing are shown According to the device of multiple embodiments of the present invention, method and computer program product can Architectural framework, function and the operation that can be realized.At this point, in flow chart or block diagram Each square frame can represent a part for a module, program segment or code, it is described A part for module, program segment or code is comprising one or more defined for realizing The executable instruction of logic function.It should also be noted that in some realizations as replacement In mode, the function of being marked in square frame can also be with different from being marked in accompanying drawing Order occurs.For example, two continuous square frames can essentially be performed substantially in parallel, They can also be performed in the opposite order sometimes, and this is depending on involved function. It is also noted that each square frame and block diagram in block diagram and/or flow chart and/ Or the combination of the square frame in flow chart, can be with function or action as defined in performing it is special Hardware based system is realized, or can be referred to specialized hardware with computer The combination of order is realized.
In addition, each functional module in each embodiment of the invention can be integrated in one Rise and form an independent part or modules individualism, can also Two or more modules are integrated to form an independent part.
If the function is realized using in the form of software function module and is used as independent production Product are sold or in use, can be stored in a computer read/write memory medium. Understood based on such, technical scheme is substantially in other words to prior art The part contributed or the part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, if including Dry instruction to cause a computer equipment (can be personal computer, server, Or the network equipment etc.) perform whole or the portion of each embodiment methods described of the invention Step by step.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage Device (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with Jie of store program codes Matter.It should be noted that herein, such as first and second or the like relation Term is used merely to distinguish an entity or operation with another entity or operation Come, and not necessarily require or imply these entities or exist between operating any this Actual relation or order.Moreover, term " comprising ", "comprising" or its is any Other variants are intended to including for nonexcludability, so that including a series of key elements Process, method, article or equipment not only include those key elements, but also including Other key elements being not expressly set out, or also include for this process, method, Article or the intrinsic key element of equipment.In the absence of more restrictions, by language The key element that sentence "including a ..." is limited, it is not excluded that including the mistake of the key element Also there is other identical element in journey, method, article or equipment.
The preferred embodiments of the present invention are the foregoing is only, this is not limited to Invention, for those skilled in the art, the present invention can have it is various change and Change.Within the spirit and principles of the invention, it is any modification for being made, equivalent Replace, improve etc., it should be included in the scope of the protection.It should be noted that: Similar label and letter represents similar terms in following accompanying drawing, therefore, once certain One is defined in an accompanying drawing, then it need not be carried out in subsequent accompanying drawing Further definition and explanation.
The foregoing is only a specific embodiment of the invention, but the protection of the present invention Scope is not limited thereto, and any one skilled in the art is in the present invention In the technical scope of exposure, change or replacement can be readily occurred in, should all be covered in this hair Within bright protection domain.Therefore, protection scope of the present invention described should be wanted with right The protection domain asked is defined.

Claims (14)

1. a kind of device for allocating resources, applied to the client being connected with a server communication End, it is characterised in that the device for allocating resources includes:
Resource obtains module, for obtaining the money including needing to change from the server The resource plug bag of source item;
Resource load-on module, for being loaded to the resource plug bag, obtains institute State the resource items in resource plug bag;
Resource items searching modul, for the operation according to the configuration resource items currently performed Search whether there are resource items corresponding with the operation in the resource items of acquisition;
Resource changes module, for completing what is currently performed using the resource items found Configure the operation of resource items.
2. device for allocating resources according to claim 1, it is characterised in that institute Stating device for allocating resources also includes request sending module,
Request sending module, under being sent according to default strategy to the server The solicited message of resource plug bag is carried, so that the server is according to the solicited message Down distributing resource plug-in unit bag is to the client.
3. device for allocating resources according to claim 2, it is characterised in that institute Stating default strategy includes at least one of following three kinds of modes:
The request sending module is sent according to default time interval to the server The solicited message;
The request sending module sends institute in application program launching to the server State solicited message;
The request sending module the resource items searching modul do not find with currently During the corresponding resource items of operation of the configuration resource items of execution, sent to the server The solicited message.
4. device for allocating resources according to claim 1, it is characterised in that institute Stating device for allocating resources also includes control instruction receiving module,
Control instruction receiving module, for receiving that the server sends to the money Resource items in the plug-in unit bag of source carry out the control instruction of configuration control;
The resource items searching modul receives described in the control instruction receiving module After control instruction, according to currently perform configuration resource items operation acquisition resource Search whether there are resource items corresponding with the operation in.
5. device for allocating resources according to claim 4, it is characterised in that when The resource items searching modul finds multiple behaviour with configuration resource items that are currently performing When making corresponding resource items, the resource changes module according in the control instruction Hold the behaviour of the configuration resource items currently performed using the corresponding resource items completion found Make.
6. device for allocating resources according to claim 1, it is characterised in that institute State resource load-on module is used to set the resource items in the resource plug bag by generating The mode of explorer resource plug bag is loaded.
7. device for allocating resources according to claim 1, it is characterised in that institute Stating the operation of the configuration resource items currently performed includes the Rendering operations to view,
The resource items searching modul according to current view to be rendered acquisition resource Search whether exist and corresponding resource items in;
The resource change module is completed to current to be rendered using the resource items found View Rendering operations.
8. a kind of resource allocation method, applied to the client being connected with a server communication End, it is characterised in that the resource allocation method includes:
The resource plug bag of the resource items including needing to change is obtained from the server;
The resource plug bag is loaded, the money in the resource plug bag is obtained Source item;
Searched according to the operation of the configuration resource items currently performed in the resource items of acquisition With the presence or absence of resource items corresponding with the operation;
The operation for the configuration resource items for completing currently to perform using the resource items found.
9. resource allocation method according to claim 8, it is characterised in that institute Stating resource allocation method also includes:
The request for downloading resource plug bag is sent to the server according to default strategy Information, so that the server is according to the solicited message down distributing resource plug-in unit bag to institute State client.
10. resource allocation method according to claim 9, it is characterised in that institute Stating default strategy includes at least one of following three kinds of modes:
According to default time interval the solicited message is sent to the server;
In application program launching the solicited message is sent to the server;
The corresponding resource items of operation of the configuration resource items with currently performing are not being found When, send the solicited message to the server.
11. resource allocation method according to claim 8, it is characterised in that institute Stating resource allocation method also includes:
Receive being carried out to the resource items in the resource plug bag for the server transmission Configure the control instruction of control;
After the control instruction is received, the configuration that the basis is currently performed is performed The operation of resource items is searched whether in the resource items of acquisition in the presence of corresponding with the operation The step of resource.
12. resource allocation method according to claim 11, it is characterised in that When finding multiple corresponding resource items of operation with configuration resource items that are currently performing When, completed according to the content of the control instruction using the corresponding resource items found The operation of the configuration resource items currently performed.
13. resource allocation method according to claim 8, it is characterised in that logical Cross the side that generation is used to set the explorer of the resource items in the resource plug bag Formula is loaded to resource plug bag.
14. resource allocation method according to claim 8, it is characterised in that institute Stating the operation of the configuration resource items currently performed includes the Rendering operations to view, described Method includes:
According to current view to be rendered search whether to exist in the resource items of acquisition with Corresponding resource items;
Complete to render behaviour to current view to be rendered using the resource items found Make.
CN201610134153.4A 2016-03-09 2016-03-09 A kind of device for allocating resources and resource allocation method Pending CN107179943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610134153.4A CN107179943A (en) 2016-03-09 2016-03-09 A kind of device for allocating resources and resource allocation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610134153.4A CN107179943A (en) 2016-03-09 2016-03-09 A kind of device for allocating resources and resource allocation method

Publications (1)

Publication Number Publication Date
CN107179943A true CN107179943A (en) 2017-09-19

Family

ID=59829637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610134153.4A Pending CN107179943A (en) 2016-03-09 2016-03-09 A kind of device for allocating resources and resource allocation method

Country Status (1)

Country Link
CN (1) CN107179943A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213536A (en) * 2018-08-13 2019-01-15 阿里巴巴集团控股有限公司 Resource exhibition method, resource show configuration method, device and the equipment of class control
CN111565211A (en) * 2020-01-14 2020-08-21 西安奥卡云数据科技有限公司 CDN configuration distribution network system
CN112015482A (en) * 2020-07-20 2020-12-01 北京达佳互联信息技术有限公司 Page loading method and device and server
CN112740714A (en) * 2018-09-11 2021-04-30 公共电视公司 Techniques to configure and manage user interfaces for content guides for multiple device types

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007101734A1 (en) * 2006-01-30 2007-09-13 International Business Machines Corporation Plug-in update and management
CN102707977A (en) * 2012-05-17 2012-10-03 江苏中科梦兰电子科技有限公司 Increment upgrading method based on Android application software

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007101734A1 (en) * 2006-01-30 2007-09-13 International Business Machines Corporation Plug-in update and management
CN102707977A (en) * 2012-05-17 2012-10-03 江苏中科梦兰电子科技有限公司 Increment upgrading method based on Android application software

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213536A (en) * 2018-08-13 2019-01-15 阿里巴巴集团控股有限公司 Resource exhibition method, resource show configuration method, device and the equipment of class control
CN112740714A (en) * 2018-09-11 2021-04-30 公共电视公司 Techniques to configure and manage user interfaces for content guides for multiple device types
CN111565211A (en) * 2020-01-14 2020-08-21 西安奥卡云数据科技有限公司 CDN configuration distribution network system
CN111565211B (en) * 2020-01-14 2023-05-23 西安奥卡云数据科技有限公司 CDN configuration distribution network system
CN112015482A (en) * 2020-07-20 2020-12-01 北京达佳互联信息技术有限公司 Page loading method and device and server

Similar Documents

Publication Publication Date Title
US8620998B2 (en) Mobile application deployment for distributed computing environments
CN107179943A (en) A kind of device for allocating resources and resource allocation method
CN105700925B (en) A kind of interface implementing method and device of APP
CN105787077A (en) Data synchronizing method and device
CN114244717B (en) Configuration method and device of virtual network card resources, computer equipment and medium
CN109522068A (en) The edit methods of the methods of exhibiting and system of the page, page data
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
CN103577207A (en) Loading method and loading device for interface components in custom interface system
CN106961454A (en) Document down loading method, device and terminal device
CN105786606A (en) Data transferring method and system for intelligent terminals
CN106034247A (en) Configuration method and apparatus for smart television application
CN108600282A (en) Micro services dissemination method, device, storage medium and computer equipment
CN108733370B (en) Stylized display method, device, terminal and storage medium of native APP
CN114612279A (en) Watermark adding method and device
CN110708423A (en) Message content display method and device and storage medium
CN105700886B (en) The display methods and terminal of plug-in interface
CN106506163B (en) ROM packet processing method and device
CN108052401A (en) System property monitor method, terminal device and computer readable storage medium
CN111367561A (en) Software program remote development method and device
CN110780864A (en) Control method and device for class method replacement, storage medium and electronic equipment
CN110347468A (en) Textures switching method, textures switching device and electronic equipment
CN106155722A (en) A kind of software method for updating pages and terminal
CN108614844A (en) Multimedia file producting method and device
CN113902483A (en) Advertisement putting method and device, electronic equipment and storage medium
CN113467776A (en) Access method and device of equipment, storage medium and electronic 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200611

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping square B radio tower 15 layer self unit 02

Applicant before: GUANGZHOU UC NETWORK TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170919