Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Page 1   2   3   4  
org.apache.commons.attributes.* (48)org.apache.commons.beanutils.* (149)
org.apache.commons.betwixt.* (351)org.apache.commons.chain.* (90)
org.apache.commons.cli.* (39)org.apache.commons.codec.* (41)
org.apache.commons.collections.* (889)org.apache.commons.configuration.* (66)
org.apache.commons.daemon.* (7)org.apache.commons.dbcp.* (58)

Package Samples:

org.apache.commons.beanutils: The Bean Introspection Utilities component of the Jakarta Commons subproject offers low-level utility classes that assist in getting and setting property values on Java classes that follow the naming design patterns outlined in the JavaBeans Specification, as well as mechanisms for dynamically defining and accessing bean properties.  
org.apache.commons.chain.web.faces: Basis for specialized Context implementations suitable for use in web applications, and generic Command implementations useful across web application environments.  
org.apache.commons.chain.web.servlet: Basis for specialized Context implementations suitable for use in web applications, and generic Command implementations useful across web application environments.  
org.apache.commons.beanutils.locale.converters: Standard implementations of the locale-aware LocaleConverter interface that are pre-registered with locale-aware LocaleConvertUtils at startup time.  
org.apache.commons.beanutils.converters: Standard implementations of the Converter interface that are pre-registered with ConvertUtils at startup time.  
org.apache.commons.collections.primitives.adapters.io: Adapters for converting between the primitive and object based versions of the collections framework.  
org.apache.commons.collections.keyvalue: This package contains the interfaces and utilities shared across all the subpackages of this component.  
org.apache.commons.chain.impl: The fundamental API contracts for the Chain of Responsibilty Pattern as implemented in this package.  
org.apache.commons.chain.web: The fundamental API contracts for the Chain of Responsibilty Pattern as implemented in this package.  
org.apache.commons.codec.net: A small set of interfaces used by the various implementations in the sub-packages.  
org.apache.commons.betwixt.io.id: Package contains classes dealing directly with the reading and writing of beans.  
org.apache.commons.betwixt.io.read: Package contains classes dealing directly with the reading and writing of beans.  
org.apache.commons.betwixt.digester: This package contains the main betwixt introspection code.  
org.apache.commons.betwixt.registry: This package contains the main betwixt introspection code.  
org.apache.commons.beanutils.locale: Locale-aware extensions of the standard beanutils classes.  
org.apache.commons.collections.iterators: Java Collections Framework extensions.  
org.apache.commons.collections.primitives.adapters: Collections of primitive values.  
org.apache.commons.dbcp.datasources: Database Connection Pool API.  
org.apache.commons.configuration.beanutils: Configuration package.  
org.apache.commons.attributes

Classes:

JXPathContext: JXPathContext provides APIs for the traversal of graphs of JavaBeans using the XPath syntax. Using JXPathContext, you can read and write properties of JavaBeans, arrays, collections and maps. JXPathContext uses JavaBeans introspection to enumerate and access JavaBeans properties. JXPathContext allows alternative implementations. This is why instead of allocating JXPathContext directly, you should call a static newContext method. This method will utilize the JXPathContextFactory API to locate a suitable implementation of JXPath. Bundled with JXPath comes a default implementation called Reference ...
FTPClient: FTPClient encapsulates all the functionality necessary to store and retrieve files from an FTP server. This class takes care of all low level details of interacting with an FTP server and provides a convenient higher level interface. As with all classes derived from org.apache.commons.net.SocketClient , you must first connect to the server with connect 55 before doing anything, and finally disconnect 55 after you're completely finished interacting with the server. Then you need to check the FTP reply code to see if the connection was successful. For example: boolean error = false; try { int reply; ...
JOCLContentHandler: A org.xml.sax.ContentHandler for the Java Object Configuration Language. JOCL provides an XML syntax for constructing arbitrary Java java.lang.Object instances. It does not define a full XML document type (there's no root element), but rather an XML fragment describing the Object s> Object s to be constructed. In a JOCL fragment, one may define a series of objects using the object element. A trivial example is: <object class="java.util.Date"/> which constructs an instance of java.util.Date using the no-argument constructor. After a "root-level" <object> element has been processed (that ...
GenericKeyedObjectPool: A configurable org.apache.commons.pool.KeyedObjectPool implementation. When coupled with the appropriate org.apache.commons.pool.KeyedPoolableObjectFactory , GenericKeyedObjectPool provides robust pooling functionality for arbitrary objects. A GenericKeyedObjectPool provides a number of configurable parameters: maxActive 55 controls the maximum number of objects (per key) that can be borrowed from the pool at one time. When non-positive, there is no limit to the number of objects that may be active at one time. When maxActive 55 is exceeded, the pool is said to be exhausted. maxIdle 55 controls ...
Coercions: This class contains the logic for coercing data types before operators are applied to them. The following is the list of rules applied for various type conversions. Applying arithmetic operator Binary operator - A {+,-,*} B if A and B are null return 0 if A or B is BigDecimal, coerce both to BigDecimal and then: if operator is +, return A.add(B) if operator is -, return A.subtract(B) if operator is *, return A.multiply(B) if A or B is Float, Double, or String containing ".", "e", or "E" if A or B is BigInteger, coerce both A and B to BigDecimal and apply operator coerce both A and B to Double and ...
GenericObjectPool: A configurable org.apache.commons.pool.ObjectPool implementation. When coupled with the appropriate org.apache.commons.pool.PoolableObjectFactory , GenericObjectPool provides robust pooling functionality for arbitrary objects. A GenericObjectPool provides a number of configurable parameters: maxActive 55 controls the maximum number of objects that can be borrowed from the pool at one time. When non-positive, there is no limit to the number of objects that may be active at one time. When maxActive 55 is exceeded, the pool is said to be exhausted. maxIdle 55 controls the maximum number of objects ...
AbstractTestMap: Abstract test class for java.util.Map methods and contracts. The forces at work here are similar to those in org.apache.commons.collections.collection.AbstractTestCollection . If your class implements the full Map interface, including optional operations, simply extend this class, and implement the makeEmptyMap() 55 method. On the other hand, if your map implementation is weird, you may have to override one or more of the other protected methods. They're described below. Entry Population Methods Override these methods if your map requires special entries: getSampleKeys() 55 getSampleValues() 55 ...
DiscoverSingleton: Discover singleton service providers. This DiscoverSingleton instances are cached by the Discovery service, keyed by a combination of thread context class loader, groupContext, and SPI. This DOES allow multiple instances of a given singleton class to exist for different class loaders and different group contexts. In the context of this package, a service interface is defined by a Service Provider Interface (SPI). The SPI is expressed as a Java interface, abstract class, or (base) class that defines an expected programming interface. DiscoverSingleton provides the find methods for locating and instantiating ...
Enum: Abstract superclass for type-safe enums. One feature of the C programming language lacking in Java is enumerations. The C implementation based on ints was poor and open to abuse. The original Java recommendation and most of the JDK also uses int constants. It has been recognised however that a more robust type-safe class-based solution can be designed. This class follows the basic Java type-safe enumeration pattern. NOTE: Due to the way in which Java ClassLoaders work, comparing Enum objects should always be done using equals() , not == . The equals() method will try == first so in most cases the ...
Enum: Abstract superclass for type-safe enums. One feature of the C programming language lacking in Java is enumerations. The C implementation based on ints was poor and open to abuse. The original Java recommendation and most of the JDK also uses int constants. It has been recognised however that a more robust type-safe class-based solution can be designed. This class follows the basic Java type-safe enumeration pattern. NOTE: Due to the way in which Java ClassLoaders work, comparing Enum objects should always be done using equals() , not == . The equals() method will try == first so in most cases the ...
ExtendedBaseRules: Extension of RulesBase for complex schema. This is an extension of the basic pattern matching scheme intended to improve support for mapping complex xml-schema. It is intended to be a minimal extension of the standard rules big enough to support complex schema but without the full generality offered by more exotic matching pattern rules. When should you use this rather than the original? This pattern-matching engine is complex and slower than the basic default RulesBase class, but offers more functionality: Universal patterns allow patterns to be specified which will match regardless of whether ...
AbstractTestCollection: Abstract test class for java.util.Collection methods and contracts. You should create a concrete subclass of this class to test any custom java.util.Collection implementation. At minimum, you'll have to implement the makeCollection() 55 method. You might want to override some of the additional public methods as well: Element Population Methods Override these if your collection restricts what kind of elements are allowed (for instance, if null is not permitted): getFullElements() 55 getOtherElements() 55 Supported Operation Methods Override these if your collection doesn't support certain operations: ...
TestCollection: Tests base java.util.Collection methods and contracts. You should create a concrete subclass of this class to test any custom java.util.Collection implementation. At minimum, you'll have to implement the makeCollection() 55 method. You might want to override some of the additional protected methods as well: Element Population Methods Override these if your collection restricts what kind of elements are allowed (for instance, if null is not permitted): getFullElements() 55 getOtherElements() 55 Supported Operation Methods Override these if your collection doesn't support certain operations: #isAddSuppoted() ...
TestMap: Tests base java.util.Map methods and contracts. The forces at work here are similar to those in TestCollection . If your class implements the full Map interface, including optional operations, simply extend this class, and implement the makeEmptyMap() 55 method. On the other hand, if your map implemenation is wierd, you may have to override one or more of the other protected methods. They're described below. Entry Population Methods Override these methods if your map requires special entries: getSampleKeys() 55 getSampleValues() 55 getNewSampleValues() 55 getOtherKeys() 55 getOtherValues() 55 Supported ...
LazyDynaBean: DynaBean which automatically adds properties to the DynaClass and provides Lazy List and Lazy Map features. DynaBeans deal with three types of properties - simple , indexed and mapped and have the following get() and set() methods for each of these types: Simple property methods - get(name) and set(name, value) Indexed property methods - get(name, index) and set(name, index, value) Mapped property methods - get(name, key) and set(name, key, value) Getting Property Values Calling any of the get() methods, for a property which doesn't exist, returns null in this implementation. Setting Simple Properties ...
SMTPClient: SMTPClient encapsulates all the functionality necessary to send files through an SMTP server. This class takes care of all low level details of interacting with an SMTP server and provides a convenient higher level interface. As with all classes derived from org.apache.commons.net.SocketClient , you must first connect to the server with connect 55 before doing anything, and finally disconnect 55 after you're completely finished interacting with the server. Then you need to check the SMTP reply code to see if the connection was successful. For example: try { int reply; client.connect("mail.foobar.com"); ...
FTPClientConfig: This class implements an alternate means of configuring the FTPClient object and also subordinate objects which it uses. Any class implementing the Configurable interface can be configured by this object. In particular this class was designed primarily to support configuration of FTP servers which express file timestamps in formats and languages other than those for the US locale, which although it is the most common is not universal. Unfortunately, nothing in the FTP spec allows this to be determined in an automated way, so manual configuration such as this is necessary. This functionality was ...
CallMethodRule: Rule implementation that calls a method on an object on the stack (normally the top/parent object), passing arguments collected from subsequent CallParamRule rules or from the body of this element. By using CallMethodRule(String methodName) 55 a method call can be made to a method which accepts no arguments. Incompatible method parameter types are converted using org.apache.commons.beanutils.ConvertUtils . This rule now uses MethodUtils.invokeMethod(java.lang.Object, java.lang.String, java.lang.Object) > MethodUtils.invokeMethod(java.lang.Object, java.lang.String, java.lang.Object) 55 by default. ...
StaticBucketMap: A StaticBucketMap is an efficient, thread-safe implementation of java.util.Map that performs well in in a highly thread-contentious environment. The map supports very efficient get 55 , put 55 , remove 55 and containsKey 55 operations, assuming (approximate) uniform hashing and that the number of entries does not exceed the number of buckets. If the number of entries exceeds the number of buckets or if the hash codes of the objects are not uniformly distributed, these operations have a worst case scenario that is proportional to the number of elements in the map ( O(n) ). Each bucket in the hash ...
StaticBucketMap: A StaticBucketMap is an efficient, thread-safe implementation of java.util.Map that performs well in in a highly thread-contentious environment. The map supports very efficient get 55 , put 55 , remove 55 and containsKey 55 operations, assuming (approximate) uniform hashing and that the number of entries does not exceed the number of buckets. If the number of entries exceeds the number of buckets or if the hashcodes of the objects are not uniformly distributed, these operations have a worst case scenario that is proportional to the number of elements in the map ( O(n) ). Each bucket in the hash ...
Command: A Command encapsulates a unit of processing work to be performed, whose purpose is to examine and/or modify the state of a transaction that is represented by a Context . Individual Command s can be assembled into a Chain , which allows them to either complete the required processing or delegate further processing to the next Command in the Chain . Command implementations should be designed in a thread-safe manner, suitable for inclusion in multiple Chain s that might be processed by different threads simultaneously. In general, this implies that Command classes should not maintain state information ...
CopyUtils: This class provides static utility methods for buffered copying between sources ( InputStream , Reader , String and byte[] ) and destinations ( OutputStream , Writer , String and byte[] ). Unless otherwise noted, these copy methods do not flush or close the streams. Often doing so would require making non-portable assumptions about the streams' origin and further use. This means that both streams' close() methods must be called after copying. if one omits this step, then the stream resources (sockets, file descriptors) are released when the associated Stream is garbage-collected. It is not a good ...
BulkTest: A junit.framework.TestCase that can define both simple and bulk test methods. A simple test method is the type of test traditionally supplied by by junit.framework.TestCase . To define a simple test, create a public no-argument method whose name starts with "test". You can specify the the name of simple test in the constructor of BulkTest ; a subsequent call to TestCase.run() > TestCase.run() 55 will run that simple test. A bulk test method , on the other hand, returns a new instance of BulkTest , which can itself define new simple and bulk test methods. By using the makeSuite(java.lang.Class) ...
DiscoverClass: Discover class that implements a given service interface, with discovery and configuration features similar to that employed by standard Java APIs such as JAXP. In the context of this package, a service interface is defined by a Service Provider Interface (SPI). The SPI is expressed as a Java interface, abstract class, or (base) class that defines an expected programming interface. DiscoverClass provides the find methods for locating a class that implements a service interface (SPI). Each form of find varies slightly, but they all perform the same basic function. The DiscoverClass.find methods ...
ChainListener: ServletContextListener that automatically scans chain configuration files in the current web application at startup time, and exposes the result in a org.apache.commons.chain.Catalog under a specified servlet context attribute. The following context init parameters are utilized: org.apache.commons.chain.CONFIG_CLASS_RESOURCE - comma-delimited list of chain configuration resources to be loaded via ClassLoader.getResource() calls. If not specified, no class loader resources will be loaded. org.apache.commons.chain.CONFIG_WEB_RESOURCE - comma-delimited list of chain configuration webapp resources ...

Home | Contact Us | Privacy Policy | Terms of Service