网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > Java
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.关于Java的点滴看法.
.Java Socket编程(五).
.Apache动了Java奶酪(news).
.Java基础入门:关于Java构造器.
.玩玩Spring之Rod Johnson与轮子理.
.CLR和JRE的运行机制的初步总结.
.JBuilder2005创建开发文档之编写.
.JavaScript在E-mail中的应用.
.快速配置Weblogic8.X的应用目录.
.Java基础学习:functor的实现.
.JDOM与XML的案例.
.【Java】命令行参数的获取及判断.
.RMI原理及实现.
.Thinking in Java第三版读书笔记.
.了解Solaris 认证.
.实例讲解移动QQ在线平台(二).
.Java 5.0多线程编程.
.Java初学者入门经典:面向对象的.
.用JAVA实现UBB代码.
.创建Excel格式的数据.

Shark中的ToolAgent用法-JavaClassToolAgent

发表日期:2008-1-5


Shark帮助文档中原文如下:

  • JavaClassToolAgent - This tool agent executes Java classes, by calling its static method called "execute". When calling this tool agent's invokeApplication() method, the application name parameter should be the full name of the class that should be executed by this tool agent. So far, we defined a few classes that execute simple arithmetic operation, generation of random number, and one that performs waiting. There are also two classes contributed to by Paloma Trigueros Cabezon, and they can be used to use this tool agent to send mails.

    This tool agent is able to "understand" the extended attribute with the following name:

    • AppName - value of this attribute should represent the class name to be executed.

    首先要知道这是一种把一个类来作为一个应用的方法,具体做法如下:

    1、创建一个新类javaclass.java,类中必须包含一个静态方法execute,该方法即为希望该类完成的行为。

    2、编译类文件为javaclass.class,并放入:安装路径\lib\engine\sharktoolagent-standard.jar中。

    3、这样在编辑process时,就可以应用这些自己编写的类了。可以定义application了,注重定义两个可扩展属性:ToolAgentClass=JavaClassToolAgent,AppName=类名(javaclass)。


  • 上一篇:J2EE的安全体系的应用 人气:870
    下一篇:The Alloy Look And Feel 1.4.4破解手记 人气:947
    浏览全部Java的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐