Currently global restrictions can only be specified either via the @Cli annotation where they are referenced by class or via CliBuilder where they are passed as instances.
It would be nice if these could also be specified by providing annotations on your @Cli annotated class
This will require adding a GlobalRestrictionFactory and using ServiceLoader to auto-detect them in RestrictionRegistry. The MetadataLoader will also need to look for global restrictions when loading the meta-data for @Cli annotated classes.
Currently global restrictions can only be specified either via the
@Cli
annotation where they are referenced by class or viaCliBuilder
where they are passed as instances.It would be nice if these could also be specified by providing annotations on your
@Cli
annotated classThis will require adding a
GlobalRestrictionFactory
and usingServiceLoader
to auto-detect them inRestrictionRegistry
. TheMetadataLoader
will also need to look for global restrictions when loading the meta-data for@Cli
annotated classes.