当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: 2.2 IoC组件容器的详细设计: a.NT: 7pt
 

 

 ·把金额类型转换成大写和英文    »显示摘要«
    摘要:using system; namespace changemoney{ /// <summary> /// changemanage 的摘要说明。 /// </summary> public class changemoneyclass { public static string moneytoeng(string n) { // string result=""; string m=getfloat(n)......
 ·大数阶乘的计算(六)    »显示摘要«
    摘要:前些时间写的关于大整数的阶乘计算,效率总是再难以提高:(http://dev.csdn.net/develop/article/28/28306.shtm,http://dev.csdn.net/develop/article/28/28308.shtm,http://dev.csdn.net/develop/article/28/28432.shtm,http://dev.csdn.net/develop/article/28/28641.shtm) ......


轻量级服务器端组件体系实现(二)
2.2 ioc组件容器的详细设计:

  【相关文章:一个简单Tracer类,用来为应用写入跟

a.      xml文件:记录配置信息。 【扩展阅读:将人民币的数字表示转化成大写表示(C#版

b.      文件映射类:负责读入xml文件并将文件映射成配置类。(xmldataloader) 【扩展信息:如何将EXP出来的数据IMP进不同的表空

 

package com.ehi.pro.util;

public interface xmldefinitionloader {

  void loadxmldata(string filename, boolean validating) throws xmldefinitionexception;

}

 

c.      配置类:与xml文件无关的,记录配置信息类。(beandefinitionloader, beaninfo, beanproperty)

beandefinitionloader.java

public interface beandefinitionloader extends xmldefinitionloader{

beaninfo getbeaninfo(string beanname) throws beaninfonotfoundexception;

}

beaninfo.java

public interface beaninfo {

string getclassinfo();

beanpropertyvalue[] getpropertyvalues();

boolean issingleton();

}

 

d.      加载类:把类对象动态载入。(dynamicclassloader)

public interface dynamicclassloader {

  public class loadclass(string classname) throws classnotfoundexception;

}

 

e.         反射类:获取或者设置类对象的属性。(methodinvoker)

methodinvoker.java

public class methodinvoker {

    public static final voidtype void = new voidtype();

    private static method validate(object targetobject, string targetmethod, object[] arguments) throws classnotfoundexception, nosuchmethodexception

    {

        if (targetobject == null) {

            throw new illegalargumentexception("either targetclass or targetobject is required");

        }

        if (targetmethod == null) {


...   下一页
 ·vb打造超酷个性化菜单(六)    »显示摘要«
    摘要:vb打造超酷个性化菜单(六) (接上篇) ´ 拦截菜单消息 (frmmenu 窗口入口函数)function menuwndproc(byval hwnd as long, byval msg as long, byval wparam as long, byval lparam as long) as long select case msg case wm_command ´ 单击菜单项 if myitemi......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE