检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]解放军理工大学指挥自动化学院,江苏南京210007 [2]解放军国防科技大学计算机学院,湖南长沙410073
出 处:《中国教育网络》2007年第2期70-73,共4页China Education Network
摘 要:JNDI是一组在Java应用中访问命名和目录服务的API,它具有统一的接口,可以大大提高开发目录服务客户端应用程序的效率。但是对于开发者而言,使用JNDI编写的代码依然涉及许多细节,缺少抽象性和可扩展性。该文以LDAP目录服务为例,依照面向对象的设计原则,利用两个设计模式对目录服务器的访问过程进行优化。桥接模式避免了客户端直接设置目录服务器具体连接方式的参数,并且可以很好地适应新连接方式的扩展;命令模式把行为以命令对象的形式进行封装,将客户类与具体的请求类进行解耦合,使得客户端可以在不知道操作细节的情况下,发送不同的请求,进一步简化了目录服务器的访问过程。The Java Naming and Directory Interface (JNDI) offers application programming Interface (API) to access the naming and directory service, tt can improve exploitation efficiency. But developers still ,need to write different codes for different operations. Based on OO design principles, this paper taking LDAP directory service as an example, uses design patterns to contrive an access model of directory serverthat simplifies the access process. Bridge pattern avoids client to set the accessing parameters directly and adapts well to the new connecting methods; Command pattern encapslates methods into command objects, then decouples the client class from the Request class.
分 类 号:TP311.52[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.4