You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this would require a change in how ResourceExtension works, to allow annotations with an arguments field and which are indirectly/meta-annotated with @New(TemporaryDirectory.class) to have their arguments read by the extension.
Thank you for creating this issue. If I didn't miss anything, this would also allow us/users to introduce a shorthand for @Shared. Because @Shared always needs a name, this isn't possible at the moment, but if we figure out how to pass attributes on, that should overcome this limitation and allow for, e.g. @SharedDir(name = "foo").
Or even @SharedDir("foo") with this one weird trick?!
Yep, that was indeed my intention with raising this issue. Thanks for sharing your thoughts!
@SharedDir("foo") isn't "dirtier" than @SharedDir(name = "foo") in my opinion, but I can see why it would be desired. I never thought about having a sort of inner meta-attribute like @MapsToAttribute before, so it looks pretty neat to me.
Consider adding an
arguments
field to@Dir
similarly to@New
so that code like the following......could be shortened to...
Note that this would require a change in how
ResourceExtension
works, to allow annotations with anarguments
field and which are indirectly/meta-annotated with@New(TemporaryDirectory.class)
to have theirarguments
read by the extension.This issue is a follow-up to #348 | #491.
The text was updated successfully, but these errors were encountered: