InfoQ

InfoQ

Editor Specific Content View

All of Todor Boev's Content on InfoQ


Latest featured content by Todor Boev

Classloader Acrobatics: Code Generation with OSGi

Topics
Java

Porting great infrastructure to OSGi often means solving complex classloading problems. This article is dedicated to the frameworks that face the hardest issues in this area: those that do dynamic code generation. Incidentally these are also the coolest frameworks: AOP wrappers, ORM mappers, and service proxy generators are just a few examples.

Service Dynamics: the lazy man's way

Topics
Java Annotations,
Java,
Open Source,
Composition

This article describes "the hardest topic in OSGi, how to deal with service dynamics," based on personal experience. Two factors, concurrency and direct service references, make the problem "fiendishly hard." An import and an export policy should form a comprehensive doctrine for dealing with service dynamics and the article explores two export policies with their corresponding doctrines.