词条 | Java Work Framework |
释义 |
|{{Notability|Products|date=November 2009}}{{primary sources|date=November 2009}}{{orphan|date=February 2009}}{{no footnotes|date=February 2009}} }}{{Infobox software | name = Java Work Framework | latest_release_version = 1.0.1 | latest_release_date = {{release date|2009|02|18}} | operating_system = Cross-platform | license = MIT license | genre = Java Network Framework | website = http://subversion.itrustcam.com/thirdparty/javawork/1.0.1/javawork }} Java Work Framework is a simple, but powerful Java framework providing Network(New I/O Socket), Database, Exception handling and System functionality. It is open source, object-oriented and event driven. HistoryIt was originally designed and implemented by Ivan Penev back in 2005 as a network layer capable to handle around 10,000 socket connections. Then it gradually included the most common functionality a programmer may need - socket communication, simple database access, reading external resources as files, URLs, etc. FeaturesIts main focus is to hide behind simple wrappers existing Java functionality and to provide general application exception handling mechanism. In short it supports:
Security
Code snippetsMulticast: Multicast.listen( "230.0.0.1", 35098, new IEventListener() { public void onEvent( IEvent evt ) { MulticastDataEvent dataEvt = (MulticastDataEvent)evt; System.out.println( "data-bytes:" + DebugUtil.toString(dataEvt.asByteArray()) );} } ); Multicast.send( "Lorem ipsum dolor ...", "230.0.0.1", 35098 ); Database: Database db = Database.createInstance(); db.setUrl("jdbc:postgresql://localhost/testdb"); db.setUsername("testuser"); db.setPassword("test123"); SQLInsert insertOp = new SQLInsert("persons"); insertOp.addData("person_fname", "Mike", "person_lname", "Johnson", "birthday", Convert.toDate("1971-08-01"), "country_id", "de", "single", true); int affectedRows = insertOp.execute(); System.out.println("Affected rows = " + affectedRows); Requirements
External links
2 : Java (programming language)|Software using the MIT license |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。