The Extensions API mimics the equivalent CDI Extension/@Observes API
Via the Extensions/@Obverves API it is possible to listen for any number of
internal events fired by OpenEJB/TomEE during the life of the server and
deployment of applications.
Extensions are any java class that have one or more @Observes methods using the following format:
- public void
(@Observes event)
Extensions can be registered in any number of ways:
1. Via a META-INF/org.apache.openejb.extension text file containing the name of exactly one
2. Via a tag in the server's openejb.xml or tomee.xml configuration file
3. Via a tag in a META-INF/resources.xml in the application
4. Directly calling SystemInstance#addObserver(Object)