mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernd Fondermann <bf_...@brainlounge.de>
Subject Adding more than one @SpecCompliant [WAS: Re: [jira] Resolved: (VYSPER-79) Extract smaller methods for better annotations and improved structure/readability.]
Date Sat, 04 Jul 2009 22:09:59 GMT
Michael Jakl (JIRA) wrote:
>      [ https://issues.apache.org/jira/browse/VYSPER-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
> 
> Michael Jakl resolved VYSPER-79.
> --------------------------------
> 
>     Resolution: Fixed
> 
> Added SpecCompliant annotation to handleSet methods (although, only it's only possible
to add one per method).

Using @SpecCompliance, you can add an arbitrary number of @SpecCompliant
annotations. See for example RosterIQHandler:

    @SpecCompliance( compliant = {
        @SpecCompliant(spec="rfc3921bis-08", section = "2.1.2", status =
FINISHED, coverage = COMPLETE),
        @SpecCompliant(spec="rfc3921bis-08", section = "2.1.5", status =
FINISHED, coverage = PARTIAL),
        @SpecCompliant(spec="rfc3921bis-08", section = "2.2", status =
FINISHED, coverage = COMPLETE)
    })
    @Override
    protected Stanza handleGet(IQStanza stanza, ServerRuntimeContext
serverRuntimeContext, SessionContext sessionContext) {


  Bernd

> 
>> Extract smaller methods for better annotations and improved structure/readability.
>> ----------------------------------------------------------------------------------
>>
>>                 Key: VYSPER-79
>>                 URL: https://issues.apache.org/jira/browse/VYSPER-79
>>             Project: VYSPER
>>          Issue Type: Sub-task
>>          Components: XEP0060 PubSub
>>            Reporter: Michael Jakl
>>            Assignee: Michael Jakl
>>
>> Some methods touch on more than one sub-section of the XEP. Maybe it's best to decompose
these parts into their own methods, which could be annotated with their respective sections.
> 


Mime
View raw message