background preloader

Libraries

Facebook Twitter

Commons Lang 2.5 API. JCS - Getting Started -- Intoduction. Getting Started To start using JCS you need to (1) understand the core concepts, (2) download JCS, (3) get the required dependencies, (4) configure JCS, and (5) then start programming to it. The purpose of the getting started guide is to help you get up and running with JCS as quickly as possible. In depth documentation on the various features of JCS is provided in the User's Guide. STEP 1: Understand the Core Concepts In order to use JCS, you must understand a few core concepts, most importantly you need to know the difference between "elements," "regions," and "auxiliaries". JCS is an object cache. You can think of JCS as a collection of hashtables that you reference by name. "Auxiliaries" are optional plugins that a region can use. STEP 2: Download JCS Download the latest version of JCS. If you would like to build JCS yourself, check it out from Subversion and build it as you would any other project built by Maven.

STEP 3: Get the Required Dependencies concurrent commons-logging. Commons CLI - Introduction. Introduction There are three stages to command line processing. They are the definition, parsing and interrogation stages. The following sections will discuss each of these stages in turn, and discuss how to implement them with CLI. Definition Stage Each command line must define the set of options that will be used to define the interface to the application. CLI uses the Options class, as a container for Option instances. The Usage Scenarios document provides examples how to create an Options object and also provides some real world examples.

The result of the definition stage is an Options instance. Parsing Stage The parsing stage is where the text passed into the application via the command line is processed. The parse method defined on CommandLineParser takes an Options instance and a String[] of arguments and returns a CommandLine. The result of the parsing stage is a CommandLine instance. Interrogation Stage This stage is implemented in the user code. Joda-Time - Java date and time API - Home.