Many projects use at least some of them - the Jakarta Commons libraries. Small reusable libraries simplifying the day-to-day work of thousands of java programmers. But over time the jakarta commons project has grown and the number of components makes it harder and harder to keep track. This session will try to give an overview of the components available and how the Jakarta Commons community is organized.
9. Charter
“Creation of small re-useable
components that can be used across
projects. They are supposed to have as
few dependencies as possible, meant
to be well tested and compatible with
the current de-facto standard version of
the JDK”
27. Javaflow
class MyRunnable implements Runnable {
public void run() {
for(int i=0; i<10; i++ )
Continuation.suspend();
}}
Continuation c = Continuation.startWith(
new MyRunnable());
Continuation d = Continuation.continueWith(c);
...
28. JCI
JavaCompiler compiler =
new EclipseJavaCompiler();
ResourceStore store =
new MemoryResourceStore();
CompilationResult result = compiler.compile(
new String[] { quot;org/MyClass.javaquot; },
new FileResourceReader(directory),
store );
29. OpenPGP
keyRing = new BouncyCastleKeyRing(
secret, public, password);
signer = new BouncyCastleOpenPgpSigner();
signer.detachedSign(
fileInputStream
signatureOutputStream,
keyId,
keyRing,
true );
30. Proxy
o = (MyObject) new CglibProxyFactory()
.createInterceptorProxy(
new MyObjectImpl(),
new LoggingInterceptor(log),
new Class[]{ MyObject.class });
o.test(”test”);
[DEBUG] - BEGIN test(test)
[DEBUG] - END test()