The first part covered adapting and packaging extensible Java EE applications.
Introducing Plug-ins
This part will demonstrate how Java EE application can be extended via plug-ins.
To do so we will have to define Service provider interface(s) (SPI).
[java]
public interface CorePlugin {
public String getName();
…
}
[/java]
The applications SPI should be provided in a separate JAR decoupling plug-ins from the core application and avoid cyclic dependency issues (see the previous post for more details).
Continue reading Building extensible Java EE Applications – Part 2