Skip to content

Get rid of using java.beans in PropertySettingJobFactory #1336

@kwin

Description

@kwin

Currently https://github.com/quartz-scheduler/quartz/blob/main/quartz/src/main/java/org/quartz/simpl/PropertySettingJobFactory.java relies on functionality provided by java.beans. This can be easily replaced with simple default reflection logic in order to no longer depend on java.beans.
Look at https://github.com/apache/sling-org-apache-sling-commons-scheduler/blob/master/src/main/java/org/quartz/simpl/PropertySettingJobFactory.java on how this was done in a fork.

The package java.beans is only contained in module java.desktop (from Java9+, https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/module-summary.html) which is not loaded by default and shouldn't be necessary at all. See also https://stackoverflow.com/questions/49784240/java-beans-introspector-requires-desktop-module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    is:enhancementEnhancement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions