On Mon, Jun 3, 2019 at 6:25 PM 'Gavin Mogan' via Jenkins Developers
<[email protected]> wrote:
> For example. FreeStyleProject/AbstractProject has getAllActions() exported as 
> Actions, which I've gotten working in graphql, but I lose the ability to have 
> per instance exports.
>
> Since action is not an extension point, they are not annotated with 
> @Extension, so Is there a another way to get this? Even a slow way cause i'm 
> just doing it on startup. I've been trying to google for various ways to get 
> all the classes that implement an implementation

Not sure I follow. You are asking if there is a way to get all
possible `Action` subtypes that might be returned from a
`getAllActions()` method? If so, it is not possible, at least not in
any supported way. The same would apply to pretty much any abstract
type in Jenkins—`Cause`, `CauseOfInterruption`, ad nauseam.

> Can I find all classes that are @Exported?

Without scanning all bytecode in the system? No.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CANfRfr38aBtCmGi%3Dhg%2BYK5J7AOADKuLQq%3DwWEP_rV8K0bzA1-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to