adobe / aio-lib-java

Adobe I/O - Java SDK
https://opensource.adobe.com/aio-lib-java/
Apache License 2.0
6 stars 19 forks source link

`aem.events_osgi_mapping` allow osgi application events based on a configuration value #89

Open francoisledroff opened 2 years ago

francoisledroff commented 2 years ago

allow osgi application events based on a configuration value

add the following https://github.com/adobe/aio-lib-java/blob/main/aem/events_osgi_mapping/src/main/java/com/adobe/aio/aem/event/osgimapping/ocd/OsgiEventMappingConfig.java

@AttributeDefinition(name = "Allow OSGI Application Events",
    description = "true/false to allow or disallow application triggered osgi events")
    String osgi_allow_application_events() default false;

and refactor https://github.com/adobe/aio-lib-java/blob/main/aem/events_osgi_mapping/src/main/java/com/adobe/aio/aem/event/osgimapping/eventhandler/AdobeIoEventHandler.java#L69

to take the above new conf into consideration