This repository contains samples of modules to create Jahia Actions, Filters, etc... with OSGi
- Action samples, contains samples for Jahia Action
- Filter samples, contains samples for Jahia Filter
- Background Job samples, contains samples for Background Job
- ChoiceList samples, contains samples for Jahia ChoiceList Initializer and Renderer
- Service samples, contains samples to create and use OSGi services between modules
- Datasource samples, contains samples for Jahia Datasource
- Interceptor samples, contains samples for Jahia Interceptor
- Cache Key Part Generator samples, contains samples for Jahia Cache Key Part Generator
In order for the OSGi annotations to work in your module, you need to make sure that you have this tag <_dsannotations>*</_dsannotations>
in the maven-bundle-plugin
plugin instructions of your pom.xml:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<_dsannotations>*</_dsannotations>
</instructions>
</configuration>
</plugin>