SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Sponsored Links

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

Banjo
version 1.0
released 12.29.2001
Prabhakar V. Chaganti<prabhakar@chaganti.net>


Banjo is a non-gui bean that provides the consumer application with a list of the ten latest applications posted on http://freshmeat.net.

You can use Banjo in two different ways:

  1. Push method: Create a Banjo object and call its getApps() method whenever you need the new list.
  2. Pull method: Implement the FmNewAppsListener interface , create Banjo and add yourself as a listener. In this case, you will get callbacks with the new apps list at the time interval(in millisecs) determined by you.

The tarball includes two sample classes in the /samples dir: BanjoDriver1 and BanjoDriver2 that demonstrate the two ways that you can incorporate Banjo into your application.

Banjo also checks the last modified attribute for the backend file, so it will not needlessly parse the xml if nothing has been modified. Therefore you will NOT get any callbacks if nothing has changed on the freshmeat backend !!!

Dependencies

You will need a reasonably recent version of an JAXP XML parser. I use Xerces from the Apache project.

Usage

Ensure that Banjo-1.0.jar is on your application classpath.

Enjoy :--)


Sponsored Links

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.