[
https://issues.apache.org/jira/browse/DOSGI-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Christian Schneider updated DOSGI-262:
--------------------------------------
Summary: Configure intent objects from service object (IntentsProvider,
@Features) (was: Allow to configure intent objects directly from a service
object (IntentsProvider))
> Configure intent objects from service object (IntentsProvider, @Features)
> -------------------------------------------------------------------------
>
> 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)