单件模式在JNI中的应用  

Singleton Pattern in Java Native Interface

在线阅读下载全文

作  者:李虎[1] LI Hu(The 28th Research Institute of China Electronics Technology Group Corporation,NanJing 210007,China)

机构地区:[1]中国电子科技集团公司第二十八研究所,江苏南京210007

出  处:《电脑知识与技术》2012年第7期4745-4748,共4页Computer Knowledge and Technology

摘  要:设计模式有助于提高软件的可维护性,提高代码复用。单件模式确保类只有一个实例并提供全局访问入口。在信息定制系统中运用单件模式实现JNI调用服务器上的动态库,保证只在首次发送定制请求时进行网络初始化过程,降低了服务器负担,提高了系统的效率。Design pattern is helpful to enhance the maintainability of soft and the reusability of code.Singleton pattern ensure that only one instance of a class is created,provide a global point of access to the object.In the Information Customize System,established JNI call the server Shared Object by singleton pattern,ensure that only initialize the Net Transmission process at the first time to send customize mes sage,thus can reduce server load and enhance system efficiency.

关 键 词:设计模式 单件模式 JAVA固有接口 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论;自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象