Unlock instant, AI-driven research and patent intelligence for your innovation.

JAVA stateless object management method and device

A management method and technology of a management device are applied in the management field of JAVA stateless objects, which can solve problems such as requiring large memory and memory overflow, and achieve the effects of avoiding long-term occupancy of cache, avoiding memory overflow, and reducing memory burden.

Inactive Publication Date: 2013-12-04
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] Based on this, it is necessary to provide a JAVA stateless object management method and device in view of the technical problem that the cache management of stateless objects requires a large amount of memory and is likely to cause memory overflow in the prior art.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • JAVA stateless object management method and device
  • JAVA stateless object management method and device
  • JAVA stateless object management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

[0036] Such as image 3 Shown is the work flow chart of the management method of a kind of JAVA stateless object of the present invention, comprises:

[0037] Step S301, start the IoC container;

[0038] Step S302, instantiate the stateless object according to the object configuration parameters corresponding to the preset object identifier, save the stateless object in the cache managed by the IoC container, and maintain the object usage corresponding to each stateless object Situation parameters;

[0039] Step S303, responding to the call object request including the object identifier to be called:

[0040] If the stateless object corresponding to the object identifier to be called has been stored in the cache, obtain the stateless object corresponding to the object identifier to be called from the cache as the object to be calle...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the JAVA related technical field, in particular to a JAVA stateless object management method and a JAVA stateless object management device. The management method comprises the steps of starting up an IoC (Inversion of Control) container; instantiating stateless objects, saving the stateless objects in a buffer memory and maintaining object use situation parameters; making a response to an object calling request which contains identifiers of objects to be called; if the stateless objects corresponding to the identifiers of the objects to be called have already been saved in the buffer memory, obtaining the corresponding stateless objects from the buffer memory, feeding back the corresponding stateless objects and updating the object use situation parameters; otherwise, instantiating new stateless objects, deleting the stateless objects which meet deletion rules according to the object use situation parameters corresponding to each stateless object saved in the buffer memory, saving the new objects in the buffer memory and maintaining the corresponding object use situation parameters. By maintaining the object use situation parameters of the stateless objects saved in the buffer memory and deleting the stateless objects which meet the deletion rules, the situation that a great number of stateless objects occupy the buffer memory for a long time is avoided.

Description

technical field [0001] The invention relates to the technical field related to JAVA, in particular to a method and device for managing JAVA stateless objects. Background technique [0002] In today's J2EE (J2EE is the Java2 Platform Enterprise Edition) enterprise-level development and application, a large number of IoC (Inversion of Control) technology is used, which greatly weakens the dependency between objects. Objects are instantiated by JavaBean , (JavaBean is a software component model that describes Java, instantiating an object refers to the operation of instantiating an object and allocating memory for the object), the management of the object and the dependency between the object and the object are managed by the IoC container , The IoC container, such as the JAVA default Spring container, uses a configuration file (usually XML), defines the name of the object on the configuration file, how to instantiate it (Prototype mode or Singleton mode), and which object must...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/48G06F12/08G06F12/123
Inventor 郭永强
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD