[
https://issues.apache.org/jira/browse/KARAF-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910511#action_12910511
]
james strachan commented on KARAF-154:
--------------------------------------
turns out this is a fairly big refactor with not that much gain (it just lets
you avoid the compile time dependency on karaf console); so going to defer a
while :)
> allow @Command objects to implement Runnable - or have a @Run annotation on
> the method so that they don't have to extend Action to avoid runtime Karaf
> dependency
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: KARAF-154
> URL: https://issues.apache.org/jira/browse/KARAF-154
> Project: Karaf
> Issue Type: Improvement
> Components: console
> Reporter: james strachan
> Priority: Minor
>
> It would be nice to be able to write commands using either the JDK's Runnable
> interface, or to use a @Run annotation (or @Execute or something) to mark the
> method which should be invoked when the command is run.
> This would mean that the only dependency on Karaf for writing commands would
> be annotations; so there would be no runtime class dependency; letting us
> embed karaf commands all over the place without folks worrying about adding
> another runtime dependency to their code
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.