Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JAVAºÍFlexÃô½Ýµ÷ÓÃ(Ò»)

   ÔÚjavaÏîÄ¿¼¯³Éflex¿ª·¢ÔÚweb2.0ÊÇÊÇÒ»¸öÊ®·ÖÓмÛÖµµÄ¿ª·¢·½°¸£¬ÌرðÔÚÆóÒµ¼¶µÄÓ¦ÓÃÖУ¬flexºÍjava¼äµÄͨѶԽÏÔÖØÒª¡£µ«ÊÇÏÖÔÚµÄjavaºÍflexµÄ¿ò¼ÜËäÈ»¶à£¬µ«Êǹ²Í¨ÐÔ²»´ó¡£¾ÍÊÇͨ¹ý´«Í³µÄwebserviceµ÷Óã¬Ò²ÒòΪЧÂÊÎÊÌâºÍ½âÎöxmlµÄ·±ÖصŤ×÷£¬ºÜ¶àÏîÄ¿¿ª·¢ËٶȺÍά»¤ÏÞÖÆ½Ï´ó¡£ÔÚ½üÀ´ÏîÄ¿£¬ÎÒÔÚ¹«Ë¾³¢ÊÔÁËһϹ¤³§Ä£Ê½¸¨Öú¿ª·¢flexºÍjavaµÄÏë·¨¡£ÏÖÔÚÕâÖÖÃô½Ýµ÷ÓñȽϳÉÊ죬¾ÍºÍ´ó¼Ò½»Á÷һϡ£
java·´Éä·½·¨£º
public Object loadMethod(String className, String method, Object[] value) {
try {
Object resultObject = null;
Class h = Class.forName(className);
Object object = h.newInstance();
Method m[] = h.getDeclaredMethods();
for (int i = 0; i < m.length; i++) {
if (m[i].getName().equals(method)) {
if (value == null) {
resultObject = m[i].invoke(object);
} else {
resultObject = m[i].invoke(object, value);
}
}
}
return resultObject;
} catch (Exception e) {
e.printStackTrace();
return null;
}
}
Õâ¸öÊÇÒ»¸ö·Ç³£ÖØÒªµÄ·½·¨£¬½ÓÊÜjavaÀàµÄÀàÃûºÍ·½·¨Ãû¡¢²ÎÊý£¬È»ºóÔ¶³Ìµ÷ÓÃ
È»ºó°Ñ¸Ã·½·¨µÄÀà¼Óµ½remoting-config.xml
<destination id="classLoader">
<properties>
<source>com.shine.framework.flexLoader.ClassLoader</source>
</properties>
</destination>
ÔÚflexµÄÔ¶³Ìµ÷Ó÷â×°µÄÀàBaseRoServiceUtil.mxml
Ô¶³Ìµ÷Óõķ½·¨
protected function loadClass(classPath:String, classMethod:String, value:Object):void
{
var loader:RemoteObject=new RemoteObject;
loader.destination="classLoader";
loader.addEventListener(FaultEvent.FAULT, error);
loader.endpoint="messagebroker/amf";
loader.loadMethod(classPath, classMethod, value);
loader.addEventListener(ResultEvent.RESULT, getRomoteHelloRes);
}
½ÓÊÕ½á¹ûµÄ·½·¨(ͨ¹ý·½·¨¶ÔÏóµ÷ÓÃÆäËûÀàµÄ·½·¨)
 private function getRomoteHelloRes(e:ResultEvent):void
{
method.call(this, e.result);
}
Èç¹ûÐèÒªµ÷ÓÃtest.TestÀàÖеÄshow(String str)·½·¨µÄ»°£¬ÎÒÃǾÍÕâôд
<?xml version="1.0" enc


Ïà¹ØÎĵµ£º

Flex Chart ¼¼ÇÉ ÒÆ³ý¸¡Ë®Ó¡

Flex Chart ËäÈ»ÓÐÌṩÍêÕûµÄÊÔÓù¦ÄÜ
²»¹ý±àÒëÍê³ÉµÄͼ±í»á¼ÓÉÏˮӡ
 “Flex Data Visualization Trial”µÄ×ÖÑù¡£
¼ÈÈ»ÊÇ AS£¬ÄÇÊÂÇé¾Í¼òµ¥ÁË
Ö»ÒªÔÚ Flex Project 內¼ÓÉÏÒÔÏ Class£º
Ò»¶¨Òª´´½¨mx.charts.chartClasses£¬¸²¸ÇFLEX×Ô´øµÄChartLicenseHandler
package mx.charts.chartClasses { ......

Ïê½âJava»Øµ÷»úÖÆ (Callback) ½²½â+ʵÀý

JavaÖеĻص÷£¨callback£©ÊǺÜÖØÒªµÄÒ»¸ö¸ÅÄspringÕûºÏhibernate´óÁ¿Ê¹ÓÃÁËÕâÖÖ¼¼Êõ¡£
¾¿¾¹ÔõÑù²ÅÊǻص÷ÄØ£¿
ÕâÊÇÍøÉÏ×î¶à¼ûµ½µÄ˵Ã÷£º   
  1.class   A,class   B   
  2.class   AʵÏÖ½Ó¿Úcallback
  3.class   BÓµÓÐÒ»¸ ......

Java ¼¸ÖÖÅÅÐò·¨

ÕâÀïÖ÷Òª¶Ô8ÖÖÅÅÐòËã·¨×ö¸ö×ܽᣬ·Ö±ðÊDzåÈëÅÅÐò£¬Ñ¡ÔñÅÅÐò£¬Ã°ÅÝÅÅÐò£¬Ï£¶ûÅÅÐò£¬¹é²¢ÅÅÐò£¬¶ÑÅÅÐò£¬¿ìËÙÅÅÐòÒÔ¼°»ùÊýÅÅÐò¡£
1¡¢ ²åÈëÅÅÐò
±È½ÏºÍ½»»»µÄʱ¼ä¸´ÔÓ¶ÈΪO(n^2)£¬Ëã·¨×ÔÊÊÓ¦£¬¶ÔÓÚÊý¾ÝÒÑ»ù±¾ÓÐÐòµÄÇé¿ö£¬Ê±¼ä¸´ÔÓ¶ÈΪO(n)£¬Ëã·¨Îȶ¨£¬¿ªÏúºÜµÍ£¬ÊʺÏÓÚÊý¾ÝÒÑ»ù±¾ÓÐÐò»òÕßÊý¾ÝÁ¿Ð¡µÄÇé¿ö¡£
public void ins ......

javaÃæÊÔÖÐҪעÒâµÄµØ·½


1.JavaÀïÃæÊ¹ÓÃ
static
·½·¨ÓÐʲôºÃ´¦£¿
´ð£ºÔÚÏîÄ¿ÖУ¬¶ÔÓÚÆµ·±Ê¹Óõķ½·¨£¬Ê¹ÓÃstatic
ÐÞÊλáÌá¸ßЧÂÊÂ𣿠
¾²Ì¬·½·¨µÄºÃ´¦¾ÍÊDz»ÓÃÉú³ÉÀàµÄʵÀý¾ÍÄÜÖ±½Óµ÷ÓúͶÔÏóÎÞ¹Ø
Äã²»ÓÃÉú³É¶ÔÏó¾ÍÄÜÓÃÕâ¸ö·½·¨ÁË£¬²»ÊÇÌá¸ßЧÂÊ£¿ÄãÉú³É¶ÔÏóµÃÕ¼ÓÃÄÚ´æ¿Õ¼ä°¡ 
ÖÁÓÚ¾²Ì¬ÊôÐÔÒ²ÄÜÌá¸ßЧÂÊ£¬ÄãÆÕͨµÄÊôÐÔÿ¸öÀà¶Ô ......

java FTP²Ù×÷

 ¼òµ¥µÄдÁ˸öjava¶ÔftpµÄ²Ù×÷
ÓõÄÊÇcommons-net.jar°ü
FTPProxy.java
public class FTPProxy{
public FTPProxy()
{
super();
ftpClient = new FTPClient();
}
public FTPProxy(FTPBean entity)
{
this();
this.entity = entity;
}
private FTPBean entity;
private FTPClient ftpCli ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ