JTools consists of several utilities targeted at Java developers, and are authored by
our team. Team members are assigned to one or several utilities at a time.
Every utility is termed a sub-project for a logical seperation purposes.
Following is a list of the current sub-projects:
The fileup utility provides the java developer with the functionality to upload files
to a specified server.
This utility will be used in a client-server based application where clients need to provide
the server with some files.
Make sure you have write access on the server where you want to place the file.
In a nutshell XSql allows developers to populate a database with data.
Imagine XSql to be a database injector that inserts rows of data into
any database. What makes XSql unique is that the data that is used is
somewhat realistic as opposed to arbitrary strings.
XSql achieves this realistic data population by the use of
resource files. For each column in the table to be populated, a resource file may be designated
as the source for the data for that column.
The cache utility provides the functionality to cache any type of objects.
Every object must be implement interface Cacheable or extend CachedObject. The
CachedObject constructor 3 parameters :
the value to cache, the identifier of the object to cache and the lifetime of
the object in the cache.
Example to cache an object:
CacheManager.setCacheObject((Cacheable)new CachedObject(p_value, p_id, p_livetime));
Example of retrieving a cached object:
CachedObject value = (CachedObject)CacheManager.getCacheObject(p_id);
You can define how long a object may stay in the cache by the livetime parameter.
If this value is zero then the object will stay in the cache forever.
You can also check whether a specific identifier is in the cache with the following method:
This method returns true if the identifier is in the cache, false otherwise.
The swing project consists of several small utilities which can make your life easier
while developing your swing application.
If a utility contains only one class then this class can be found in the root package
of the swing project (org.jtools.swing).
If the utility consists of several files, then it will be put in a sub-package
under the root package of the project.
This project will be extended continuously.
Whenever significant changes have been made to the project, a new release will be made.
According to the developments on the JTools open source project several functionalities may
be used on more then one sub-project. There for we created a common service sub-project which
allows our team to use these common services in several sub-projects.
Since these functionalities can also be of use to the developers out there, we will make a
release of the common services when major changes are made.
The first common service created is explained below:
The file i/o utility will enable developers to perform file or url manipulations.
Java provides methods for reading from, and writing to, files. The file i/o classes
will provide a flexible and generic implementation of file or url manipulation.
The utility will be developed in such a way that it will be possible to read from, or
write to a file, by calling one method.