karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2762) Whiteboard exporter for Actions
Date Sat, 15 Feb 2014 14:59:19 GMT

    [ https://issues.apache.org/jira/browse/KARAF-2762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13902426#comment-13902426

Christian Schneider commented on KARAF-2762:

So my design is the following:
- The user defines the Action in his code and uses the normal annotations.
- Additionally he can create properties of type Completer or an implementation of Completer.
- The Action can then be injected with the user choice of di framework
- The Action is exported as a service of interface ...Action

For a demo using declarative services see:

I have created a new module shell/command-exporter that implements the whiteboard extender.
For an installation instruction see the example above.

> Whiteboard exporter for Actions
> -------------------------------
>                 Key: KARAF-2762
>                 URL: https://issues.apache.org/jira/browse/KARAF-2762
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-shell
>    Affects Versions: 3.0.0
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 3.0.1
> Currently there is no easy way to export Actions as commands outside the blueprint namespace
> What I want to achieve is a way to define Actions that is framework agnostic (so it should
work in blueprint, ds, ..) and that only exposes the user to the interfaces and annotations.
There should be no dependencies from user code to karaf impl classes.
> The implementation should also allow to define completers.

This message was sent by Atlassian JIRA

View raw message