M L A V W I L S O N
Home
Counter-Strike
Java Development
csjstats
J2EE Utilities
Go
Factory
DAOFactory
JQueueBrowser
Calendar (tag)
Java Toys
Network Games
FBall
PassMan
Classpath Manager
3D Chess
J2ME Toys
tic-tac-toe MIDLet
Java Reports
Latest javadoc
Latest JUnit
Go


Go is a framework for customizing componens using XML. Go is used in the following mlw projects:

Factory uses Go to load Objects into the factory.

DAOFactory extends Factory.

FBall uses Go to provide a customizable framwork for laying out the panels on the swing application. All the queries are stored in an XML file. All the layout of the tabs are defined in an XML file. Using Go in this application makes adding new tabs to the application very easy. A new tab can be added without change any java code. Simply a new component entry in the manager.xml (download) file will accomplish adding a tab.

Supported action include:

com.mlw.go.AddActionAction.java (download) is the Action class that can load custom classes that implement Action (download) . This is usefull if an application needs to implement its own Action class.

com.mlw.go.CopyAction.java (download) is the Action class that retrieves file with the http protcal.

com.mlw.go.ConstantsAction.java (download) is the Action class that allows constants or replace values to bu used in the XML file.

com.mlw.go.IncludeAction.java (download) is the Action class that is used to include more xml config files.

com.mlw.go.MainAction.java (download) is the Action class that uses reflection to invake a class with the main(String[] args) method

com.mlw.go.ReflectionAction.java (download) is the Action class that instanciates objects and calls methos on the object. This Action is used in the Factory. The below sample is creates a com.mlw.util.factory.TestFactoryObject (download) , then calls setSampleValue('Some Value');

com.mlw.go.SpoolAction.java (download) is the Action class that can be used to capture the output of other Action classes.

com.mlw.go.WaitAction.java (download) is the Action class that is used for haulting the parsing of the config file till this Action class is notifed.

com.mlw.go.ext.JDBCAction.java (download) is the Action class that opens a JDBC connection and executes SQL scripts. The sample below opens a connection to an Access database, then deletes from the stats table.

com.mlw.go.ext.LoaderAction.java (download) is the Action class that laods CSV file int a database. This is used in the FBall applicatoin to update the database with a click of a button. Simular to the sqlldr utility on Oracle.