You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2017/04/10 10:16:41 UTC

[jira] [Created] (DOSGI-262) Allow to configure intent objects directly from a service object

Christian Schneider created DOSGI-262:
-----------------------------------------

             Summary: Allow to configure intent objects directly from a service object
                 Key: DOSGI-262
                 URL: https://issues.apache.org/jira/browse/DOSGI-262
             Project: CXF Distributed OSGi
          Issue Type: Bug
          Components: common
    Affects Versions: 2.1.0
            Reporter: Christian Schneider
            Assignee: Christian Schneider
             Fix For: 2.2.0


Currently all CXF configs have to be done using service based intents. While this matches RSA spec nicely it is a bit indirect and extensive to set up.

So for the special case where the intent should only work on a single service and only on the export we can make this simpler.

public interface IntentsProvider {
    List<?> getIntents();
}

With an interface like this we can add logging:

@Component( ... )
public class TaskResourceImpl implements TaskResource, IntentsProvider {
....
    public List<?> getIntents() {
        return asList(new LoggingFeature());
    }

}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)