JavaFramework2.5經過多年的開發,已經走向成熟,也走向自己的瓶頸。在談JavaFramework2.5缺陷時候,我們先談一下JavaFramework2.5的基礎思想吧。
1、JavaFramework2.5的基礎思想
JavaFramework2.5的基礎思想是建立一套簡單易讀的隨插即用的架構。它可以獨立控制一個工程的所有邏輯,也可以做為其他架構的輔助。該架構1.0設計時候,只是把一些工作中實際用到的開源組件用法和配置教程分門別類記錄到一個Java工程中去,方便調用。
在2.x的設計用,架構漸漸應用到大量實戰項目中,並且引入了分層技術和隨插即用思想。比較成熟的組件有:DBUtil、ThreadPool、MultiProcess等。涉及到:105個開源組件或者技術和 25個大型模組。
檔案目錄如下:
涉及到開源組件有:
com.shine.framework.BeanshellUtil
com.shine.framework.BI
com.shine.framework.BinaryRPC
com.shine.framework.BinaryTree
com.shine.framework.Cache
com.shine.framework.Cassandra
com.shine.framework.Charts
com.shine.framework.Cmdb
com.shine.framework.Compile
com.shine.framework.Cookie
com.shine.framework.core
com.shine.framework.CssManager
com.shine.framework.DB4o
com.shine.framework.DdlUtils
com.shine.framework.DLLUtil
com.shine.framework.Dns
com.shine.framework.Dwr
com.shine.framework.EmailUtil
com.shine.framework.Encode
com.shine.framework.Fetion
com.shine.framework.FFmpeg
com.shine.framework.Firewall
com.shine.framework.Flv
com.shine.framework.Form
com.shine.framework.Ftp
com.shine.framework.Gif
com.shine.framework.Gis
com.shine.framework.google
com.shine.framework.Gps
com.shine.framework.Hadoop
com.shine.framework.Hessian
com.shine.framework.HtmlManager
com.shine.framework.HttpClient
com.shine.framework.HttpServer
com.shine.framework.IIS
com.shine.framework.Image
com.shine.framework.Ioc
com.shine.framework.Ios
com.shine.framework.IpSource
com.shine.framework.JarUtil
com.shine.framework.Jave
com.shine.framework.Jbpm
com.shine.framework.JFugue
com.shine.framework.Jms
com.shine.framework.Jmx
com.shine.framework.Jni
com.shine.framework.JobUtil
com.shine.framework.Jpcap
com.shine.framework.JsCompressor
com.shine.framework.JsExecute
com.shine.framework.Json
com.shine.framework.Kvm
com.shine.framework.License
com.shine.framework.LogUtil
com.shine.framework.lucene
com.shine.framework.Mac
com.shine.framework.MainServer
com.shine.framework.Map
com.shine.framework.Medie
com.shine.framework.Memcached
com.shine.framework.Mht
com.shine.framework.MibBrowser
com.shine.framework.MonetDB
com.shine.framework.MS
com.shine.framework.Msn
com.shine.framework.MysqlUtil
com.shine.framework.Netty
com.shine.framework.Nio
com.shine.framework.NMapUtil
com.shine.framework.NodeJs
com.shine.framework.Nutch
com.shine.framework.Observer
com.shine.framework.OOWeb
com.shine.framework.Oracle
com.shine.framework.P2PUtil
com.shine.framework.Pay
com.shine.framework.Pdf
com.shine.framework.PingUtil
com.shine.framework.PortScan
com.shine.framework.ProxyServer
com.shine.framework.RedBlackTree
com.shine.framework.Rmi
com.shine.framework.Rss
com.shine.framework.SafeCode
com.shine.framework.ScreenDump
com.shine.framework.SecurityUtil
com.shine.framework.Skype
com.shine.framework.Smpp
com.shine.framework.Sound
com.shine.framework.StaticPage
com.shine.framework.SybaseIQ
com.shine.framework.Tag
com.shine.framework.Tcp
com.shine.framework.TelnetUtil
com.shine.framework.ThreadPoolUtil
com.shine.framework.TimerUtil
com.shine.framework.TomcatUtil
com.shine.framework.Tomp2p
com.shine.framework.tray
com.shine.framework.Udp
com.shine.framework.Weblogic
com.shine.framework.WebSphere
com.shine.framework.Wkhtmltopdf
com.shine.framework.Workflow
com.shine.framework.xmpp
2.x每個組件的內部邏輯:
2、Javaframework2.5的存在問題
2.x的設計存在的問題也非常明顯:
(1)2.x只是一個java架構,沒有管理好MVC。對Java的WEB開發沒有非常全面的控制;
(2)2.x把所有組件都集中到一個工程,導致jar包過大;
(3)2.x沒有廣泛使用IOC和AOP做耦合管理,導致項目的升級調用落後;
(4)2.x沒有用到非同步載入技術或成熟的外掛程式技術,效能效率沒有最完善;
(5)代碼安全沒辦法很好保護。
3、Javaframework3.0的設計目標
(1)多工程管理,保證代碼安全;
(2)更優秀的層次技術;
(3)基於外掛程式制的MVC管理;
(4)更好的例子管理和文件管理;